:root {
  /* Pokémon-inspired, commerce-grade light theme */
  --bg: #f4f6fb;
  --bg-2: #eef1f8;
  --surface: #ffffff;
  --ink: #131a2b;
  --ink-soft: #4a5468;
  --muted: #7a8397;
  --line: #e6e9f2;
  --blue: #2a75bb;      /* Pokémon electric blue */
  --blue-dark: #1d5a94;
  --blue-ink: #0f3a63;
  --yellow: #ffcb05;    /* Pokémon yellow */
  --yellow-deep: #f0a500;
  --red: #ee1515;
  --green: #25d366;     /* WhatsApp */
  --green-dark: #1da851;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(19,26,43,.06), 0 4px 12px rgba(19,26,43,.05);
  --shadow-md: 0 8px 24px rgba(19,26,43,.10);
  --shadow-lg: 0 20px 50px rgba(24,45,86,.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; font-size: 1.35rem; letter-spacing: -.6px; color: var(--blue-ink); }
.brand .dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: conic-gradient(var(--red) 0 50%, #fff 50% 100%);
  border: 3px solid #16233b; position: relative; box-shadow: var(--shadow-sm);
}
.brand .dot::before { content:""; position:absolute; left:0; right:0; top:50%; height:3px; background:#16233b; transform:translateY(-50%); }
.brand .dot::after { content:""; position:absolute; inset:0; margin:auto; width:8px; height:8px; background:#fff; border:3px solid #16233b; border-radius:50%; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 9px 15px; border-radius: 10px; color: var(--ink-soft); font-weight: 700; font-size: .95rem; transition: background .15s, color .15s; }
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a.active { color: var(--blue); background: #eaf2fb; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 24px; border-radius: 999px;
  font-weight: 800; font-size: 1rem; cursor: pointer; border: none; transition: transform .12s ease, box-shadow .12s ease, filter .12s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; }
.btn-wa { background: var(--green); color: #06210f; box-shadow: 0 8px 20px rgba(37,211,102,.35); }
.btn-wa:hover { box-shadow: 0 12px 26px rgba(37,211,102,.45); }
.btn-primary { background: linear-gradient(180deg, #3486d1, var(--blue)); color: #fff; box-shadow: 0 8px 20px rgba(42,117,187,.35); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(42,117,187,.45); }
.btn-yellow { background: linear-gradient(180deg, #ffd23d, var(--yellow)); color: #4a3400; box-shadow: 0 8px 20px rgba(240,165,0,.3); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #cfd6e6; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(900px 500px at 15% -20%, #eaf2fb 0%, transparent 55%),
              radial-gradient(800px 500px at 100% 0%, #fff7d9 0%, transparent 50%),
              var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 66px 0 58px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; text-align: center; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #eaf2fb; color: var(--blue); font-weight: 800;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .8px; padding: 7px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.03; letter-spacing: -1.6px; font-weight: 900; margin: 18px 0 0; color: var(--ink); }
.hero h1 .hl { color: var(--blue); position: relative; }
.hero h1 .hl::after { content:""; position:absolute; left:0; right:0; bottom:4px; height:12px; background: var(--yellow); opacity:.45; z-index:-1; border-radius: 4px; }
.hero p.lead { color: var(--ink-soft); font-size: 1.18rem; max-width: 540px; margin: 18px 0 0; }
@media (max-width: 900px) { .hero p.lead { margin-left: auto; margin-right: auto; } }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-cta { justify-content: center; } }

/* Hero card fan */
.card-fan { position: relative; height: 340px; display: flex; align-items: center; justify-content: center; }
.poke-card {
  position: absolute; width: 186px; height: 260px; border-radius: 12px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  background-size: cover; background-position: center;
  transition: transform .3s ease;
}
.poke-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poke-card.c1 { transform: rotate(-16deg) translateX(-104px) translateY(10px); background: linear-gradient(150deg,#ffe259,#ffa751); }
.poke-card.c2 { transform: rotate(0deg) translateY(-14px); z-index: 3; background: linear-gradient(150deg,#43cea2,#185a9d); }
.poke-card.c3 { transform: rotate(16deg) translateX(104px) translateY(10px); background: linear-gradient(150deg,#8367c7,#4a2fbd); }
.card-fan:hover .c1 { transform: rotate(-20deg) translateX(-128px) translateY(6px); }
.card-fan:hover .c3 { transform: rotate(20deg) translateX(128px) translateY(6px); }
@media (max-width: 900px) { .card-fan { height: 300px; } }

/* ---------- Trust bar ---------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 22px 0; }
@media (max-width: 720px) { .trust-inner { grid-template-columns: 1fr; gap: 12px; } }
.trust-item { display: flex; align-items: center; gap: 12px; justify-content: center; font-weight: 700; color: var(--ink-soft); font-size: .96rem; }
.trust-item .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #eaf2fb; color: var(--blue); flex: none; }
.trust-item .ic svg { width: 20px; height: 20px; }

/* ---------- Sections ---------- */
section { padding: 46px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 8px; }
.section-head h2 { font-size: 1.75rem; letter-spacing: -.7px; color: var(--ink); }
.section-head .sub { color: var(--muted); font-size: .96rem; font-weight: 600; }

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tag { display: inline-block; font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .7px;
  background: var(--blue); color: #fff; padding: 5px 11px; border-radius: 999px; }
.tag.market { background: var(--green-dark); }
.tag.tip { background: var(--yellow); color: #4a3400; }
.card .date { color: var(--muted); font-size: .82rem; font-weight: 700; margin: 14px 0 6px; }
.card h3 { font-size: 1.16rem; line-height: 1.3; margin-bottom: 8px; color: var(--ink); }
.card p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- Show list ---------- */
.show { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm); transition: transform .16s, box-shadow .16s; }
.show:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.show .when { text-align: center; min-width: 62px; background: var(--blue-ink); color: #fff; border-radius: 12px; padding: 8px 6px; }
.show .when .d { font-size: 1.45rem; font-weight: 900; line-height: 1; color: var(--yellow); }
.show .when .m { font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; opacity: .9; }
.show .info h4 { font-size: 1.05rem; color: var(--ink); }
.show .info span { color: var(--muted); font-size: .9rem; font-weight: 600; }

/* ---------- Buy list ---------- */
.buy-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-left: 4px solid var(--yellow); }
.buy-item .price { color: var(--green-dark); font-weight: 900; white-space: nowrap; font-size: .92rem; }
.buy-item .meta h3 { margin-bottom: 2px; }
.buy-item .meta p { font-size: .88rem; color: var(--muted); }

/* ---------- Panel / form ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-md); }
.panel h2 { font-size: 1.6rem; margin-bottom: 6px; letter-spacing: -.5px; }
.panel .lead { color: var(--ink-soft); margin-bottom: 24px; }
.field { margin-bottom: 17px; }
.field label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fbfcfe; color: var(--ink); font-size: 1rem; font-family: inherit; transition: border .15s, box-shadow .15s; }
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42,117,187,.14); }
.hint { color: var(--muted); font-size: .82rem; margin-top: 6px; }
.warn { background: #fff4f4; border: 1px solid #ffc9c9; color: #b42121; padding: 13px 15px; border-radius: 12px; font-size: .9rem; margin-bottom: 20px; font-weight: 600; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 44px; padding: 34px 0; color: var(--muted); font-size: .9rem; background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }
.footer-inner a { color: var(--blue); font-weight: 700; }

.floating-wa { position: fixed; right: 22px; bottom: 22px; z-index: 60; }

/* ---------- Small screens: compact nav ---------- */
@media (max-width: 560px) {
  .nav-inner { height: 60px; }
  .brand { font-size: 1.15rem; gap: 8px; }
  .brand .dot { width: 24px; height: 24px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 7px 9px; font-size: .82rem; }
}

/* ---------- Buy-Back catalog: toolbar (search + tabs) ---------- */
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 260px; min-width: 220px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; padding: 12px 14px 12px 42px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 1rem; font-family: inherit; box-shadow: var(--shadow-sm);
  transition: border .15s, box-shadow .15s;
}
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42,117,187,.14); }
.search input::-webkit-search-cancel-button { cursor: pointer; }

.tabs { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.tab { border: none; background: transparent; color: var(--ink-soft); font-weight: 800; font-size: .92rem;
  padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; font-family: inherit; }
.tab:hover { color: var(--ink); }
.tab.active { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(42,117,187,.3); }

/* ---------- Catalog grid ---------- */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
@media (max-width: 460px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.cat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease; display: flex; flex-direction: column; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Card image / placeholder — card-shaped */
.cat-thumb { position: relative; aspect-ratio: 3 / 4; background: #e9edf6; overflow: hidden; }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Placeholder "card back" look */
.cat-thumb.ph {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.3' opacity='0.85'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h6a3 3 0 0 0 6 0h6'/%3E%3Ccircle cx='12' cy='12' r='2.3' fill='%23ffffff'/%3E%3C/svg%3E") center/44% no-repeat,
    linear-gradient(160deg, #3a74b8 0%, #24508a 60%, #1d3f70 100%);
}
.cat-thumb.ph.is-slab {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.3' opacity='0.85'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h6a3 3 0 0 0 6 0h6'/%3E%3Ccircle cx='12' cy='12' r='2.3' fill='%23ffffff'/%3E%3C/svg%3E") center/44% no-repeat,
    linear-gradient(160deg, #6b7280 0%, #4b5563 55%, #374151 100%);
}
.cat-type { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.92); color: var(--blue-ink);
  font-weight: 900; font-size: .64rem; letter-spacing: .5px; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.cat-type.slab { background: var(--yellow); color: #4a3400; }

.cat-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cat-body h3 { font-size: 1rem; line-height: 1.2; color: var(--ink); }
.cat-body p { font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; min-height: 1em; }
.cat-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.cat-price { color: var(--green-dark); font-weight: 900; font-size: .84rem; }
.cat-sell { padding: 7px 14px; font-size: .82rem; box-shadow: none; }

.catalog-empty { text-align: center; color: var(--muted); font-weight: 600; padding: 30px 10px; }
.catalog-empty a { color: var(--blue); font-weight: 800; }
