:root {
  --v531-primary: #6F4E37;     /* coffee brown - brand */
  --v531-blue: #6495ED;        /* cornflower blue */
  --v531-sky: #00BFFF;         /* deep sky - accent */
  --v531-teal: #00CED1;        /* dark turquoise */
  --v531-bg: #333333;          /* dark background */
  --v531-bg2: #2a2622;         /* deeper brown-black */
  --v531-text: #CCCCCC;        /* light grey text */
  --v531-text-strong: #ffffff; /* headings */
  --v531-muted: #8a857f;
  --v531-border: rgba(204, 204, 204, 0.14);
  --v531-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --v531-radius: 12px;
  --v531-header-h: 56px;
  --v531-bottom-h: 62px;
}

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

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Be Vietnam Pro", sans-serif;
  background: var(--v531-bg);
  color: var(--v531-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}

a { color: var(--v531-sky); text-decoration: none; }
img { max-width: 100%; display: block; }

.v531-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.v531-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--v531-header-h);
  background: linear-gradient(90deg, var(--v531-bg2), #1c1814);
  border-bottom: 1px solid var(--v531-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: var(--v531-shadow);
}
.v531-header .v531-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.v531-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.v531-brand img {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--v531-teal);
}
.v531-brand-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v531-text-strong);
  white-space: nowrap;
}
.v531-brand-name span { color: var(--v531-sky); }

.v531-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v531-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0 1rem;
  border-radius: 999px;
  border: none;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.v531-btn:active { transform: scale(0.96); }
.v531-btn-primary {
  background: linear-gradient(135deg, var(--v531-sky), var(--v531-teal));
  color: #0d2730;
  box-shadow: 0 4px 12px rgba(0, 191, 255, 0.35);
}
.v531-btn-ghost {
  background: transparent;
  color: var(--v531-text);
  border: 1px solid var(--v531-border);
}
.v531-icon-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(204,204,204,0.08);
  color: var(--v531-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 1.8rem;
}

.v531-mobile-menu {
  position: fixed;
  top: var(--v531-header-h);
  left: 0; right: 0;
  background: var(--v531-bg2);
  border-bottom: 1px solid var(--v531-border);
  transform: translateY(-130%);
  transition: transform 0.25s ease;
  z-index: 9999;
  padding: 0.8rem 1.2rem 1.2rem;
  max-height: calc(100vh - var(--v531-header-h));
  overflow-y: auto;
}
.v531-mobile-menu.v531-menu-open { transform: translateY(0); }
.v531-mobile-menu a {
  display: block;
  padding: 0.85rem 0.6rem;
  color: var(--v531-text);
  border-bottom: 1px solid var(--v531-border);
  font-size: 1.35rem;
}
.v531-mobile-menu a:last-child { border-bottom: none; }
.v531-mobile-menu a:active { color: var(--v531-sky); }

main {
  padding-top: calc(var(--v531-header-h) + 8px);
  padding-bottom: 0;
}
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--v531-bottom-h) + 14px); }
}

.v531-section { padding: 1.6rem 0; }
.v531-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--v531-text-strong);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.v531-section-title i { color: var(--v531-sky); }
.v531-lead {
  font-size: 1.35rem;
  color: var(--v531-text);
  margin-bottom: 1rem;
}

.v531-carousel {
  position: relative;
  border-radius: var(--v531-radius);
  overflow: hidden;
  box-shadow: var(--v531-shadow);
  margin-bottom: 1.2rem;
}
.v531-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.v531-slide.v531-slide-active { display: block; }
.v531-slide img { width: 100%; height: 180px; object-fit: cover; }
.v531-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.7rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--v531-text-strong);
  font-weight: 600;
  font-size: 1.3rem;
}
.v531-dots {
  position: absolute;
  bottom: 8px; right: 10px;
  display: flex; gap: 5px;
}
.v531-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none; cursor: pointer;
}
.v531-dot.v531-dot-active { background: var(--v531-sky); }

.v531-filter {
  display: flex; gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  margin-bottom: 0.8rem;
}
.v531-filter-btn {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(204,204,204,0.08);
  color: var(--v531-text);
  border: 1px solid var(--v531-border);
  font-size: 1.2rem;
  cursor: pointer;
  white-space: nowrap;
}
.v531-filter-btn.v531-filter-active {
  background: var(--v531-sky);
  color: #0d2730;
  border-color: var(--v531-sky);
}

.v531-group-label {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--v531-sky);
  margin: 1.1rem 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.v531-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.v531-card {
  background: var(--v531-bg2);
  border: 1px solid var(--v531-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
  text-align: center;
}
.v531-card:active { transform: scale(0.96); }
.v531-card img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  background: #111;
}
.v531-card-name {
  font-size: 1.05rem;
  color: var(--v531-text);
  padding: 0.35rem 0.3rem 0.5rem;
  line-height: 1.25rem;
  min-height: 32px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.v531-card-box {
  background: var(--v531-bg2);
  border: 1px solid var(--v531-border);
  border-radius: var(--v531-radius);
  padding: 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--v531-shadow);
}
.v531-card-box h2 {
  font-size: 1.55rem;
  color: var(--v531-text-strong);
  margin-bottom: 0.6rem;
}
.v531-card-box h3 {
  font-size: 1.3rem;
  color: var(--v531-sky);
  margin: 0.8rem 0 0.4rem;
}
.v531-card-box p { margin-bottom: 0.6rem; }

.v531-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.v531-feature {
  background: rgba(204,204,204,0.06);
  border-radius: 10px;
  padding: 0.9rem;
  text-align: center;
  border: 1px solid var(--v531-border);
}
.v531-feature i { font-size: 2.2rem; color: var(--v531-teal); margin-bottom: 0.4rem; }
.v531-feature strong { display: block; color: var(--v531-text-strong); font-size: 1.2rem; }
.v531-feature span { font-size: 1.1rem; color: var(--v531-muted); }

.v531-testimonials { display: grid; gap: 0.7rem; }
.v531-testimonial {
  background: var(--v531-bg2);
  border-left: 3px solid var(--v531-sky);
  padding: 0.9rem;
  border-radius: 8px;
}
.v531-testimonial p { font-style: italic; }
.v531-testimonial cite { display: block; margin-top: 0.4rem; color: var(--v531-muted); font-size: 1.15rem; }

.v531-pay-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.v531-pay-chip {
  padding: 0.4rem 0.9rem;
  background: rgba(204,204,204,0.08);
  border: 1px solid var(--v531-border);
  border-radius: 999px;
  font-size: 1.15rem;
  color: var(--v531-text);
}

.v531-winners { display: grid; gap: 0.5rem; }
.v531-winner {
  display: flex; justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: rgba(204,204,204,0.06);
  border-radius: 8px;
  font-size: 1.2rem;
}
.v531-winner b { color: var(--v531-teal); }

.v531-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1.1rem;
  font-size: 1.45rem;
  font-weight: 800;
  border-radius: var(--v531-radius);
  background: linear-gradient(135deg, var(--v531-sky), var(--v531-teal));
  color: #0d2730;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,191,255,0.4);
  margin: 1rem 0;
}
.v531-text-link {
  color: var(--v531-sky);
  font-weight: 700;
  text-decoration: underline;
}

.v531-footer {
  background: #1c1814;
  border-top: 1px solid var(--v531-border);
  padding: 1.6rem 0 0.6rem;
  color: var(--v531-muted);
  font-size: 1.2rem;
}
.v531-footer h4 { color: var(--v531-text-strong); font-size: 1.35rem; margin-bottom: 0.6rem; }
.v531-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 0.8rem;
  margin: 0.8rem 0;
}
.v531-footer-links a { color: var(--v531-text); font-size: 1.15rem; }
.v531-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0.8rem 0;
}
.v531-footer-copy {
  text-align: center;
  padding-top: 0.8rem;
  border-top: 1px solid var(--v531-border);
  font-size: 1.1rem;
}

.v531-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--v531-bottom-h);
  background: linear-gradient(180deg, #241f1a, #14110d);
  border-top: 1px solid var(--v531-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
}
.v531-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--v531-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.05rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.v531-bottom-nav-btn:active { transform: scale(0.92); }
.v531-bottom-nav-btn i,
.v531-bottom-nav-btn .material-icons-outlined,
.v531-bottom-nav-btn ion-icon { font-size: 22px; }
.v531-bottom-nav-btn.v531-nav-active { color: var(--v531-sky); }
.v531-bottom-nav-btn:hover { color: var(--v531-sky); }

@media (min-width: 769px) {
  .v531-bottom-nav { display: none; }
  .v531-wrapper { max-width: 760px; }
  .v531-grid { grid-template-columns: repeat(5, 1fr); }
  .v531-features { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 481px) and (max-width: 768px) {
  .v531-grid { grid-template-columns: repeat(4, 1fr); }
}
