/* static/css/style.css */
/* Premium unified design system for current templates */

:root{
  --bg:#0b1220;
  --bg2:#070c16;

  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);
  --stroke: rgba(255,255,255,.12);
  --stroke2: rgba(255,255,255,.16);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);

  --accent:#3b82f6;
  --accent2:#22c55e;
  --danger:#ef4444;

  --radius:16px;
  --radius2:20px;

  --shadow: 0 16px 55px rgba(0,0,0,.40);
  --shadow2: 0 10px 28px rgba(0,0,0,.32);

  --side: 285px;
  --max: 1100px;

  --ease: cubic-bezier(.2,.8,.2,1);
}

*{box-sizing:border-box}
html,body{height:100%}
body.bg{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 780px at 45% -15%, rgba(59,130,246,.32), transparent 62%),
    radial-gradient(900px 640px at 92% 12%, rgba(34,197,94,.18), transparent 55%),
    radial-gradient(900px 640px at 10% 18%, rgba(139,92,246,.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.97}
small,.muted{color:var(--muted)}
.tiny{font-size:12px}
hr{border:0;border-top:1px solid var(--stroke); margin:18px 0}

::selection{background: rgba(59,130,246,.35)}

@media (prefers-reduced-motion:no-preference){
  *{scroll-behavior:smooth}
}

/* Shell layout */
.shell{display:flex; min-height:100vh; overflow-x:hidden}

/* Sidebar */
.sidebar{
  width:var(--side);
  padding:14px;
  border-right:1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  position:sticky; top:0; height:100vh;
  backdrop-filter: blur(10px);
}

.brand{
  display:flex; gap:12px; align-items:center;
  padding:10px 10px 14px 10px; margin-bottom:10px;
}
.brand__mark{width:40px;height:40px;display:grid;place-items:center}
.brand__logo{
  width:38px;height:38px;border-radius:14px;
  background: radial-gradient(circle at 30% 30%, rgba(59,130,246,.95), rgba(34,197,94,.55));
  box-shadow:0 14px 30px rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.14);
}
.brand__text{display:flex;flex-direction:column;gap:2px}
.brand__name{font-weight:850; letter-spacing:.2px}
.brand__tag{font-size:12px; color:var(--muted)}

.sideblock{
  margin-top:12px;
  padding:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 16px;
}
.sideblock__label{
  font-size:12px; color:var(--muted);
  margin-bottom:10px;
  letter-spacing:.2px;
}
.countryBox{
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
}
.countryBox__name{font-weight:700}

.nav{display:flex; flex-direction:column; gap:6px}
.nav__item{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid transparent;
  color:var(--muted);
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.nav__icon{width:22px; text-align:center; opacity:.95}
.nav__text{flex:1}
.nav__pill{
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.nav__item:hover{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
  color: var(--text);
  transform: translateY(-1px);
}
.nav__item.is-active{
  background: rgba(59,130,246,.14);
  border-color: rgba(59,130,246,.35);
  color: var(--text);
}

.sidefoot{margin-top:14px; padding:10px}
.sidefoot__line{
  height:1px;background:rgba(255,255,255,.10);margin:8px 0 10px 0;
}

/* Main */
.main{flex:1; padding:18px 18px 60px; max-width: calc(100vw - var(--side));}
.content{max-width: var(--max);}

.topbar{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:14px; margin-bottom:14px;
}
.pageTitle{
  font-size:20px;
  font-weight:850;
  letter-spacing:.2px;
}
.pageSub{
  margin-top:4px;
  font-size:13px;
  color:var(--muted);
}

.topbar__right{display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end}
.topSearch{
  display:flex; gap:10px; align-items:center;
  padding:8px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.topSearch__input{
  width:320px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline: none;
  transition: box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.topSearch__input:focus{
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 4px rgba(59,130,246,.16);
}

/* Core components */
.btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: var(--text);
  padding:10px 14px;
  border-radius:14px;
  cursor:pointer;
  transition: transform .16s var(--ease), filter .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease);
  box-shadow: 0 10px 22px rgba(0,0,0,.14);
}
.btn:hover{transform: translateY(-1px); filter: brightness(1.06)}
.btn:active{transform: translateY(0px) scale(.99)}
.btn--primary{
  background: linear-gradient(90deg, rgba(59,130,246,.98), rgba(59,130,246,.62));
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 16px 40px rgba(59,130,246,.14), 0 10px 26px rgba(0,0,0,.20);
}
.btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,.12);
  box-shadow:none;
}
.btn--sm{padding:8px 10px; border-radius:12px; font-size:13px}
.btn--full{width:100%}

.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  transition: transform .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.chip:hover{transform: translateY(-1px); color:var(--text); border-color:rgba(255,255,255,.18)}
.chip.is-active, .chip--soft{
  background: rgba(59,130,246,.14);
  border-color: rgba(59,130,246,.40);
  color: var(--text);
}
.chip__count{
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  font-size:12px;
}

/* Panels (used across templates) */
.panel{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding:14px;
}
.panel__row{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:space-between;
}
.chipsRow{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}

/* Section titles */
.sectionTitle{
  margin:18px 0 10px;
  font-weight:850;
  letter-spacing:.2px;
  font-size:16px;
  display:flex;
  align-items:center;
  gap:10px;
}
.sectionTitle:before{
  content:"";
  width:10px; height:10px;
  border-radius:999px;
  background: rgba(59,130,246,.75);
  box-shadow: 0 0 0 6px rgba(59,130,246,.12);
}

/* Forms */
.formGrid{
  display:grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap:10px;
}
.field{grid-column: span 3}
.field--full{grid-column: span 12}
label{display:block; font-size:12px; color:var(--muted); margin:0 0 6px 2px}

input, select, textarea{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.14);
  color: var(--text);
  outline:none;
  transition: box-shadow .18s var(--ease), border-color .18s var(--ease), transform .16s var(--ease);
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}
textarea{min-height:110px; resize:vertical}

/* Cards grid */
.grid{display:grid; gap:12px}
.grid--2{grid-template-columns: 1fr 1fr}
.grid--cards{grid-template-columns: repeat(3, minmax(0, 1fr))}
.grid--products{grid-template-columns: repeat(4, minmax(0, 1fr))}

@media(max-width:1200px){
  .grid--products{grid-template-columns: repeat(3, minmax(0,1fr))}
}
@media(max-width:980px){
  .sidebar{display:none}
  .main{max-width:100vw; padding:14px}
  .content{max-width:100%}
  .topSearch__input{width:220px}
  .grid--cards{grid-template-columns: repeat(2, minmax(0, 1fr))}
  .grid--products{grid-template-columns: repeat(2, minmax(0, 1fr))}
  .grid--2{grid-template-columns:1fr}
  .field{grid-column: span 6}
}
@media(max-width:520px){
  .topSearch__input{width:160px}
  .grid--cards{grid-template-columns:1fr}
  .grid--products{grid-template-columns:1fr}
  .field{grid-column: span 12}
}

/* Big category cards on Home */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
  border-radius: var(--radius2);
  box-shadow: var(--shadow2);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  box-shadow: var(--shadow);
}
.card--big{
  display:flex; gap:14px;
  padding:16px;
  align-items:flex-start;
}
.card__icon{
  width:44px;height:44px;border-radius:16px;
  display:grid;place-items:center;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 26px rgba(0,0,0,.22);
  font-size:22px;
}
.card__title{font-weight:850; font-size:16px}
.card__desc{margin-top:6px; color:var(--muted); font-size:13px; line-height:1.35}
.card__cta{margin-left:auto; color:rgba(255,255,255,.85); font-weight:700; font-size:13px}

/* Product cards */
.pCard{
  padding:14px;
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow2);
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.pCard:hover{transform: translateY(-2px); border-color: rgba(255,255,255,.18); box-shadow: var(--shadow)}
.pCard__img{
  height:120px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(380px 220px at 40% 10%, rgba(59,130,246,.35), transparent 60%),
    radial-gradient(360px 220px at 90% 25%, rgba(34,197,94,.18), transparent 58%),
    rgba(0,0,0,.18);
  display:grid;place-items:center;
  color: rgba(255,255,255,.78);
  font-weight:800;
  letter-spacing:.2px;
}
.pCard__title{margin-top:10px; font-weight:850; font-size:14px}
.pCard__meta{margin-top:6px; color:var(--muted); font-size:12px; line-height:1.3}
.pCard__row{margin-top:12px; display:flex; gap:8px; align-items:center; justify-content:space-between}
.price{font-weight:900}

/* Lists (coupons/services) */
.list{display:flex; flex-direction:column; gap:10px; margin-top:12px}
.listItem{
  display:flex; gap:12px; align-items:flex-start; justify-content:space-between;
  padding:12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.16);
  transition: transform .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.listItem:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.18); background: rgba(0,0,0,.20)}
.listItem__title{font-weight:850}
.listItem__meta{margin-top:6px; color:var(--muted); font-size:12px}
.listItem__side{display:flex; gap:8px; align-items:center}

/* Hero / Empty */
.hero{
  padding:14px 14px 0;
  margin-bottom:10px;
}
.hero-title{
  font-size:22px;
  font-weight:900;
  letter-spacing:.2px;
}
.hero-sub{margin-top:6px; color:var(--muted); font-size:13px}
.empty{
  margin-top:10px;
  padding:14px;
  border-radius: 16px;
  border:1px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
  color: var(--muted);
}

/* Compare page */
.stack{display:flex; flex-direction:column; gap:12px; margin-top:10px}
.compareItem{
  display:flex; gap:12px; align-items:flex-start;
  padding:14px;
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.16);
  box-shadow: var(--shadow2);
}
.cimg{
  width:96px;height:96px;border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  object-fit:cover;
}
.cinfo{flex:1}
.ctitle{font-weight:900}
.cprice{margin-top:8px}
.row{display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:10px}

.miniBtn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:9px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor:pointer;
  transition: transform .16s var(--ease), filter .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease);
}
.miniBtn:hover{transform: translateY(-1px); filter:brightness(1.06)}
.miniBtn.ghost{background: transparent; box-shadow:none}

/* Product page */
.productTop{
  display:flex; gap:14px; align-items:flex-start;
  padding:14px;
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.16);
  box-shadow: var(--shadow2);
}
.pimg{
  width:140px;height:140px;border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  object-fit:cover;
  background: rgba(0,0,0,.18);
}
.pinfo{flex:1}
.pmeta{color:var(--muted); font-size:12px; margin-top:2px}

.section{margin-top:12px}
.section-title{
  font-weight:900;
  margin:14px 0 10px;
  font-size:14px;
  color: rgba(255,255,255,.92);
}
.offers{display:flex; flex-direction:column; gap:10px}
.offer{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  transition: transform .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.offer:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06)}
.offer-store{font-weight:850}
.offer-price{font-weight:950; letter-spacing:.2px}

/* Tables */
.table{width:100%; border-collapse:collapse}
table{width:100%; border-collapse:collapse}
th,td{
  padding:12px 12px;
  text-align:left;
  border-bottom:1px solid rgba(255,255,255,.08);
}
th{
  font-size:12px;
  color: var(--muted);
  background: rgba(255,255,255,.03);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
}
tr:hover td{background: rgba(255,255,255,.03)}
.tablewrap{overflow:auto; border-radius:16px; border:1px solid rgba(255,255,255,.12)}

/* Pills & badges */
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size:12px;
}
.pill.green{border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.12); color: rgba(212,255,230,.92)}
.pill.red{border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.12); color: rgba(255,220,220,.92)}
.badge{
  display:inline-flex; align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size:12px;
}

/* Utility */
.topbar{ /* for pages that use internal topbar blocks */
  display:flex; justify-content:space-between; align-items:center;
  gap:10px; margin-bottom:12px;
}

/* Buttons used in travel/food pasted code */
.primary{
  appearance:none;
  border:1px solid rgba(59,130,246,.55);
  background: linear-gradient(90deg, rgba(59,130,246,.98), rgba(59,130,246,.62));
  color: var(--text);
  padding:10px 14px;
  border-radius:14px;
  cursor:pointer;
  transition: transform .16s var(--ease), filter .16s var(--ease);
}
.primary:hover{transform: translateY(-1px); filter:brightness(1.06)}
.primary:active{transform: translateY(0px) scale(.99)}

/* Make big pages feel centered */
.content{padding-bottom:20px}


/* --- Affiliate/Legal footer --- */
.site-footer{border-top:1px solid rgba(255,255,255,.12); padding:22px 0; margin-top:26px}
.footer__inner{max-width:1100px; margin:0 auto; padding:0 16px; display:flex; flex-direction:column; gap:10px}
.footer__links{display:flex; flex-wrap:wrap; gap:10px; align-items:center; opacity:.9}
.footer__links a{text-decoration:none; border-bottom:1px dashed rgba(255,255,255,.35)}
.footer__links a:hover{border-bottom-style:solid}
.footer__links .dot{opacity:.55}
.footer__note{font-size:13px; opacity:.75; line-height:1.45}
.footer__copy{font-size:12px; opacity:.6}

/* --- Simple content pages --- */
.page__inner{max-width:900px;margin:0 auto;padding:18px 16px}
.prose{line-height:1.65;opacity:.92}
.prose h3{margin:18px 0 8px}
.prose ul{margin:10px 0 10px 18px}

.site-footer{
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 14px;
  opacity: .95;
}

.footer-inner{
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-links{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a{
  text-decoration: none;
  opacity: .9;
}

.footer-links a:hover{
  opacity: 1;
  text-decoration: underline;
}

.footer-note{
  opacity: .75;
}
