:root {
  --bg: #dfe5ec;
  --surface: #dfe5ec;
  --surface-2: #e8edf3;
  --pressed: #cfd7e1;
  --text: #1f2933;
  --muted: #637083;
  --accent: #111111;
  --blue: #1877f2;
  --red: #e52020;
  --shopee: #ee4d2d;
  --card-yellow: #ffd91a;
  --accent-2: #f2c94c;
  --line: rgba(104, 123, 137, 0.22);
  --shadow-out: 14px 14px 28px rgba(150, 160, 174, 0.68), -14px -14px 28px rgba(255, 255, 255, 0.82);
  --shadow-soft: 9px 9px 18px rgba(150, 160, 174, 0.52), -9px -9px 18px rgba(255, 255, 255, 0.78);
  --shadow-in: inset 8px 8px 16px rgba(150, 160, 174, 0.55), inset -8px -8px 16px rgba(255, 255, 255, 0.86);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
  padding: 26px 0 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
  border-radius: 22px;
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow-out);
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: 18px;
  padding: 10px 12px;
  background: var(--surface-2);
  box-shadow: var(--shadow-in);
}

.brand img {
  width: min(176px, 42vw);
  height: auto;
  display: block;
}

.search {
  display: flex;
  align-items: stretch;
  width: min(390px, 100%);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-in);
  padding: 8px;
}

.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #1f2933;
  padding: 11px 13px;
  outline: none;
  font-weight: 700;
}

.search input::placeholder {
  color: rgba(31, 41, 51, 0.54);
}

.search input:focus {
  box-shadow: inset 0 0 0 2px rgba(13, 90, 69, 0.14);
}

.icon-button {
  min-width: 82px;
  border: 0;
  border-radius: 12px;
  background: #f7f9fc;
  color: #1f2933;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.icon-button:hover,
.tab:hover,
.dialog-cta:hover {
  transform: translateY(-1px);
}

.icon-button:active,
.tab:active,
.page-button:active,
.dialog-cta:active {
  box-shadow: var(--shadow-in);
  transform: translateY(1px);
}

.title-section {
  text-align: center;
  margin-bottom: 20px;
  border-radius: 22px;
  background: var(--surface);
  padding: 30px 24px;
  box-shadow: var(--shadow-soft);
}

.title-section h1 {
  margin: 0 0 24px;
  color: #111111;
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.ticker {
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  color: var(--shopee);
  padding: 12px 0;
  box-shadow: var(--shadow-in);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 900;
  white-space: nowrap;
}

.ticker span {
  display: inline-block;
  min-width: 100%;
  animation: ticker 24s linear infinite;
  text-transform: uppercase;
}

@keyframes ticker {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
  border-radius: 18px;
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.result-copy {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.tab {
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  color: #263241;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.tab.is-active {
  background: var(--accent);
  color: #f8fbf8;
  box-shadow: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  min-width: 0;
  overflow: hidden;
  border: 2px solid #111111;
  border-radius: 22px;
  background: var(--card-yellow);
  color: #1f2933;
  box-shadow: var(--shadow-out);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 18px 18px 34px rgba(145, 156, 171, 0.72), -18px -18px 34px rgba(255, 255, 255, 0.86);
}

.proof-art {
  display: block;
  width: calc(100% - 28px);
  margin: 14px;
  aspect-ratio: 4 / 3;
  border-radius: 17px;
  object-fit: cover;
  background: var(--surface-2);
  box-shadow: var(--shadow-in);
}

.card-body {
  padding: 0 18px 18px;
}

.card h2 {
  min-height: 3.7em;
  margin: 4px 0 10px;
  color: var(--red);
  font-size: 0.98rem;
  line-height: 1.28;
  text-transform: uppercase;
}

.date {
  margin: 0 0 10px;
  color: #3f4b5c;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.summary {
  min-height: 3.2em;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
  font-weight: 700;
}

.card-link {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 15px;
  background: #f7f9fc;
  color: #1f2933;
  padding: 13px 12px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  border: 1px solid rgba(99, 112, 131, 0.18);
}

.card-link:hover {
  border-color: rgba(24, 119, 242, 0.35);
}

.empty {
  grid-column: 1 / -1;
  border-radius: 22px;
  background: var(--surface);
  padding: 34px;
  text-align: center;
  color: var(--muted);
  box-shadow: var(--shadow-in);
  font-weight: 800;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.page-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  color: #263241;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.page-button.is-active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: none;
}

.footer {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.footer a {
  color: #111111;
  font-weight: 900;
  text-decoration: none;
}

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

.detail-dialog {
  width: min(780px, calc(100% - 26px));
  border: 2px solid #111111;
  border-radius: 24px;
  padding: 14px;
  background: var(--card-yellow);
  color: var(--text);
  box-shadow: var(--shadow-out);
}

.detail-dialog::backdrop {
  background: rgba(84, 98, 111, 0.46);
  backdrop-filter: blur(4px);
}

.close-dialog {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f7f9fc;
  color: #1f2933;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.dialog-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow-in);
}

.dialog-body {
  padding: 20px 8px 8px;
}

.dialog-body h2 {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 1.25rem;
  line-height: 1.25;
}

.dialog-badge {
  display: inline-block;
  margin: 0 0 10px;
  border-radius: 999px;
  background: #f7f9fc;
  color: #263241;
  padding: 8px 12px;
  font-size: 0.74rem;
  font-weight: 900;
  box-shadow: var(--shadow-in);
}

.dialog-date {
  color: #3f4b5c;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dialog-cta {
  display: inline-flex;
  margin-top: 12px;
  border-radius: 15px;
  background: #f7f9fc;
  color: #1f2933;
  padding: 12px 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  .category-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 22px, 1120px);
    padding-top: 16px;
  }

  .topbar,
  .title-section,
  .toolbar {
    border-radius: 18px;
    padding: 16px;
  }

  .title-section h1 {
    font-size: 1.45rem;
    line-height: 1.16;
    margin-bottom: 16px;
  }

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

  .card h2,
  .summary {
    min-height: auto;
  }
}
