/* assets/css/style.css */

:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --stroke: rgba(255,255,255,0.12);
  --good: #2dd4bf;
  --warn: #fbbf24;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
  --radius: 18px;
  --radius2: 14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
/* =========================
   DEEP BLUE HOME BACKGROUND
   ========================= */

body {
    margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(30, 58, 138, 0.45), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(56, 189, 248, 0.18), transparent 55%),
    linear-gradient(180deg, #050b1a 0%, #060f26 60%, #050b1a 100%);
  color: rgba(255,255,255,0.95);
}

/* =========================
   HERO CARD NEON GLOW
   ========================= */

body.home .hero-card {
  position: relative;
  background: rgba(10, 18, 44, 0.65);
  border-radius: 26px;
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow:
    0 0 0 1px rgba(56,189,248,0.25),
    0 0 30px rgba(56,189,248,0.18),
    0 20px 60px rgba(0,0,0,0.45);
}

/* Soft outer glow */
body.home .hero-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: linear-gradient(
    120deg,
    rgba(56,189,248,0.55),
    rgba(14,165,233,0.35),
    rgba(56,189,248,0.55)
  );
  opacity: 0.35;
  filter: blur(18px);
  z-index: -1;
}

/* =========================
   PROMPT BAR GLOW (FOCUS)
   ========================= */

body.home .prompt-bar {
  position: relative;
  background: rgba(6, 14, 38, 0.85);
  border-radius: 20px;
  border: 1.5px solid rgba(56,189,248,0.75);
  box-shadow:
    0 0 0 1px rgba(56,189,248,0.35),
    0 0 22px rgba(56,189,248,0.25);
}

/* Glow aura */
body.home .prompt-bar::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(56,189,248,0.55),
    transparent 60%
  );
  filter: blur(20px);
  opacity: 0.6;
  pointer-events: none;
}

/* =========================
   NEON CTA BUTTON
   ========================= */

body.home .prompt-btn {
  background: linear-gradient(
    135deg,
    rgba(56,189,248,0.95),
    rgba(14,165,233,0.95)
  );
  color: #021026;
  font-weight: 950;
  border-radius: 14px;
  border: none;
  box-shadow:
    0 0 18px rgba(56,189,248,0.45),
    0 10px 30px rgba(0,0,0,0.35);
}

body.home .prompt-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 28px rgba(56,189,248,0.65),
    0 16px 40px rgba(0,0,0,0.45);
}

body.pill {
  background: rgba(6,14,38,0.75);
  border: 1px solid rgba(56,189,248,0.35);
  color: rgba(255,255,255,0.95);
}

body.home .pill:hover {
  background: rgba(56,189,248,0.15);
  border-color: rgba(56,189,248,0.65);
}


a{ color:inherit; }

.container{
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 28px 0 40px;
}

.center-wrap{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px 0;
}

.card{
  width: min(680px, 92vw);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.brand{
  display:flex;
  gap: 12px;
  align-items:center;
  margin-bottom: 16px;
}
.brand img{
  width: 100px;
  height: 100px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--stroke);
}
.brand h1{
  font-size: 18px;
  margin:0;
  letter-spacing: 0.2px;
}
.brand p{
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.prompt{
  font-size: 20px;
  margin: 12px 0 14px;
  line-height: 1.25;
}

.input-row{
  display:flex;
  gap: 10px;
  flex-direction: column;
}

textarea.prompt-input{
  width:100%;
  min-height: 92px;
  resize: vertical;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  outline: none;
  font-size: 15px;
  line-height: 1.4;
}

textarea.prompt-input::placeholder{
  color: rgba(255,255,255,0.55);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  width:100%;
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 650;
  font-size: 15px;
  cursor: pointer;
  color: #061017;
  background: linear-gradient(135deg, rgba(45,212,191,1), rgba(251,191,36,1));
  box-shadow: 0 12px 28px rgba(45,212,191,0.12);
}

.btn:active{ transform: translateY(1px); }

.pills{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 4px;
}
.pill{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.82);
  padding: 10px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-size: 13px;
  line-height: 1;
  transition: background .15s ease, transform .05s ease;
}
.pill:hover{ background: rgba(255,255,255,0.10); }
.pill:active{ transform: translateY(1px); }

.footer{
  margin-top: 14px;
  text-align:center;
  color: var(--muted);
  font-size: 12.5px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  border: 1px solid var(--stroke);
  background: rgba(45,212,191,0.16);
  color: rgba(255,255,255,0.92);
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.cart-head{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.cart-head .subtitle{
  color: var(--muted);
  font-size: 13px;
}

.store-card{
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
  padding: 16px;
}

.store-card.best{
  border: 1px solid rgba(45,212,191,0.55);
  box-shadow: 0 20px 70px rgba(45,212,191,0.14);
  background: linear-gradient(180deg, rgba(45,212,191,0.16), rgba(255,255,255,0.05));
}

.store-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.store-name{
  font-size: 16px;
  font-weight: 800;
  margin:0;
}
.store-subtotal{
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin: 3px 0 0;
}

.items{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 14px;
}

.item{
  display:flex;
  gap: 10px;
  align-items:center;
  padding: 10px;
  border-radius: var(--radius2);
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.07);
}
.item img{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
}
.item .meta{
  flex: 1;
  min-width: 0;
}
.item .meta .title{
  font-weight: 700;
  font-size: 13.5px;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.item .meta .sub{
  color: var(--muted);
  font-size: 12.5px;
}
.item .price{
  font-weight: 800;
  font-size: 13.5px;
  white-space: nowrap;
}

.approve-row{
  margin-top: 10px;
}
.approve-btn{
  width:100%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 800;
  cursor:pointer;
}
.store-card.best .approve-btn{
  border: 1px solid rgba(45,212,191,0.45);
  background: rgba(45,212,191,0.18);
}

.small-note{
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 10px;
  text-align:center;
}

/* Fullscreen Loading Overlay */
.loading-overlay{
  position: fixed;
  inset: 0;
  background: rgba(5,10,20,0.72);
  backdrop-filter: blur(10px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 9999;
  padding: 20px;
}
.loading-overlay.show{ display:flex; }

.loading-card{
  width: min(520px, 92vw);
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  box-shadow: var(--shadow);
  padding: 20px;
  text-align:center;
}

.spinner{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 4px solid rgba(255,255,255,0.18);
  border-top-color: rgba(45,212,191,0.95);
  margin: 0 auto 12px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin{ to { transform: rotate(360deg); } }

.loading-title{
  font-weight: 900;
  font-size: 16px;
  margin: 0 0 4px;
}
.loading-sub{
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

/* Desktop grid */
@media (min-width: 920px){
  .grid{
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

/* =========================
   HOME PAGE (Mock UI style)
   ========================= */

body.home {
  min-height: 100vh;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(10, 12, 22, 0.55);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topbar-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

.brand-mini{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: rgba(255,255,255,0.92);
  font-weight: 900;
}
.brand-mini img{ width: 34 px; height: 34px; border-radius: 10px; }
.brand-text{ font-size: 14px; letter-spacing: .2px; }

.topnav{
  display:flex;
  gap: 14px;
}
.topnav a{
  color: rgba(255,255,255,0.78);
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
.topnav a:hover{
  color: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.16);
}

.home-wrap{
  padding: 18px 14px 40px;
}

.home-hero{
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero-bg{
  position:absolute;
  inset: -40px -20px -40px -20px;
  background: #09112a;
  filter: blur(0px);
  border-radius: 36px;
  pointer-events:none;
}

.btn-link{
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.store-mini-cta{
  font-weight: 950;
  color: rgba(56,189,248,0.95);
}
.store-mini-cta:hover{
  text-decoration: underline;
}


/*.hero-bg{
  position:absolute;
  inset: -40px -20px -40px -20px;
  background:
    radial-gradient(1200px 500px at 50% -20%, rgba(94, 203, 255, 0.22), transparent 60%),
    radial-gradient(900px 600px at 10% 10%, rgba(255, 190, 92, 0.18), transparent 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(168, 85, 247, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(12, 15, 30, 0.0), rgba(12, 15, 30, 0.35));
  filter: blur(0px);
  border-radius: 36px;
  pointer-events:none;
}*/

.hero-card{
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 22px 60px rgba(0,0,0,0.35);
  padding: 18px;
  overflow:hidden;
}

.hero-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.hero-brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.hero-brand img{
  width: 100px;
  height: 100px;
  border-radius: 14px;
}

.hero-title{
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .2px;
  color: rgba(255,255,255,0.95);
}
.hero-sub{
  margin-top: 2px;
  font-size: 14px;
  color: rgba(255,255,255,0.70);
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-weight: 900;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.90);
}
.hero-badge .sparkle{ opacity: .9; }

.hero-question{
  margin: 10px 0 12px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 950;
  color: rgba(255,255,255,0.95);
}

@media (min-width: 820px){
  .hero-question{ font-size: 28px; }
}

.prompt-form{ margin-top: 12px; }

.prompt-bar{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
}

.prompt-icon{
  width: 34px;
  height: 34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  font-size: 16px;
}

.prompt-input{
  flex: 1;
  min-width: 0;
  height: 44px;
  border: none;
  outline: none;
  background: transparent;
  color: rgba(255,255,255,0.94);
  font-size: 15px;
  font-weight: 800;
}

.prompt-input::placeholder{ color: rgba(255,255,255,0.55); }

.prompt-btn{
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(94, 203, 255, 0.18);
  color: rgba(255,255,255,0.95);
  font-weight: 950;
  cursor:pointer;
  white-space: nowrap;
}

.prompt-btn:hover{
  border-color: rgba(255,255,255,0.28);
  background: rgba(94, 203, 255, 0.26);
}

.pill-row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pill{
  border-radius: 999px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.90);
  font-weight: 900;
  font-size: 12px;
  cursor:pointer;
}
.pill:hover{
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.10);
}

.hero-note{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.72);
}

.preview-title{
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 950;
  color: rgba(255,255,255,0.92);
  letter-spacing: .2px;
}

.store-cards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 820px){
  .store-cards{ grid-template-columns: repeat(4, 1fr); }
}

.store-mini{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  padding: 12px;
}

.store-mini-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

.store-mini-name{
  font-weight: 950;
  color: rgba(255,255,255,0.95);
}

.store-mini-chip{
  font-size: 11px;
  font-weight: 950;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
}
.store-mini-chip.best{
  background: rgba(34,197,94,0.15);
  border-color: rgba(34,197,94,0.25);
}

.store-mini-list{
  margin: 10px 0 12px;
  padding-left: 18px;
  color: rgba(255,255,255,0.78);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.6;
}

.store-mini-foot{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.store-mini-price{
  font-weight: 950;
  color: rgba(255,255,255,0.92);
}
.store-mini-cta{
  font-weight: 950;
  color: rgba(94, 203, 255, 0.95);
}

.savings-row{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 820px){
  .savings-row{ grid-template-columns: repeat(3, 1fr); }
}

.savings-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  padding: 12px;
  display:flex;
  gap: 12px;
  align-items:center;
}

.savings-img{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 55%),
    linear-gradient(135deg, rgba(255,190,92,0.18), rgba(94,203,255,0.16));
}

.savings-meta{ flex: 1; min-width: 0; }
.savings-name{
  font-weight: 950;
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.savings-sub{
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.68);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.savings-btn{
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.92);
  font-weight: 950;
  font-size: 12px;
}

.how{
  margin-top: 18px;
}

.how-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 820px){
  .how-grid{ grid-template-columns: repeat(3, 1fr); }
}

.how-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  padding: 14px;
}

.how-num{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
}

.how-title{
  margin-top: 10px;
  font-weight: 950;
  color: rgba(255,255,255,0.92);
}
.how-sub{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.70);
}

.home-footer{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  text-align: center;
}
/* =========================
   HOME: Real photos + color
   ========================= */

:root{
  --accent-a: rgba(94,203,255,0.9);
  --accent-b: rgba(255,190,92,0.9);
  --accent-c: rgba(168,85,247,0.9);
}

/* Make home card brighter */
body.home .hero-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
  border-color: rgba(255,255,255,0.18);
}

/* Hero split layout */
.hero-split{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
}
@media (min-width: 900px){
  .hero-split{ grid-template-columns: 1.1fr 0.9fr; }
}

.hero-lead{
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.75);
}

.hero-right{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  min-height: 180px;
}

.hero-illustration{
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
}

.hero-illustration-glow{
  position:absolute;
  inset: -40px;
  background:
    radial-gradient(400px 180px at 20% 30%, rgba(94,203,255,0.30), transparent 60%),
    radial-gradient(400px 180px at 80% 20%, rgba(255,190,92,0.22), transparent 60%),
    radial-gradient(400px 180px at 80% 80%, rgba(168,85,247,0.22), transparent 60%);
  pointer-events:none;
  mix-blend-mode: screen;
}

/* Brighter button */
.prompt-btn{
  background: linear-gradient(135deg, rgba(94,203,255,0.28), rgba(168,85,247,0.22));
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
.prompt-btn:hover{
  background: linear-gradient(135deg, rgba(94,203,255,0.38), rgba(168,85,247,0.30));
  border-color: rgba(255,255,255,0.32);
}

/* Pills with subtle color */
.pill{
  background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.05));
}
.pill:hover{
  background: linear-gradient(135deg, rgba(94,203,255,0.16), rgba(255,190,92,0.12));
}

/* Store card realistic image header */
.store-mini-img{
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.14);
  margin-bottom: 10px;
  height: 90px;
  background: rgba(255,255,255,0.06);
}
.store-mini-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  filter: saturate(1.08) contrast(1.05);
}

/* Chips more colorful */
.store-mini-chip{
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
  border-color: rgba(255,255,255,0.14);
}
.store-mini-chip.best{
  background: linear-gradient(135deg, rgba(34,197,94,0.22), rgba(94,203,255,0.18));
  border-color: rgba(34,197,94,0.28);
}

/* Savings cards with real images */
.savings-card{
  gap: 12px;
}
.savings-real{
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.14);
  display:block;
  filter: saturate(1.08) contrast(1.05);
}

/* Add colorful section separators */
.preview-title{
  position: relative;
}
.preview-title::after{
  content:"";
  display:block;
  height: 2px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(94,203,255,0.55), rgba(255,190,92,0.40), rgba(168,85,247,0.40));
  opacity: 0.8;
}

/* =========================
   APP THEME (Home + Cart + Approve + Handoff)
   ========================= */

/*body.theme{
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(30, 58, 138, 0.45), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(56, 189, 248, 0.18), transparent 55%),
    linear-gradient(180deg, #050b1a 0%, #060f26 60%, #050b1a 100%);
  color: rgba(255,255,255,0.95);
}*/

body.theme{
    background: #09112a;
    color: rgba(255,255,255,0.95);
}

/* Reuse the top nav across the whole app */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(6, 10, 26, 0.60);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topbar-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

.brand-mini{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: rgba(255,255,255,0.92);
  font-weight: 950;
}
.brand-mini img{ width: 170px; height: 70px; border-radius: 10px; }
.brand-text{ font-size: 14px; letter-spacing: .2px; }

.topnav{
  display:flex;
  gap: 14px;
}
.topnav a{
  color: rgba(255,255,255,0.78);
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
.topnav a:hover{
  color: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.16);
}

/* Main content width parity with home */
.theme .container{
  max-width: 1100px;
}

/* Neon card treatment for store cards across pages */
.theme .store-card{
  background: rgba(10, 18, 44, 0.60);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 55px rgba(0,0,0,0.40);
}

.theme .store-card.best{
  border-color: rgba(56,189,248,0.70);
  box-shadow:
    0 0 0 1px rgba(56,189,248,0.28),
    0 0 28px rgba(56,189,248,0.18),
    0 18px 55px rgba(0,0,0,0.40);
}

/* Approve buttons feel consistent */
.theme .approve-btn,
.theme .prompt-btn{
  background: linear-gradient(135deg, rgba(56,189,248,0.95), rgba(14,165,233,0.95));
  color: #021026;
  border: none;
  font-weight: 950;
  box-shadow: 0 0 18px rgba(56,189,248,0.35), 0 14px 36px rgba(0,0,0,0.35);
}
.theme .approve-btn:hover,
.theme .prompt-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(56,189,248,0.55), 0 18px 44px rgba(0,0,0,0.42);
}

/* Small neon accent for badges */
.theme .badge{
  border: 1px solid rgba(56,189,248,0.35);
  background: rgba(56,189,248,0.10);
}

/* Header card styling to match home */
.theme .page-head-card{
  border-radius: 24px;
  border: 1px solid rgba(56,189,248,0.55);
  background: rgba(10, 18, 44, 0.60);
  box-shadow:
    0 0 0 1px rgba(56,189,248,0.22),
    0 0 26px rgba(56,189,248,0.16),
    0 18px 55px rgba(0,0,0,0.40);
  padding: 14px;
  margin: 16px auto 12px;
}

/* Softer text colors */
.theme .subtitle,
.theme .small-note{
  color: rgba(255,255,255,0.74);
}

/* Loading overlay pops on dark theme */
.theme .loading-card{
  border: 1px solid rgba(56,189,248,0.35);
  background: rgba(10, 18, 44, 0.72);
  box-shadow: 0 0 30px rgba(56,189,248,0.18), 0 20px 60px rgba(0,0,0,0.55);
}

/* =========================
   NAV LOGO GLOW (tasteful)
   ========================= */

.brand-mini img{
  position: relative;
  box-shadow: 0 0 0 rgba(56,189,248,0);
  animation: genieGlow 4.8s ease-in-out infinite;
}

@keyframes genieGlow{
  0%, 100% { box-shadow: 0 0 0 rgba(56,189,248,0); }
  50% { box-shadow: 0 0 18px rgba(56,189,248,0.45); }
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce){
  .brand-mini img{ animation: none; }
}

/* Back link style */
.back-link{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  text-decoration:none;
  font-weight: 900;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,0.25);
  background: rgba(56,189,248,0.08);
  color: rgba(255,255,255,0.92);
}
.back-link:hover{
  border-color: rgba(56,189,248,0.45);
  background: rgba(56,189,248,0.14);
}

/* =========================
   ADS (horizontal + right rail)
   ========================= */

.ad-wrap{
  border-radius: 18px;
  border: 1px solid rgba(56,189,248,0.22);
  background: rgba(10, 18, 44, 0.40);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  padding: 10px;
  overflow: hidden;
}

.ad-label{
  font-size: 11px;
  font-weight: 900;
  opacity: 0.70;
  margin-bottom: 8px;
}

.ad-horizontal{
  margin: 14px 0 10px;
}

.ad-vertical{
  position: sticky;
  top: 86px; /* below topbar */
}

/* Layout for pages with right rail */
.page-layout{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 980px){
  .page-layout{
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}
/* =========================
   CART ACCORDION + BRAND ACCENTS
   ========================= */

.accordion{ display:flex; flex-direction:column; gap: 12px; }

.acc-item{
  border-radius: 22px;
  overflow:hidden;
}

.acc-head{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: none;
  cursor: pointer;
  background: rgba(10, 18, 44, 0.55);
  color: rgba(255,255,255,0.95);
  text-align:left;
}

.acc-left{ display:flex; align-items:center; gap: 12px; min-width:0; }
.acc-title{ min-width:0; }
.acc-store{
  font-weight: 950;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-sub{ margin-top: 4px; opacity:.82; font-size: 12px; }
.acc-morehint{ padding: 10px 14px 12px; font-size: 12px; opacity: .78; }

.acc-chevron{
  width: 12px; height: 12px;
  display:inline-block;
  border-right: 2px solid rgba(255,255,255,0.78);
  border-bottom: 2px solid rgba(255,255,255,0.78);
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.acc-preview{ border-top: 1px solid rgba(255,255,255,0.08); }
.acc-body{
  display:none;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 10px 14px 14px;
  background: rgba(10, 18, 44, 0.48);
}
.acc-item.open .acc-body{ display:block; }
.acc-item.open .acc-chevron{ transform: rotate(225deg); }

.items.compact .item{
  padding: 10px 0;
}
.items.compact img{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
}

/* Brand accent wrapper */
.store-accent{
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10, 18, 44, 0.60);
}

.store-dot{
  width: 12px; height: 12px;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(56,189,248,0.35);
  background: rgba(56,189,248,0.9);
}

/* Store-specific colours (tasteful “brand-like” accents) */
.store-tesco{
  border-color: rgba(230, 0, 0, 0.35);
}
.store-tesco .store-dot{
  background: rgba(230, 0, 0, 0.95);
  box-shadow: 0 0 16px rgba(230,0,0,0.25);
}
.store-asda{
  border-color: rgba(0, 140, 82, 0.35);
}
.store-asda .store-dot{
  background: rgba(0, 140, 82, 0.95);
  box-shadow: 0 0 16px rgba(0,140,82,0.25);
}
.store-sainsburys{
  border-color: rgba(241, 90, 34, 0.35);
}
.store-sainsburys .store-dot{
  background: rgba(241, 90, 34, 0.95);
  box-shadow: 0 0 16px rgba(241,90,34,0.25);
}
.store-morrisons{
  border-color: rgba(0, 105, 56, 0.35);
}
.store-morrisons .store-dot{
  background: rgba(0, 105, 56, 0.95);
  box-shadow: 0 0 16px rgba(0,105,56,0.25);
}

/* Keep Best Deal glow */
.theme .acc-item.open,
.theme .acc-item.best{}

/* =========================
   MOBILE BURGER MENU
   ========================= */

.nav-toggle{
  display:none;
  width: 42px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap: 5px;
}
.nav-toggle span{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.86);
  border-radius: 2px;
}

@media (max-width: 780px){
  .nav-toggle{ display:flex; }
  .topnav{
    display:none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(10, 18, 44, 0.80);
  }
  .topnav.open{ display:flex; }
  .topbar-inner{ flex-wrap: wrap; }
  .topnav a{ width: fit-content; }
}

/* =========================
   FOOTER + CONTENT PAGES
   ========================= */

.site-footer{
  margin-top: 18px;
  padding: 18px 16px;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(6, 10, 26, 0.35);
  border-radius: 22px;
}

.footer-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 920px){
  .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-col a{
  display:block;
  text-decoration:none;
  color: rgba(255,255,255,0.78);
  font-weight: 800;
  font-size: 13px;
  padding: 6px 0;
}
.footer-col a:hover{ color: rgba(255,255,255,0.95); }

.footer-title{
  font-weight: 950;
  color: rgba(255,255,255,0.92);
  margin-bottom: 6px;
}

.footer-brand{
  font-weight: 950;
  font-size: 15px;
  color: rgba(255,255,255,0.95);
}

.footer-sub{
  margin-top: 8px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  line-height: 1.5;
}

.footer-bottom{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.70);
  font-size: 12px;
  text-align:center;
}

/* Content page card */
.content-card{
  border-radius: 24px;
  border: 1px solid rgba(56,189,248,0.28);
  background: rgba(10, 18, 44, 0.55);
  box-shadow: 0 18px 55px rgba(0,0,0,0.40);
  padding: 16px;
  margin: 16px 0 12px;
}

.content-card h1{
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 950;
}

.content-card h2{
  margin: 16px 0 8px;
  font-size: 16px;
  font-weight: 950;
}

.content-card p, .content-card li{
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.6;
}

.content-card ul{ padding-left: 18px; }

/* Guide list cards */
.guide-list{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 920px){
  .guide-list{ grid-template-columns: repeat(2, 1fr); }
}

.guide-card{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10, 18, 44, 0.45);
  padding: 14px;
}
.guide-card a{
  text-decoration:none;
  color: rgba(255,255,255,0.95);
}
.guide-card .g-title{
  font-weight: 950;
  font-size: 15px;
}
.guide-card .g-excerpt{
  margin-top: 8px;
  color: rgba(255,255,255,0.74);
  font-size: 13px;
  line-height: 1.5;
}
.guide-card .g-meta{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.68);
}

