@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700&family=Unbounded:wght@500;700;900&display=swap');

/* ==========================================================
   THEME: Ethiopia x China  |  Red, White, Black
   ========================================================== */
:root {
  --red: #e10600;
  --red-hot: #ff2a1f;
  --red-deep: #8f0500;
  --black: #050505;
  --ink: #101010;
  --white: #ffffff;
  --mist: rgba(var(--fg-rgb), 0.08);
  --line: rgba(var(--fg-rgb), 0.14);
  --text-dim: rgba(var(--fg-rgb), 0.68);
  --radius: 18px;
  --font-display: 'Unbounded', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--inv);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* ==========================================================
   MOVING BACKGROUND (3 layers, pure CSS)
   Layer 1: drifting red light fields   (body)
   Layer 2: perspective grid racing forward (body::before)
   Layer 3: diagonal red light sweep + scanlines (body::after)
   ========================================================== */
body {
  background:
    radial-gradient(60vmax 60vmax at 15% 20%, rgba(190, 20, 14, 0.30), transparent 62%),
    radial-gradient(50vmax 50vmax at 85% 30%, rgba(var(--fg-rgb), 0.06), transparent 60%),
    radial-gradient(70vmax 70vmax at 50% 110%, rgba(120, 10, 6, 0.42), transparent 62%),
    var(--inv);
  background-size: 140% 140%, 140% 140%, 140% 140%, auto;
  background-attachment: fixed;
  animation: fieldDrift 80s ease-in-out infinite alternate;   /* slow and calm in dark mode */
}

@keyframes fieldDrift {
  0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  50%  { background-position: 40% 30%, 60% 40%, 30% 70%, 0 0; }
  100% { background-position: 100% 80%, 0% 60%, 70% 0%, 0 0; }
}

/* Perspective grid, like a runway/trade route sliding toward you */
body::before {
  content: '';
  position: fixed;
  left: -50%;
  bottom: -20%;
  width: 200%;
  height: 90%;
  z-index: -2;
  background-image:
    linear-gradient(rgba(var(--fg-rgb), 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 6, 0, 0.55) 1px, transparent 1px);
  background-size: 70px 70px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: center bottom;
  animation: gridRun 3.5s linear infinite;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  pointer-events: none;
}

@keyframes gridRun {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 70px, 70px 0; }
}

/* Red light sweep + fine scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 40%, rgba(255, 42, 31, 0.07) 50%, transparent 60%),
    repeating-linear-gradient(0deg, rgba(var(--fg-rgb), 0.025) 0 1px, transparent 1px 4px);
  background-size: 250% 100%, auto;
  animation: sweep 40s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sweep {
  0%   { background-position: 120% 0, 0 0; }
  100% { background-position: -120% 0, 0 0; }
}

/* --- NAVIGATION BAR --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(225, 6, 0, 0.6), 0 10px 40px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-shadow: 0 0 24px rgba(225, 6, 0, 0.9);
}

.nav-links { display: flex; align-items: center; }

.nav-links a {
  position: relative;
  margin: 0 15px;
  padding: 6px 0;
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--red-hot);
  box-shadow: 0 0 12px var(--red-hot);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.lang-btn {
  background: var(--fg);
  color: var(--inv);
  border: none;
  padding: 9px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.lang-btn:hover {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 24px rgba(225, 6, 0, 0.8);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  text-align: center;
  padding: 110px 20px 90px;
  margin-bottom: 40px;
  background: transparent;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--fg);
  text-shadow: 0 0 60px rgba(225, 6, 0, 0.7);
  animation: heroIn 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero p {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: clamp(16px, 2vw, 20px);
  animation: heroIn 1.1s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* --- PRODUCT GRID --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px 80px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* --- PRODUCT CARD --- */
.card {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s, box-shadow 0.35s;
}

/* red edge light that appears on hover */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--red-hot), transparent 45%, var(--fg));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(225, 6, 0, 0.35), 0 0 0 1px rgba(225, 6, 0, 0.4);
}
.card:hover::before { opacity: 1; }

.card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: saturate(1.05) contrast(1.05);
}
.card:hover img { transform: scale(1.07); filter: saturate(1.25) contrast(1.1); }

.card-body { padding: 22px; }

.card-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.card-body h3 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}

.card-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 18px;
}

.btn-interest {
  display: block;
  width: 100%;
  padding: 13px;
  text-align: center;
  background: var(--fg);
  color: var(--inv);
  text-decoration: none;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.btn-interest:hover {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 28px rgba(225, 6, 0, 0.75);
  transform: translateY(-2px);
}

/* --- MODAL POPUP STYLES --- */
.modal-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Add this class with JavaScript to open the modal */
.modal-overlay.active { display: flex; }

.modal-content {
  background: var(--panel);
  color: var(--fg);
  padding: 34px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 20px;
  width: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(225, 6, 0, 0.25);
  animation: modalIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.close-btn {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-dim);
  background: none;
  border: none;
  transition: color 0.2s, transform 0.2s;
}

.close-btn:hover { color: var(--red-hot); transform: rotate(90deg); }

.modal-content h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 6px;
}

.modal-content p { color: var(--text-dim); margin-bottom: 18px; }

.modal-content input {
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 14px;
  background: rgba(var(--fg-rgb), 0.06);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.modal-content input::placeholder { color: rgba(var(--fg-rgb), 0.4); }

.modal-content input:focus {
  outline: none;
  border-color: var(--red-hot);
  background: rgba(var(--fg-rgb), 0.1);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.35);
}

.btn-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--red-hot), var(--red-deep));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s, filter 0.25s;
}

.btn-submit:hover {
  box-shadow: 0 0 32px rgba(225, 6, 0, 0.8);
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* --- KEYBOARD FOCUS --- */
a:focus-visible,
button:focus-visible,
.btn-interest:focus-visible,
.btn-submit:focus-visible,
.lang-btn:focus-visible,
.close-btn:focus-visible {
  outline: 3px solid var(--fg);
  outline-offset: 3px;
}

/* --- TABLET & MOBILE --- */
@media (max-width: 820px) {
  .navbar { padding: 14px 18px; }
  .navbar { flex-wrap: wrap; gap: 10px; }
  .nav-links { order: 3; width: 100%; display: flex; justify-content: center; overflow-x: auto; white-space: nowrap; }
  .nav-links a { margin: 0 9px; font-size: 14px; }
  .hero { padding: 70px 18px 50px; }
  .grid { gap: 20px; }
}

@media (max-width: 480px) {
  .logo { font-size: 18px; }
  .container { padding: 0 14px 60px; }
  .modal-content { padding: 26px 20px; }
}

/* --- RESPECT USERS WHO PREFER LESS MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================
   ADDITIONS: flag, search bar, chips, contact bar, prices
   ========================================================== */

/* --- Logo + small waving Ethiopian flag --- */
.logo { display: flex; align-items: center; gap: 8px; }

.flag {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 17px;
  border-radius: 2px;
  background: linear-gradient(180deg, #078930 0 33.3%, #fcdd09 33.3% 66.6%, #da121a 66.6% 100%);
  box-shadow: 0 0 14px rgba(var(--fg-rgb), 0.25);
  transform-origin: left center;
  animation: flagWave 1.8s ease-in-out infinite;
}
.flag::before { /* blue disc */
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 8px; height: 8px;
  transform: translate(-50%, -50%);
  background: #0f47af;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #fcdd09;
}
.flag::after { /* shine moving across the cloth */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(var(--fg-rgb), 0.55) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: flagShine 1.8s linear infinite;
}
@keyframes flagWave {
  0%, 100% { transform: perspective(60px) rotateY(0deg) skewY(0deg); }
  25%      { transform: perspective(60px) rotateY(-14deg) skewY(-4deg); }
  75%      { transform: perspective(60px) rotateY(12deg) skewY(4deg); }
}
@keyframes flagShine {
  from { background-position: 150% 0; }
  to   { background-position: -50% 0; }
}

/* --- Search bar --- */
.search-wrap { max-width: 680px; margin: 38px auto 0; animation: heroIn 1.1s 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 22px;
  background: rgba(var(--fg-rgb), 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.3s, border-color 0.3s;
}
/* rotating red-white light around the bar when focused */
.search-bar::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  z-index: -1;
  background: conic-gradient(from 0deg, var(--red-hot), transparent 25%, var(--fg) 50%, transparent 75%, var(--red-hot));
  opacity: 0;
  transition: opacity 0.3s;
  animation: spin 3s linear infinite;
}
.search-bar:focus-within { border-color: transparent; background: var(--panel-solid); box-shadow: 0 0 50px rgba(225, 6, 0, 0.5); }
.search-bar:focus-within::before { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.search-icon { flex: none; color: var(--red-hot); }

.search-bar input {
  flex: 1;
  min-width: 0;
  padding: 14px 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
}
.search-bar input::placeholder { color: rgba(var(--fg-rgb), 0.5); }

/* --- Category chips --- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

.chip {
  padding: 9px 20px;
  background: rgba(var(--fg-rgb), 0.07);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}
.chip:hover { transform: translateY(-2px); background: rgba(var(--fg-rgb), 0.16); }
.chip.active { background: var(--red); border-color: var(--red-hot); box-shadow: 0 0 24px rgba(225, 6, 0, 0.7); }

/* --- Prices & empty state --- */
.price-cny { display: block; margin-top: 2px; font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--text-dim); }

.empty-state { text-align: center; color: var(--text-dim); font-size: 18px; padding: 50px 10px; }

/* --- Modal extras --- */
.modal-product { color: var(--text-dim); margin-bottom: 20px; }

.success-msg { color: var(--fg); font-weight: 700; margin-top: 15px; text-align: center; padding: 14px; border-radius: 10px; background: rgba(225, 6, 0, 0.25); border: 1px solid var(--red); }

/* --- Contact method choice bar --- */
.method-label { margin: 4px 0 10px; font-size: 14px; color: var(--text-dim); }

.method-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }

.method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  background: rgba(var(--fg-rgb), 0.06);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.method svg { width: 26px; height: 26px; }
.method:hover { transform: translateY(-2px); background: rgba(var(--fg-rgb), 0.12); }
.method.active { background: rgba(var(--fg-rgb), 0.14); border-color: var(--fg); box-shadow: 0 0 0 2px var(--red), 0 0 24px rgba(225, 6, 0, 0.55); }

.chip:focus-visible, .method:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }

/* --- Alibaba-style extras: MOQ + car price note --- */
.moq { display: block; margin: -8px 0 12px; font-size: 13px; color: var(--text-dim); }
.price-note { display: block; margin: -6px 0 14px; padding: 8px 10px; font-size: 12px; line-height: 1.4; color: var(--fg); background: rgba(225, 6, 0, 0.18); border-left: 3px solid var(--red-hot); border-radius: 6px; }

/* --- Product description on cards --- */
.card-desc { margin: -2px 0 14px; font-size: 14px; line-height: 1.5; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* --- Photo gallery on cards (up to 5 photos) --- */
.thumbs { display: flex; gap: 6px; padding: 10px 14px 0; }
.card .thumbs img.thumb { width: 46px; height: 46px; flex: none; object-fit: cover; border-radius: 8px; border: 2px solid transparent; opacity: 0.65; cursor: pointer; transform: none; filter: none; transition: opacity .2s, border-color .2s; }
.card:hover .thumbs img.thumb { transform: none; filter: none; }
.card .thumbs img.thumb:hover { opacity: 1; }
.card .thumbs img.thumb.active { opacity: 1; border-color: var(--red-hot); }

/* ==========================================================
   v3 ADDITIONS: 3 languages, admin button, category icons,
   exchange-rate news, contact notice
   ========================================================== */
:root {
  --font-body: 'Manrope', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans Ethiopic', 'Nyala', 'Segoe UI', Tahoma, sans-serif;
  --font-display: 'Unbounded', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans Ethiopic', 'Nyala', 'Segoe UI', sans-serif;
}

/* --- right side of the navbar --- */
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; padding: 4px; border-radius: 999px; background: rgba(var(--fg-rgb), 0.08); border: 1px solid var(--line); }
.lang-opt { border: none; background: transparent; color: var(--text-dim); padding: 7px 13px; border-radius: 999px; font: 700 13px var(--font-body); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.lang-opt:hover { color: var(--fg); }
.lang-opt.active { background: var(--fg); color: var(--inv); box-shadow: 0 0 18px rgba(var(--fg-rgb), 0.35); }

.admin-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; color: #fff; text-decoration: none; font: 700 13px var(--font-body); background: linear-gradient(135deg, var(--red-hot), var(--red-deep)); animation: adminPulse 2.4s infinite; transition: filter .25s; }
.admin-btn:hover { filter: brightness(1.2); }
.admin-btn svg { transform-origin: 50% 80%; animation: lockShake 3.2s ease-in-out infinite; }
@keyframes adminPulse { 0% { box-shadow: 0 0 0 0 rgba(255,42,31,0.65); } 70% { box-shadow: 0 0 0 14px rgba(255,42,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,42,31,0); } }
@keyframes lockShake { 0%, 78%, 100% { transform: rotate(0); } 83% { transform: rotate(-16deg); } 88% { transform: rotate(14deg); } 93% { transform: rotate(-8deg); } }
@media (max-width: 560px) {
  .admin-btn span { display: none; }
  .admin-btn { padding: 10px; }
  .lang-opt { padding: 6px 9px; }
  .navbar { padding: 12px 12px; }
  .navbar .logo { font-size: 15px; }
}

/* --- animated category icons --- */
.cat-ico { display: inline-block; margin-right: 6px; animation: icoBob 2.6s ease-in-out infinite; }
.chip .cat-ico { font-size: 16px; }
.ico-cars { animation: icoDrive 2s ease-in-out infinite; }
.ico-car_accessories { animation: icoSpin 3s linear infinite; }
.ico-beauty, .ico-perfumes, .ico-construction { animation: icoWiggle 2.2s ease-in-out infinite; }
.ico-electronics { animation: icoPulse 1.6s ease-in-out infinite; }
@keyframes icoBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes icoDrive { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(4px); } }
@keyframes icoSpin { to { transform: rotate(360deg); } }
@keyframes icoWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg) scale(1.1); } 75% { transform: rotate(12deg) scale(1.1); } }
@keyframes icoPulse { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); } 50% { transform: scale(1.2); filter: drop-shadow(0 0 6px rgba(var(--fg-rgb), 0.8)); } }

/* --- exchange rate news --- */
.rates { max-width: 1200px; margin: 0 auto 44px; padding: 0 20px; }
.ticker { overflow: hidden; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--ticker-bg); }
.ticker-track { display: flex; width: max-content; animation: tickerMove 30s linear infinite; }
.ticker-track span { padding: 12px 30px; white-space: nowrap; font-weight: 700; font-size: 14px; }
.ticker-track span:nth-child(even) { color: #ff6b61; }
@keyframes tickerMove { to { transform: translateX(-50%); } }

.rates-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rates-head h2 { font-family: var(--font-display); font-size: clamp(18px, 2.6vw, 26px); }
.rates-date { margin-left: auto; font-size: 13px; color: var(--text-dim); }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red-hot); animation: liveDot 1.4s ease-out infinite; }
@keyframes liveDot { 0% { box-shadow: 0 0 0 0 rgba(255,42,31,0.8); } 100% { box-shadow: 0 0 0 14px rgba(255,42,31,0); } }
.rates-sub { margin: 6px 0 18px; color: var(--text-dim); }

.rate-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.rate-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,0.4); transition: transform .3s, box-shadow .3s; }
.rate-card:hover { transform: translateY(-5px); box-shadow: 0 16px 50px rgba(225,6,0,0.3); }
.rate-card small { color: var(--text-dim); }
.rate-big { font-family: var(--font-display); font-weight: 900; font-size: clamp(18px, 2.4vw, 24px); margin-bottom: 2px; }
.coin { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 900 22px var(--font-display); color: #fff; background: radial-gradient(circle at 30% 30%, #ff6b61, var(--red-deep)); border: 3px solid rgba(var(--fg-rgb), 0.75); box-shadow: 0 0 24px rgba(225,6,0,0.6); animation: coinSpin 4s linear infinite; }
.coin.usd { background: radial-gradient(circle at 30% 30%, #ffffff, #b5b5b5); color: #000; box-shadow: 0 0 24px rgba(var(--fg-rgb), 0.4); }
.coin.mix { font-size: 17px; background: linear-gradient(135deg, var(--red) 50%, #fff 50%); color: #000; text-shadow: 0 0 4px #fff; }
@keyframes coinSpin { to { transform: rotateY(360deg); } }

.converter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; padding: 16px 20px; border: 1px dashed rgba(var(--fg-rgb), 0.3); border-radius: var(--radius); background: rgba(var(--inv-rgb), 0.3); }
.converter input, .converter select { padding: 10px 12px; background: rgba(var(--fg-rgb), 0.08); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; font: 700 15px var(--font-body); }
.converter input { width: 120px; }
.converter select option { color: #111; }
.converter input:focus, .converter select:focus { outline: none; border-color: var(--red-hot); box-shadow: 0 0 0 3px rgba(225,6,0,0.35); }
.conv-arrow { color: var(--red-hot); font-weight: 900; }
.conv-out { font-family: var(--font-display); font-weight: 900; font-size: 20px; }

/* --- contact notice (the glowing "i") --- */
.notice { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(120deg, rgba(225,6,0,0.25), rgba(var(--fg-rgb), 0.06)); border: 1px solid rgba(255,42,31,0.5); animation: noticeGlow 2.6s ease-in-out infinite; }
.info-i { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--red); font: 900 15px Georgia, serif; }
.info-i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--fg); animation: ripple 1.8s ease-out infinite; }
.notice strong { display: block; font-size: 13px; margin-bottom: 2px; }
.notice p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-dim); }
@keyframes ripple { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.1); opacity: 0; } }
@keyframes noticeGlow { 0%, 100% { box-shadow: 0 0 0 rgba(225,6,0,0); } 50% { box-shadow: 0 0 22px rgba(225,6,0,0.45); } }

/* ==========================================================
   v4 ADDITIONS: WeChat QR card + feedback button
   ========================================================== */
.rate-extra { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
@media (min-width: 900px) { .rate-extra { grid-template-columns: 1fr 1.1fr; } }
.rate-extra .converter { margin-top: 0; align-content: center; }

.wechat-card { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(7,193,96,0.22), rgba(var(--fg-rgb), 0.05)); border: 1px solid rgba(7,193,96,0.6); animation: wcGlow 3s ease-in-out infinite; }
.qr-wrap { position: relative; flex: none; display: block; width: 128px; height: 128px; padding: 7px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 0 26px rgba(7,193,96,0.5); }
.qr-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; }
.scan-line { position: absolute; left: 0; right: 0; top: 4%; height: 3px; background: linear-gradient(90deg, transparent, #07c160, transparent); box-shadow: 0 0 12px #07c160; animation: scanMove 2.2s ease-in-out infinite; }
@keyframes scanMove { 0%, 100% { top: 4%; } 50% { top: 94%; } }
@keyframes wcGlow { 0%, 100% { box-shadow: 0 0 0 rgba(7,193,96,0); } 50% { box-shadow: 0 0 28px rgba(7,193,96,0.4); } }
.wc-title { display: flex; align-items: center; gap: 8px; font: 700 16px var(--font-display); margin-bottom: 6px; }
.wc-title svg { width: 24px; height: 24px; flex: none; }
.wc-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-dim); }
@media (max-width: 420px) { .wechat-card { flex-direction: column; text-align: center; } }

/* --- feedback --- */
.fb-fab { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border: none; border-radius: 999px; cursor: pointer; color: #fff; font: 700 14px var(--font-body); background: linear-gradient(135deg, var(--red-hot), var(--red-deep)); box-shadow: 0 10px 36px rgba(225,6,0,0.55); animation: adminPulse 2.6s infinite; transition: transform .25s; }
.fb-fab:hover { transform: translateY(-3px) scale(1.04); }
.fb-fab svg { width: 22px; height: 22px; }
.fb-fab .spark { display: inline-block; animation: icoWiggle 2.4s ease-in-out infinite; }
@media (max-width: 560px) { .fb-fab .fb-t { display: none; } .fb-fab { padding: 14px; right: 14px; bottom: 14px; } }

.fb-panel { position: fixed; right: 20px; bottom: 90px; z-index: 950; width: min(380px, calc(100vw - 28px)); max-height: calc(100vh - 110px); overflow: auto; padding: 22px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--red); box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 50px rgba(225,6,0,0.25); opacity: 0; transform: translateY(24px) scale(0.96); pointer-events: none; transition: opacity .3s, transform .3s; }
.fb-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.fb-close { position: absolute; top: 8px; right: 14px; background: none; border: none; color: var(--text-dim); font-size: 26px; cursor: pointer; transition: color .2s, transform .2s; }
.fb-close:hover { color: var(--red-hot); transform: rotate(90deg); }
.fb-panel h3 { font: 700 18px var(--font-display); margin-bottom: 4px; padding-right: 26px; }
.fb-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 12px; }
.fb-stars { display: flex; justify-content: center; gap: 4px; margin: 8px 0 2px; }
.fb-stars button { background: none; border: none; padding: 4px; cursor: pointer; }
.fb-stars svg { width: 42px; height: 42px; fill: rgba(var(--fg-rgb), 0.1); stroke: rgba(var(--fg-rgb), 0.4); stroke-width: 1.5; stroke-linejoin: round; transition: fill .2s, stroke .2s, filter .2s; }
.fb-stars button.hot svg { fill: rgba(255,200,61,0.5); stroke: #ffc83d; }
.fb-stars button.on svg { fill: #ffc83d; stroke: #ffc83d; filter: drop-shadow(0 0 10px rgba(255,200,61,0.85)); }
.fb-stars button.pop svg { animation: starPop .42s ease; }
@keyframes starPop { 0% { transform: scale(1); } 40% { transform: scale(1.5) rotate(-14deg); } 100% { transform: scale(1); } }
.fb-label { text-align: center; min-height: 26px; margin-bottom: 10px; font-weight: 700; }
.fb-panel input, .fb-panel textarea { width: 100%; padding: 12px 14px; margin-bottom: 12px; background: rgba(var(--fg-rgb), 0.06); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; font: 15px var(--font-body); transition: border-color .25s, box-shadow .25s; }
.fb-panel textarea { min-height: 90px; resize: vertical; }
.fb-panel input:focus, .fb-panel textarea:focus { outline: none; border-color: var(--red-hot); box-shadow: 0 0 0 3px rgba(225,6,0,0.35); }
.fb-panel .btn-submit:disabled { opacity: .6; cursor: wait; }
.fb-thanks { display: none; position: relative; text-align: center; padding: 18px 6px 10px; }
.fb-big { font-size: 54px; animation: coinSpin 2.4s ease-in-out infinite; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti span { position: absolute; bottom: 30%; font-size: 20px; opacity: 1; animation: floatUp 1.7s ease-out forwards; }
@keyframes floatUp { to { transform: translate(var(--dx), -190px) rotate(var(--r)); opacity: 0; } }

/* ==========================================================
   v5: THEMES (dark = red/black/white, bright = white/black/red)
   ========================================================== */
:root {
  --fg: #ffffff; --inv: #050505; --fg-rgb: 255, 255, 255; --inv-rgb: 0, 0, 0;
  --glass: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  --panel: linear-gradient(160deg, #1a1a1a, #070707);
  --panel-solid: rgba(10, 10, 10, 0.88);
  --nav-bg: rgba(5, 5, 5, 0.55);
  --ticker-bg: rgba(0, 0, 0, 0.5);
}
html[data-theme="light"] {
  --fg: #0a0a0a; --inv: #ffffff; --fg-rgb: 10, 10, 10; --inv-rgb: 255, 255, 255;
  --text-dim: rgba(10, 10, 10, 0.66); --line: rgba(10, 10, 10, 0.14);
  --glass: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(255,255,255,0.74));
  --panel: linear-gradient(160deg, #ffffff, #f0f0f0);
  --panel-solid: rgba(255, 255, 255, 0.96);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --ticker-bg: rgba(255, 255, 255, 0.75);
}
html[data-theme="light"] body {
  background:
    radial-gradient(60vmax 60vmax at 15% 20%, rgba(225, 6, 0, 0.16), transparent 60%),
    radial-gradient(50vmax 50vmax at 85% 30%, rgba(0, 0, 0, 0.06), transparent 60%),
    radial-gradient(70vmax 70vmax at 50% 110%, rgba(225, 6, 0, 0.22), transparent 60%),
    #fafafa;
  background-size: 140% 140%, 140% 140%, 140% 140%, auto;
  background-attachment: fixed;
}
html[data-theme="light"] body { animation-duration: 22s; }   /* bright mode keeps its original speed */
html[data-theme="light"] body::after { animation-duration: 9s; background-image: linear-gradient(115deg, transparent 40%, rgba(255, 42, 31, 0.22) 50%, transparent 60%), repeating-linear-gradient(0deg, rgba(var(--fg-rgb), 0.025) 0 1px, transparent 1px 4px); }
html[data-theme="light"] body::before { opacity: 0.5; }
html[data-theme="light"] .card, html[data-theme="light"] .panel, html[data-theme="light"] .rate-card,
html[data-theme="light"] .mini, html[data-theme="light"] .wechat-card { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
html[data-theme="light"] .navbar { box-shadow: 0 1px 0 rgba(225, 6, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .ticker-track span:nth-child(even) { color: var(--red); }
.chip.active, .num { color: #fff; }

/* --- vertical sun / moon switch (bottom-left) --- */
.theme-toggle { position: fixed; left: 16px; bottom: 20px; z-index: 900; width: 46px; height: 98px; padding: 0; border: none; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tt-track { position: absolute; inset: 0; border-radius: 999px; overflow: hidden; background: linear-gradient(180deg, #1b1b2f, #050505); border: 2px solid rgba(255,255,255,0.28); box-shadow: 0 8px 30px rgba(0,0,0,0.5), inset 0 0 14px rgba(225,6,0,0.4); transition: background .5s, border-color .5s, box-shadow .5s; }
.tt-stars { position: absolute; inset: 0; background-image: radial-gradient(1.6px 1.6px at 30% 18%, #fff, transparent), radial-gradient(1px 1px at 70% 32%, #fff, transparent), radial-gradient(1.6px 1.6px at 38% 50%, #fff, transparent), radial-gradient(1px 1px at 72% 62%, #fff, transparent); animation: twinkle 2.4s ease-in-out infinite; transition: opacity .5s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.tt-knob { position: absolute; left: 3px; bottom: 4px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: radial-gradient(circle at 35% 30%, #ffffff, #c9c9d6); box-shadow: 0 0 16px rgba(255,255,255,0.6); transition: bottom .55s cubic-bezier(.6,-0.3,.3,1.3), background .5s, box-shadow .5s; }
.tt-knob::after { content: '🌙'; display: inline-block; }
.theme-toggle:hover .tt-knob { transform: scale(1.06); }
html[data-theme="light"] .tt-track { background: linear-gradient(180deg, #7cc8ff, #fff2c2); border-color: rgba(0,0,0,0.22); box-shadow: 0 8px 24px rgba(0,0,0,0.18), inset 0 0 14px rgba(255,200,60,0.55); }
html[data-theme="light"] .tt-track::after { content: ''; position: absolute; left: 7px; bottom: 10px; width: 28px; height: 11px; border-radius: 11px; background: #fff; box-shadow: 9px -6px 0 -2px #fff; opacity: 0.95; }
html[data-theme="light"] .tt-stars { opacity: 0; }
html[data-theme="light"] .tt-knob { bottom: calc(100% - 40px); background: radial-gradient(circle at 35% 30%, #fff7b0, #ffb400); box-shadow: 0 0 22px rgba(255,180,0,0.95); }
html[data-theme="light"] .tt-knob::after { content: '☀️'; animation: spin 9s linear infinite; }
@media (max-width: 560px) { .theme-toggle { left: 10px; bottom: 14px; width: 40px; height: 86px; } .tt-knob { width: 32px; height: 32px; } html[data-theme="light"] .tt-knob { bottom: calc(100% - 36px); } }

/* --- picture pop-up (lightbox) --- */
.gal-main { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox.open { display: flex; animation: lbIn .25s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 80px rgba(0,0,0,0.8), 0 0 60px rgba(225,6,0,0.25); animation: lbPop .3s cubic-bezier(.2,.8,.2,1); }
@keyframes lbPop { from { transform: scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }
.lb-close, .lb-arrow { position: absolute; border: none; color: #fff; cursor: pointer; background: rgba(255,255,255,0.14); border-radius: 50%; line-height: 1; transition: background .25s, transform .25s; }
.lb-close:hover, .lb-arrow:hover { background: var(--red); }
.lb-close { top: 18px; right: 18px; width: 44px; height: 44px; font-size: 28px; }
.lb-arrow { top: 50%; width: 54px; height: 54px; margin-top: -27px; font-size: 38px; padding-bottom: 5px; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-arrow:hover { transform: scale(1.1); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,0.14); }
.lightbox.single .lb-arrow { display: none; }
@media (max-width: 560px) { .lb-arrow { width: 42px; height: 42px; font-size: 30px; margin-top: -21px; } .lb-prev { left: 6px; } .lb-next { right: 6px; } }

/* --- contact pop-up: product reference next to the form --- */
.modal-content.wide { max-width: 880px; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 28px; max-height: 92vh; overflow: auto; }
.modal-form { min-width: 0; }
.pm-card { position: relative; padding: 14px; border-radius: 16px; background: rgba(var(--fg-rgb), 0.05); border: 1px dashed rgba(225,6,0,0.6); align-self: start; }
.pm-tag { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: rgba(var(--fg-rgb), 0.1); }
.pm-img { position: relative; border-radius: 12px; overflow: hidden; background: #fff; cursor: zoom-in; }
.pm-img img { display: block; width: 100%; height: 220px; object-fit: contain; }
.pm-zoom { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,0.65); font-size: 14px; }
.pm-thumbs { display: flex; gap: 6px; margin: 8px 0 4px; }
.pm-thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; opacity: .6; cursor: pointer; }
.pm-thumb.active, .pm-thumb:hover { opacity: 1; border-color: var(--red-hot); }
.pm-card h3 { font: 700 16px var(--font-display); margin: 10px 0 6px; }
.pm-desc { font-size: 13px; line-height: 1.5; color: var(--text-dim); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pm-price { font: 900 20px var(--font-display); margin: 0; }
.pm-note { display: block; margin-top: 6px; font-size: 12px; color: var(--text-dim); }
@media (max-width: 760px) { .modal-content.wide { grid-template-columns: 1fr; gap: 16px; } .pm-img img { height: 170px; } }

/* --- WeChat card: buy Chinese yuan --- */
.wechat-card { flex-direction: column; align-items: stretch; gap: 14px; }
.wc-top { display: flex; align-items: center; gap: 18px; }
.pay-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding-top: 12px; border-top: 1px dashed rgba(var(--fg-rgb), 0.25); }
.pay-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 76px; font-size: 12px; font-weight: 700; text-align: center; }
.pay-coin { width: 46px; height: 46px; animation: coinSpin 5s linear infinite; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35)); }
.pay-opt:nth-child(3) .pay-coin { animation-delay: -1.2s; } .pay-opt:nth-child(4) .pay-coin { animation-delay: -2.4s; } .pay-opt:nth-child(5) .pay-coin { animation-delay: -3.6s; }
.pay-main { padding: 14px 18px 10px; border-radius: 16px; background: linear-gradient(160deg, rgba(225,6,0,0.35), rgba(225,6,0,0.08)); border: 2px solid var(--red-hot); box-shadow: 0 0 26px rgba(225,6,0,0.55); font-size: 14px; }
.pay-main .pay-coin { width: 66px; height: 66px; }
.pay-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 10px; border-radius: 999px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--red); animation: adminPulse 2.4s infinite; }
@media (max-width: 420px) { .wc-top { flex-direction: column; text-align: center; } .pay-row { justify-content: center; } }

/* --- nav on small screens: links in a scrolling row under the logo --- */

/* ==========================================================
   v6: Business / Education switch, New / Used badge, payment options
   ========================================================== */
.nav-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.navbar { flex-wrap: wrap; gap: 10px 16px; }

.mode-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(var(--fg-rgb), 0.08); border: 1px solid var(--line); isolation: isolate; }
.mode-switch::before { content: ''; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: linear-gradient(135deg, var(--red-hot), var(--red-deep)); box-shadow: 0 0 18px rgba(225,6,0,0.6); }
.mode-switch[data-mode="edu"]::before { animation: slideToEdu .6s .1s cubic-bezier(.6,-.2,.3,1.3) both; }
.mode-switch[data-mode="biz"]::before { animation: slideToBiz .6s .1s cubic-bezier(.6,-.2,.3,1.3) both; }
@keyframes slideToEdu { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes slideToBiz { from { transform: translateX(100%); } to { transform: translateX(0); } }
.mode-opt { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border: none; background: none; color: var(--text-dim); font: 800 13px var(--font-body); text-decoration: none; cursor: pointer; border-radius: 999px; white-space: nowrap; transition: color .3s; }
.mode-opt:hover { color: var(--fg); }
.mode-switch[data-mode="biz"] .mode-opt[data-m="biz"], .mode-switch[data-mode="edu"] .mode-opt[data-m="edu"] { color: #fff; }
.mode-opt .mi { display: inline-block; animation: icoBob 2.6s ease-in-out infinite; }
.mode-switch.big .mode-opt { padding: 12px 22px; font-size: 15px; }
@media (max-width: 560px) { .mode-opt { padding: 7px 11px; font-size: 12px; } }

.cond { display: inline-block; margin-left: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; vertical-align: middle; }
.cond-new { background: #12a150; } .cond-used { background: #d97706; }

/* --- payment options (no coins) --- */
.pay-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 12px; border-top: 1px dashed rgba(var(--fg-rgb), 0.25); }
.pay-group { position: relative; padding: 12px 14px; border-radius: 14px; background: rgba(var(--fg-rgb), 0.05); border: 1px solid var(--line); }
.pay-group.pay-etb { grid-column: 1 / -1; background: linear-gradient(160deg, rgba(225,6,0,0.32), rgba(225,6,0,0.07)); border: 2px solid var(--red-hot); box-shadow: 0 0 26px rgba(225,6,0,0.5); }
.pay-h { display: flex; align-items: center; gap: 8px; font: 700 15px var(--font-display); margin: 0 0 4px; }
.pay-h b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px; background: var(--fg); color: var(--inv); font-size: 14px; }
.pay-t { font-size: 13px; color: var(--text-dim); margin: 0 0 8px; }
.bank-row { display: flex; flex-wrap: wrap; gap: 8px; }
.bank { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 7px; font: 800 14px var(--font-body); line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,0.25); transition: transform .2s; }
.bank:hover { transform: translateY(-2px); }
.bank svg { height: 18px; width: auto; }
.bank b { font-weight: 800; }
.b-cbe { background: #5c1a7a; color: #ffd54f; }
.b-awash { background: #0b3d91; color: #ff9800; }
.b-dashen { background: #0a2a66; color: #ffd23f; }
.b-tele { background: #0d8bd9; color: #fff; } .b-tele i { font-style: normal; color: #b6ff7a; }
.b-stripe { background: #635bff; color: #fff; }
.b-mc { background: #fff; color: #222; } .b-mc b { font-size: 12px; }
.b-visa { background: #fff; color: #1a1f71; font-style: italic; font-weight: 900; letter-spacing: .02em; }
.b-coin { background: rgba(var(--fg-rgb), 0.1); color: var(--fg); }
.bank .bank-logo { height: 100%; width: auto; display: block; }
.bank.has-logo { background: #fff; padding: 0 6px; }
.bank.has-logo > :not(.bank-logo) { display: none; }
.qr-wrap { cursor: default; }
@media (max-width: 560px) { .pay-groups { grid-template-columns: 1fr; } }

/* ---------- header: language + admin always on the top right (all pages) ---------- */
.navbar .nav-right { margin-left: auto; order: 2; }
.navbar .nav-links { order: 3; }
@media (max-width: 1340px) {
  .navbar .nav-links { flex: 1 1 100%; justify-content: center; overflow-x: auto; white-space: nowrap; }
}
@media (min-width: 1341px) {
  .navbar .nav-links { order: 2; margin: 0 auto; }
  .navbar .nav-right { order: 3; margin-left: 0; }
}

/* ==========================================================
   v9: exchange-rate area, converter and WeChat card SIDE BY SIDE
   ========================================================== */
.rate-card { padding: 22px 24px; }
.rate-extra { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 22px; align-items: stretch; }
@media (min-width: 1000px) { .rate-extra { grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.6fr); } }
.rate-extra > *, .wc-top > *, .pay-groups > *, .conv-inputs > * { min-width: 0; }

/* converter card (left) */
.rate-extra .converter {
  display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 16px; margin: 0;
  padding: 28px 26px; border: 1px solid var(--line); border-radius: 22px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(225,6,0,0.28), rgba(var(--fg-rgb), 0.05) 70%);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.rate-extra .converter::before { content: '¥ $ Br'; position: absolute; right: -6px; top: 8px; font: 900 64px var(--font-display); letter-spacing: 6px; color: rgba(var(--fg-rgb), 0.05); pointer-events: none; }
.conv-left { display: grid; gap: 12px; }
.conv-left strong { font: 800 18px var(--font-display); }
.conv-inputs { display: flex; gap: 10px; }
.conv-inputs input { flex: 1; width: 100%; padding: 14px 16px; font-size: 22px; border-radius: 14px; }
.conv-inputs select { padding: 14px; font-size: 16px; border-radius: 14px; }
.rate-extra .conv-arrow { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; background: linear-gradient(135deg, var(--red-hot), var(--red-deep)); color: #fff; font-size: 22px; box-shadow: 0 0 20px rgba(225,6,0,0.6); transform: rotate(90deg); }
.conv-res { text-align: center; padding: 20px 14px; border-radius: 16px; background: rgba(var(--inv-rgb), 0.45); border: 1px dashed rgba(var(--fg-rgb), 0.3); }
.conv-out { font: 900 clamp(28px, 3.4vw, 40px) var(--font-display); color: var(--fg); text-shadow: 0 0 22px rgba(225,6,0,0.7); word-break: break-word; }

/* WeChat + payment card (right) */
.wechat-card { padding: 24px 26px; border-radius: 22px; gap: 18px; }
.wc-top { gap: 22px; }
.wc-top > div:last-child { flex: 1; }
.qr-wrap { width: 146px; height: 146px; }
.wc-title { font-size: clamp(17px, 2vw, 22px); margin-bottom: 8px; }
.wc-text { font-size: 15px; }
.pay-groups { gap: 14px; padding-top: 18px; }
.pay-group { padding: 16px 18px; border-radius: 18px; }
.pay-group.pay-etb { padding: 22px 20px 18px; }
.pay-tag { top: -12px; left: 22px; transform: none; font-size: 11px; padding: 3px 12px; }
.pay-h { font-size: 16px; margin-bottom: 6px; }
.pay-t { font-size: 14px; margin-bottom: 10px; }
.bank { height: 30px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.bank svg { height: 20px; }
@media (max-width: 700px) {
  .rate-extra .converter, .wechat-card { padding: 18px; }
  .rate-extra .conv-arrow { transform: rotate(90deg); }
  .wc-top { flex-direction: column; text-align: center; }
  .wc-title { justify-content: center; }
  .pay-groups { grid-template-columns: 1fr; }
  .wc-text, .pay-t { overflow-wrap: anywhere; }
}

/* ===== "YOU ARE HERE" marker in the nav (futuristic) ===== */
.nav-links a.current {
  color: var(--fg);
  margin: 0 3px;
  padding: 6px 14px;
  border-radius: 10px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(225,6,0,0.26), rgba(225,6,0,0.06));
  box-shadow: 0 0 0 1px rgba(255,42,31,0.55), 0 0 22px rgba(225,6,0,0.45), inset 0 0 14px rgba(255,42,31,0.18);
  overflow: hidden;
}
.nav-links a.current::before {
  content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; vertical-align: middle;
  border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 10px var(--red-hot), 0 0 0 0 rgba(255,42,31,0.7);
  animation: herePulse 1.6s ease-out infinite;
}
.nav-links a.current::after {
  transform: scaleX(1); height: 2px; left: 0; width: 100%;
  background: linear-gradient(90deg, transparent, var(--red-hot), #fff, var(--red-hot), transparent);
  background-size: 200% 100%; animation: hereSweep 2.2s linear infinite;
}
.nav-links a.current:hover::after { transform: scaleX(1); }
.nav-links a { flex: none; }
@keyframes herePulse { 0% { box-shadow: 0 0 10px var(--red-hot), 0 0 0 0 rgba(255,42,31,0.7); } 100% { box-shadow: 0 0 10px var(--red-hot), 0 0 0 10px rgba(255,42,31,0); } }
@keyframes hereSweep { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 820px) { .nav-links a.current { padding: 5px 10px; margin: 0 2px; } }

/* ===== HOME: "View posted products" button ===== */
.view-products {
  position: relative; display: flex; align-items: center; gap: 14px; margin: 26px auto 0; max-width: 560px;
  padding: 16px 22px; border-radius: 20px; text-decoration: none; color: #fff; text-align: left; overflow: hidden;
  background: linear-gradient(120deg, #ff2a1f, #a30500 55%, #ff2a1f); background-size: 220% 100%;
  box-shadow: 0 0 36px rgba(225,6,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.25);
  animation: vpShift 5s linear infinite; transition: transform .25s, box-shadow .25s;
}
.view-products:hover { transform: translateY(-3px) scale(1.015); box-shadow: 0 0 56px rgba(255,42,31,0.85), inset 0 0 0 1px rgba(255,255,255,0.4); }
.view-products::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent); transform: skewX(-20deg); animation: vpShine 3.2s ease-in-out infinite; }
.vp-orb { width: 14px; height: 14px; border-radius: 50%; background: #fff; flex: none; box-shadow: 0 0 14px #fff; animation: herePulse 1.6s ease-out infinite; }
.vp-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.vp-main b { font: 900 clamp(16px, 2.4vw, 20px) var(--font-display); letter-spacing: -0.01em; }
.vp-main small { opacity: .85; font-size: 13px; margin-top: 2px; }
.vp-count { flex: none; padding: 5px 11px; border-radius: 999px; background: rgba(0,0,0,0.35); font-weight: 800; font-size: 12px; white-space: nowrap; }
.vp-arrow { flex: none; font-size: 26px; font-weight: 900; transition: transform .25s; }
.view-products:hover .vp-arrow { transform: translateX(6px); }
@keyframes vpShift { to { background-position: -220% 0; } }
@keyframes vpShine { 0%, 55% { left: -80px; } 100% { left: 120%; } }
@media (max-width: 480px) { .view-products { padding: 14px 16px; gap: 10px; } .vp-count { display: none !important; } }

/* ===== PRODUCTS PAGE ===== */
.phero { position: relative; text-align: center; padding: 70px 20px 34px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.phero h1 { font-family: var(--font-display); font-size: clamp(34px, 7vw, 80px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 12px; animation: heroIn 1s both; }
.phero p { max-width: 58ch; margin: 0 auto; color: var(--text-dim); font-size: clamp(15px, 2vw, 19px); animation: heroIn 1s .15s both; }
.phero .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; animation: orbFloat 9s ease-in-out infinite alternate; }
.phero .o1 { width: 280px; height: 280px; left: -60px; top: -40px; background: #e10600; }
.phero .o2 { width: 240px; height: 240px; right: -40px; bottom: -60px; background: #ff7a00; animation-delay: -4s; }
@keyframes orbFloat { to { transform: translate(40px, 30px) scale(1.15); } }
.back-home { display: inline-block; margin-bottom: 18px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(var(--fg-rgb), 0.07); color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: 14px; transition: .25s; animation: heroIn .8s both; }
.back-home:hover { color: var(--fg); border-color: var(--red-hot); box-shadow: 0 0 20px rgba(225,6,0,0.5); }
.count-pill { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255,42,31,0.55); background: rgba(225,6,0,0.14); font-weight: 800; animation: heroIn 1s .3s both; }
.count-pill i { width: 9px; height: 9px; border-radius: 50%; background: #2bd96b; box-shadow: 0 0 10px #2bd96b; animation: herePulse 1.6s ease-out infinite; }
.pfilter { position: relative; z-index: 40; max-width: 760px; margin: 0 auto 8px; padding: 0 20px; animation: heroIn 1s .3s both; }
.pf-row { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
.pf-row .search-bar { flex: 1 1 320px; max-width: none; margin: 0; }
#sortSel { padding: 14px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-solid, #150505); color: var(--fg); font: 600 14px var(--font-body); cursor: pointer; }
#sortSel:focus { outline: 2px solid var(--red-hot); }
.pfilter .chips { margin-top: 18px; }
.showing { text-align: center; color: var(--text-dim); font-size: 14px; margin: 14px 0 6px; }
.pgrid .card { animation: cardIn .6s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(34px) scale(.96); } }
.card.skel { pointer-events: none; }
.sk-img { height: 220px; background: linear-gradient(100deg, rgba(var(--fg-rgb),.06) 30%, rgba(var(--fg-rgb),.16) 50%, rgba(var(--fg-rgb),.06) 70%); background-size: 300% 100%; animation: skel 1.3s linear infinite; }
.sk-l { display: block; height: 14px; margin: 12px 0; border-radius: 8px; background: linear-gradient(100deg, rgba(var(--fg-rgb),.06) 30%, rgba(var(--fg-rgb),.16) 50%, rgba(var(--fg-rgb),.06) 70%); background-size: 300% 100%; animation: skel 1.3s linear infinite; }
.sk-l.w60 { width: 60%; } .sk-l.w40 { width: 40%; }
@keyframes skel { to { background-position: -300% 0; } }
@media (max-width: 560px) { .phero { padding-top: 40px; } .pfilter { padding: 10px 12px 8px; } }
@media (prefers-reduced-motion: reduce) { .nav-links a.current::after, .nav-links a.current::before, .view-products, .view-products::after, .vp-orb, .phero .orb, .pgrid .card { animation: none !important; } }


/* ---------- header: smaller menu links so language + Admin stay on the top row ---------- */
.navbar .nav-links a { font-size: 14px; margin: 0 8px; }
.navbar .nav-links a.current { margin: 0 2px; padding: 5px 11px; }
@media (min-width: 1341px) { .navbar { padding-left: 28px; padding-right: 28px; } }
@media (max-width: 820px) { .navbar .nav-links a { margin: 0 7px; } }
