:root{
  --bg1:#f7f9ff;
  --bg2:#eef4ff;
  --text:#0b1220;
  --muted:rgba(11,18,32,.65);
  --line:rgba(15,23,42,.12);
  --card:rgba(255,255,255,.78);
  --shadow: 0 14px 40px rgba(2,6,23,.10);
  --shadow2: 0 10px 26px rgba(2,6,23,.10);
  --blue:#2563eb;
  --blue2:#1d4ed8;
  --r:26px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(1000px 700px at 12% -10%, rgba(37,99,235,.22), transparent 60%),
    radial-gradient(900px 650px at 96% 0%, rgba(99,102,241,.18), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

a{color:inherit;text-decoration:none}
.container{max-width:1200px;margin:0 auto;padding:22px}
.small{font-size:12px;color:var(--muted)}
.muted{color:var(--muted)}
.hr{height:1px;background:var(--line);margin:14px 0}

/* Top bar (results + marketplace) */
.topbar{
  display:flex;align-items:center;justify-content:space-between;
  gap:14px;flex-wrap:wrap;
}
.brand{
  display:flex;align-items:center;gap:10px;
  font-weight:900;letter-spacing:.2px;
}
.logoMark{
  width:34px;height:34px;border-radius:12px;
  background: linear-gradient(135deg, rgba(37,99,235,.95), rgba(99,102,241,.55));
  box-shadow: 0 10px 18px rgba(37,99,235,.20);
}
.brandText{font-size:20px}
.brandText span{color:var(--blue)}
.nav{
  display:flex;gap:10px;flex-wrap:wrap;align-items:center;
}
.pill{
  padding:10px 14px;border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
  font-weight:800;
}
.pill.primary{
  background: linear-gradient(135deg, rgba(37,99,235,.95), rgba(99,102,241,.55));
  border-color: rgba(37,99,235,.22);
  color:#fff;
}

/* Home hero (Google-like centered) */
.hero{
  padding:52px 0 10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.heroTitle{
  font-size:54px;
  font-weight:1000;
  line-height:1.02;
  margin:0;
}
.heroTitle .grad{
  background: linear-gradient(135deg, rgba(37,99,235,1), rgba(99,102,241,1));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.heroSub{
  margin-top:10px;
  max-width:780px;
  color:var(--muted);
  font-size:15px;
  line-height:1.5;
}

/* Search bar */
.searchShell{
  width:min(860px, 100%);
  margin-top:22px;
}
.searchRow{
  display:flex;gap:10px;align-items:center;
  padding:10px;
  border-radius:999px;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.searchIcon{
  width:42px;height:42px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(37,99,235,.10);
  border:1px solid rgba(37,99,235,.12);
  color:var(--blue2);
  flex:0 0 auto;
  font-weight:900;
}
.searchInput{
  flex:1;
  border:none;
  outline:none;
  background:transparent;
  font-size:16px;
  padding:10px 6px;
}
.searchBtn{
  border:none;
  cursor:pointer;
  padding:12px 18px;
  border-radius:999px;
  font-weight:900;
  color:#fff;
  background: linear-gradient(135deg, rgba(37,99,235,.98), rgba(99,102,241,.70));
  box-shadow: 0 14px 28px rgba(37,99,235,.22);
  flex:0 0 auto;
}
.searchBtn:hover{filter:brightness(1.03)}

/* Tabs like Google */
.tabs{
  display:flex;gap:10px;flex-wrap:wrap;
  margin-top:14px;
  justify-content:center;
}
.tab{
  padding:10px 14px;border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.65);
  backdrop-filter: blur(10px);
  font-weight:900;
}
.tab.active{
  border-color: rgba(37,99,235,.22);
  background: rgba(37,99,235,.12);
  color: var(--blue2);
}

/* Advanced */
.advWrap{
  width:min(860px, 100%);
  margin:12px auto 0;
  text-align:left;
}
details.adv{
  border:1px solid var(--line);
  background:rgba(255,255,255,.62);
  border-radius:18px;
  padding:10px 12px;
  box-shadow: var(--shadow2);
}
details.adv summary{
  cursor:pointer;
  font-weight:900;
  color:rgba(11,18,32,.75);
}
.advGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:10px;
}
@media(max-width:900px){.advGrid{grid-template-columns:1fr}}
.label{font-size:12px;color:rgba(11,18,32,.65);font-weight:800;margin-bottom:6px}
.select{
  width:100%;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  outline:none;
}

/* Results layout like Google: left column + optional right card */
.resultsLayout{
  display:grid;
  grid-template-columns: minmax(0,720px) minmax(0,1fr);
  gap:18px;
  margin-top:16px;
  align-items:start;
}
@media(max-width:1100px){.resultsLayout{grid-template-columns:1fr}}

.resultCard{
  padding:14px 14px;
  border-radius:22px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
  margin-bottom:10px;
}
.rTitle{font-weight:1000}
.rUrl{margin-top:6px;font-size:12px;color:rgba(11,18,32,.55);word-break:break-all}
.rDesc{margin-top:8px;color:rgba(11,18,32,.70);font-size:13px;line-height:1.5}
.meta{margin-top:10px;color:rgba(11,18,32,.60);font-size:12px}

/* Right side card (optional) */
.sideCard{
  padding:14px;
  border-radius:22px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
}

/* Marketplace grid */
.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:14px;
}
@media(max-width:1000px){.grid{grid-template-columns:1fr}}
.tCard{
  border:1px solid var(--line);
  background:rgba(255,255,255,.72);
  border-radius:22px;
  overflow:hidden;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
}
.tImg{height:170px;background:rgba(2,6,23,.04)}
.tImg img{width:100%;height:100%;object-fit:cover;display:block}
.tMeta{padding:12px}
.tName{font-weight:1000}
.tDomain{margin-top:6px;color:rgba(11,18,32,.60);font-size:12px}
.tPrice{margin-top:8px;font-weight:1000;color:var(--blue2)}

.notice{
  margin-top:12px;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(245,158,11,.35);
  background:rgba(245,158,11,.12);
  color:rgba(120,53,15,1);
}

.footer{
  margin-top:26px;
  color:rgba(11,18,32,.45);
  font-size:12px;
  text-align:center;
}