/* ===== Variables & Reset ===== */
:root {
  --lf-dark: #0a1424;
  --lf-card: #0e1a2b;
  --lf-blue: #2563eb;
  --lf-accent: #38bdf8;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --max-width: 570px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--slate-300);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }
input { font: inherit; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 16px; height: 16px; }
.icon-lg { width: 20px; height: 20px; }
.icon-xl { width: 24px; height: 24px; }
.icon-2xl { width: 28px; height: 28px; }

.glass { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

@keyframes slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up { animation: slide-up 0.5s ease-out both; }

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}
.pulse-ring { animation: pulse-ring 2s infinite; }

.hidden { display: none !important; }

/* ===== Layout ===== */
.app-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: var(--slate-300);
}

.app-container {
  width: 100%;
  max-width: var(--max-width);
  background: var(--slate-50);
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.app-container.notif-open,
.app-container.live-open { overflow: hidden; }

main { padding: 0 16px 8px; }

/* ===== Header ===== */
.header {
  background: linear-gradient(to bottom, var(--lf-dark), var(--lf-card));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  border-radius: 0 0 16px 16px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 60px;
}

.header-left { display: flex; align-items: center; gap: 12px; position: relative; }

.header-btn {
  padding: 4px;
  transition: transform 0.15s;
  color: #fff;
}
.header-btn:active { transform: scale(0.9); }

.header-right { display: flex; align-items: center; gap: 16px; }

.notif-dot {
  position: absolute;
  top: -4px; right: -4px;
  width: 8px; height: 8px;
  background: var(--lf-accent);
  border-radius: 50%;
}

.live-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 12px;
  height: 36px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(220, 38, 38, 0.08));
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4), 0 4px 12px rgba(239, 68, 68, 0.15);
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}
.live-btn:hover {
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.55), 0 6px 16px rgba(239, 68, 68, 0.22);
}
.live-btn:active { transform: scale(0.95); }
.live-btn-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: live-pulse 1.5s ease-in-out infinite;
}
.live-label {
  font-size: 13px;
  font-weight: 600;
  color: #ef4444;
  letter-spacing: 0.04em;
  line-height: 1;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
}

/* Menu dropdown */
.menu-backdrop {
  position: fixed; inset: 0; z-index: 40;
}
.menu-dropdown {
  position: absolute;
  top: 48px; left: 0;
  z-index: 50;
  width: 240px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: slide-up 0.3s ease-out;
}
.menu-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  transition: background 0.15s;
}
.menu-link:hover { background: var(--slate-50); }
.menu-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--lf-card);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--lf-accent);
}
.menu-link-title { font-size: 13px; font-weight: 700; color: var(--lf-card); }
.menu-link-sub { font-size: 11px; color: var(--slate-400); }
.menu-divider { border-top: 1px solid var(--slate-100); }
.menu-section { padding: 10px 16px; }
.menu-section-title {
  font-size: 10px; font-weight: 700;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.store-btn {
  display: flex; align-items: center; gap: 10px;
  background: #0f172a; color: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  transition: transform 0.15s;
  margin-bottom: 8px;
}
.store-btn:last-child { margin-bottom: 0; }
.store-btn:active { transform: scale(0.98); }
.store-btn small { font-size: 8px; color: var(--slate-300); display: block; line-height: 1; }
.store-btn span { font-size: 12px; font-weight: 700; line-height: 1; }

/* ===== Promo Banner ===== */
.promo-banner { padding-top: 12px; }
.promo-inner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(30,58,138,0.2);
}
.promo-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.promo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,20,36,0.95), rgba(10,20,36,0.8), rgba(10,20,36,0.4));
}
.promo-content {
  position: relative;
  padding: 16px;
  display: flex; align-items: center; gap: 12px;
}
.promo-thumb {
  width: 40px; height: 40px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
}
.promo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.promo-text { flex: 1; }
.promo-title { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.375; }
.promo-sub { font-size: 12px; color: var(--slate-300); margin-top: 2px; }
.promo-chevron { width: 20px; height: 20px; color: rgba(255,255,255,0.7); }

/* ===== Product Intro ===== */
.product-intro { padding-top: 20px; }
.intro-top {
  display: flex; align-items: center; gap: 12px;
}
.intro-line {
  flex: 1;
  height: 1px;
  background: var(--slate-300);
}
.intro-actions {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.intro-top .live-btn,
.intro-actions .fav-btn,
.intro-actions .donate-btn {
  height: 36px;
  padding-block: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

.donate-btn {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(to right, var(--lf-blue), var(--lf-accent));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0 16px 0 8px;
  box-shadow: 0 4px 6px -1px rgba(147,197,253,0.6);
  transition: all 0.15s;
  letter-spacing: 0.025em;
}
.donate-btn:active { transform: scale(0.95); }
.donate-btn-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}

.intro-body {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 8px;
}
.intro-text { flex: 1; }
.intro-h1 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--lf-card);
}
.intro-badges {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px;
}
.badge {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}
.badge-green { color: #059669; background: #ecfdf5; box-shadow: 0 0 0 1px #d1fae5; }
.badge-amber { color: #d97706; background: #fffbeb; box-shadow: 0 0 0 1px #fef3c7; }
.intro-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--slate-500);
  margin-top: 12px;
}
.intro-desc a { color: var(--lf-blue); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(37,99,235,0.3); }

.intro-image-wrap { flex-shrink: 0; display: none; }
.intro-image {
  width: 120px; height: 120px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.2), 0 20px 25px -5px rgba(30,58,138,0.15);
}
.intro-image img { width: 100%; height: 100%; object-fit: cover; }
.intro-image-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}
.intro-season {
  position: absolute; bottom: 8px; left: 8px;
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
}

/* ===== Fav Bar ===== */
.fav-bar {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; flex-wrap: wrap;
}
.fav-btn {
  display: flex; align-items: center; gap: 8px;
  border-radius: 9999px;
  padding: 0 12px 0 16px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(251,113,133,0.4);
  background: linear-gradient(to right, #f43f5e, #ec4899);
  color: #fff;
  transition: all 0.15s;
}
.fav-btn:active { transform: scale(0.95); }
.fav-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.4); }
.fav-chip {
  display: flex; align-items: center; gap: 6px;
  color: var(--slate-500);
  font-size: 13px; font-weight: 500;
  border-radius: 9999px;
  border: 1px solid var(--slate-300);
  padding: 6px 12px;
}

/* ===== Category Filter ===== */
.cat-filter {
  display: flex; gap: 4px;
  margin-top: 20px;
  padding: 4px;
  background: var(--slate-100);
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--slate-200);
  overflow-x: auto;
}
.cat-filter-item {
  flex: 1;
  min-width: 68px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 10px;
  font-size: 10px; font-weight: 600;
  color: var(--slate-500);
  background: transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.cat-filter-item:hover:not(.active) { color: var(--slate-600); background: rgba(255,255,255,0.45); }
.cat-filter-item:active { transform: scale(0.97); }
.cat-filter-item.active {
  background: #fff;
  color: var(--lf-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 0 0 1px rgba(255,255,255,0.8);
}
.cat-filter-emoji { font-size: 16px; line-height: 1; }
.cat-filter-label { line-height: 1.2; }

.cat-btn {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px; font-weight: 600;
  transition: all 0.15s;
  white-space: nowrap;
}
.cat-btn:active { transform: scale(0.95); }
.cat-btn.active {
  background: var(--lf-card);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.cat-btn:not(.active) {
  background: #fff;
  color: var(--slate-600);
  box-shadow: 0 0 0 1px var(--slate-200);
}
.cat-btn:not(.active):hover { box-shadow: 0 0 0 1px var(--slate-300); }

/* ===== Section Title ===== */
.section-title {
  display: flex; align-items: center; gap: 8px;
  margin-top: 28px; margin-bottom: 12px;
}
.section-bar {
  width: 4px; height: 20px;
  border-radius: 9999px;
  background: linear-gradient(to bottom, var(--lf-blue), var(--lf-accent));
}
.section-title h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.025em;
  color: var(--lf-card);
}
.section-count {
  font-size: 11px; font-weight: 700;
  color: var(--lf-blue);
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 9999px;
}
.section-chevron { width: 16px; height: 16px; color: var(--lf-blue); margin-left: auto; }

.news-pagination {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
}
.page-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  color: var(--lf-blue);
  box-shadow: 0 0 0 1px var(--slate-200);
  transition: all 0.15s;
}
.page-btn:hover:not(:disabled) { background: #eff6ff; box-shadow: 0 0 0 1px #bfdbfe; }
.page-btn:active:not(:disabled) { transform: scale(0.9); }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.page-btn-icon { display: flex; align-items: center; justify-content: center; }
.page-btn-icon .icon { width: 14px; height: 14px; }
.page-btn-icon-prev .icon { transform: rotate(180deg); }
.page-num {
  min-width: 20px;
  text-align: center;
  font-size: 13px; font-weight: 700;
  color: var(--lf-card);
}

/* ===== Trust Bar ===== */
.trust-bar {
  display: flex; align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 12px 8px;
  margin-top: 16px;
  box-shadow: 0 0 0 1px var(--slate-100), 0 1px 2px rgba(0,0,0,0.05);
}
.trust-item {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 0 8px;
  font-size: 12px; font-weight: 600;
  color: var(--slate-600);
  text-align: center;
}
.trust-item .icon { color: var(--lf-blue); flex-shrink: 0; }
.trust-sep { color: var(--slate-200); user-select: none; flex-shrink: 0; }

/* ===== Product Cards ===== */
.products-list { display: flex; flex-direction: column; gap: 12px; }

.product-card {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 0 0 1px var(--slate-100), 0 2px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.2s;
}
.product-card:hover {
  box-shadow: 0 0 0 1px rgba(37,99,235,0.2), 0 6px 20px rgba(37,99,235,0.12);
}

.product-badge {
  position: absolute; top: 0; left: 0;
  color: #fff;
  font-size: 9px; font-weight: 800;
  padding: 2px 8px;
  border-radius: 0 0 8px 0;
  z-index: 10;
  display: flex; align-items: center; gap: 2px;
}
.badge-hit { background: linear-gradient(to right, #f59e0b, #f97316); }
.badge-top { background: linear-gradient(to right, #10b981, #14b8a6); }

.product-img-wrap {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--slate-200);
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.product-card:hover .product-img-wrap img { transform: scale(1.1); }

.fav-heart-btn {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.fav-heart-btn:active { transform: scale(0.9); }
.fav-heart-btn .icon { width: 12px; height: 12px; color: #fff; }
.fav-heart-btn.active .icon { color: #fb7185; }

.product-info { flex: 1; min-width: 0; }
.product-title {
  font-size: 14px; font-weight: 700;
  color: var(--lf-card);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 4px;
}
.product-title .icon { color: #f59e0b; width: 14px; height: 14px; }
.product-note {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--slate-400);
  margin-top: 4px;
}
.product-discount {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px; font-weight: 700;
  color: #e11d48;
  background: #fff1f2;
  padding: 2px 6px;
  border-radius: 4px;
}

.product-price-wrap { text-align: right; flex-shrink: 0; }
.product-old-price {
  font-size: 11px; color: var(--slate-400);
  text-decoration: line-through; line-height: 1;
}
.product-price {
  font-size: 16px; font-weight: 800;
  color: var(--lf-card);
  margin-top: 2px;
}

.buy-btn {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(to bottom right, var(--lf-blue), #3b82f6);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(147,197,253,1);
  transition: all 0.15s;
}
.buy-btn:active { transform: scale(0.9); }
.buy-btn .icon { width: 20px; height: 20px; }

/* ===== Not Found ===== */
.notfound-title { margin-top: 32px; margin-bottom: 16px; }
.notfound-title h2 { font-size: 16px; }

.notfound-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(to bottom right, var(--lf-card), #16243b);
  padding: 16px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.notfound-glow {
  position: absolute; right: -24px; top: -24px;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(37,99,235,0.2);
  filter: blur(32px);
}
.notfound-card h3 {
  position: relative;
  font-size: 14px; font-weight: 700; color: #fff;
}
.notfound-note {
  position: relative;
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--slate-400);
  margin-top: 4px;
}
.notfound-actions {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px;
}
.btn-glass {
  flex: 1;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 12px;
  padding: 10px;
  font-size: 13px; font-weight: 600;
  transition: background 0.15s;
}
.btn-glass:active { transform: scale(0.95); }
.btn-glass:hover { background: rgba(255,255,255,0.2); }
.btn-primary {
  background: linear-gradient(to bottom right, var(--lf-blue), #3b82f6);
  color: #fff;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 6px -1px rgba(30,58,138,0.4);
  display: flex; align-items: center; gap: 8px;
  transition: transform 0.15s;
}
.btn-primary:active { transform: scale(0.95); }

/* ===== Reviews ===== */
.reviews-summary {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 0 0 1px var(--slate-100), 0 1px 2px rgba(0,0,0,0.05);
}
.reviews-avg { text-align: center; padding: 0 8px; }
.reviews-avg-num {
  font-size: 28px; font-weight: 800;
  color: var(--lf-card); line-height: 1;
}
.reviews-stars {
  display: flex; gap: 2px;
  margin-top: 4px; justify-content: center;
}
.reviews-stars .icon { width: 12px; height: 12px; color: #fbbf24; }
.reviews-divider { width: 1px; height: 48px; background: var(--slate-100); }
.reviews-btns { display: flex; gap: 8px; flex: 1; }
.reviews-btns button {
  flex: 1;
  border-radius: 12px;
  padding: 10px;
  font-size: 12px; font-weight: 700;
  transition: transform 0.15s;
}
.reviews-btns button:active { transform: scale(0.95); }
.btn-blue { background: var(--lf-blue); color: #fff; }
.btn-gray { background: var(--slate-100); color: var(--slate-700); }

.reviews-scroll {
  display: flex; gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin: 0 -16px;
  padding-left: 16px; padding-right: 16px;
  scroll-snap-type: x mandatory;
}
.review-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 280px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 0 0 1px var(--slate-100), 0 1px 2px rgba(0,0,0,0.05);
}
.review-header {
  display: flex; align-items: center; justify-content: space-between;
}
.review-user { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, var(--lf-blue), var(--lf-accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
}
.review-name { font-size: 14px; font-weight: 700; color: var(--lf-card); line-height: 1; display: block; }
.review-verified {
  font-size: 10px; color: #10b981; font-weight: 600;
  display: flex; align-items: center; gap: 2px; margin-top: 4px;
}
.review-verified .icon { width: 10px; height: 10px; }
.review-rating {
  display: flex; align-items: center; gap: 6px;
}
.review-rating .icon-up { width: 16px; height: 16px; color: #10b981; }
.review-rating .icon-down { width: 16px; height: 16px; color: var(--slate-300); }
.review-rating-num { font-size: 14px; font-weight: 700; color: var(--slate-600); }
.review-text {
  font-size: 13px; color: var(--slate-600);
  margin-top: 12px; line-height: 1.375;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 58px;
}
.review-date { font-size: 12px; color: var(--slate-400); margin-top: 8px; }

/* ===== News ===== */
.news-featured {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.15s;
}
.news-featured:hover { box-shadow: 0 12px 20px -4px rgba(37,99,235,0.15); }
.news-featured:active { transform: scale(0.99); }
.news-featured img { width: 100%; height: 176px; object-fit: cover; }
.news-featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--lf-dark), rgba(10,20,36,0.5), transparent);
}
.news-featured-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px;
}
.news-main-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; color: #fff;
  background: var(--lf-blue);
  padding: 2px 8px; border-radius: 6px;
  margin-bottom: 8px;
}
.news-main-tag .icon { width: 12px; height: 12px; }
.news-featured h3 {
  font-size: 18px; font-weight: 800; color: #fff;
  line-height: 1.25;
}
.news-featured p {
  font-size: 12px; color: var(--slate-300);
  margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-featured-date { font-size: 11px; color: var(--slate-400); margin-top: 8px; }

.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  display: flex; gap: 12px;
  width: 100%;
  text-align: left;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 0 0 1px var(--slate-100), 0 1px 2px rgba(0,0,0,0.05);
  transition: transform 0.15s;
  cursor: pointer;
}
.news-item:hover { box-shadow: 0 0 0 1px #bfdbfe, 0 4px 12px rgba(37,99,235,0.08); }
.news-item:active { transform: scale(0.99); }
.news-thumb {
  width: 80px; height: 80px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--slate-200);
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item-body { flex: 1; min-width: 0; }
.news-tags { display: flex; align-items: center; gap: 6px; }
.news-tag {
  font-size: 10px; font-weight: 700;
  color: var(--lf-blue);
  background: #eff6ff;
  padding: 2px 8px; border-radius: 4px;
}
.news-tag-hot {
  font-size: 10px; font-weight: 700;
  color: #e11d48;
  background: #fff1f2;
  padding: 2px 8px; border-radius: 4px;
  display: flex; align-items: center; gap: 2px;
}
.news-tag-hot .icon { width: 10px; height: 10px; }
.news-item h4 {
  font-size: 14px; font-weight: 700;
  color: var(--lf-card);
  margin-top: 6px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item-date { font-size: 11px; color: var(--slate-400); margin-top: 6px; }

.news-detail img { width: 100%; height: 224px; object-fit: cover; }
.news-detail-body { background: #fff; padding: 16px; }
.news-detail-body h3 {
  font-size: 18px; font-weight: 800;
  color: var(--lf-card);
  line-height: 1.25;
  margin-top: 10px;
}
.news-detail-date { font-size: 11px; color: var(--slate-400); margin-top: 8px; }
.news-detail-desc {
  font-size: 13px; line-height: 1.6;
  color: var(--slate-600);
  margin-top: 12px;
}

/* ===== Heroes Grid ===== */
.hero-filters {
  display: flex; gap: 8px;
  overflow-x: auto;
  margin: 0 -16px; padding: 0 16px 8px;
}
.filter-btn {
  flex-shrink: 0;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px; font-weight: 600;
}
.filter-btn.active { background: var(--lf-card); color: #fff; }
.filter-btn:not(.active) {
  background: #fff; color: var(--slate-600);
  box-shadow: 0 0 0 1px var(--slate-200);
}

.heroes-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}
.hero-slot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 2px solid;
  overflow: hidden;
  transition: transform 0.15s;
  cursor: pointer;
  padding: 0;
}
.hero-slot:active { transform: scale(0.95); }
.hero-slot img { width: 100%; height: 100%; object-fit: cover; }
.hero-slot-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px;
}
.hero-slot-empty {
  aspect-ratio: 1;
  border-radius: 8px;
  background: linear-gradient(to bottom right, var(--slate-200), var(--slate-300));
  box-shadow: 0 0 0 1px rgba(203,213,225,0.6);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-400);
}
.hero-slot-empty .icon { width: 14px; height: 14px; opacity: 0.4; }
.hero-slot-wrap { position: relative; }

.entity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.entity-slot-wrap { position: relative; }
.entity-slot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  border: 2px solid;
  overflow: hidden;
  transition: transform 0.15s;
  cursor: pointer;
  padding: 0;
}
.entity-slot:active { transform: scale(0.97); }
.entity-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.entity-slot-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 20, 36, 0.92), rgba(10, 20, 36, 0.15) 55%, transparent);
  pointer-events: none;
}
.entity-slot-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 3px 8px;
  border-radius: 9999px;
  pointer-events: none;
}
.entity-slot-name {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-align: left;
  pointer-events: none;
}

.heroes-hint {
  text-align: center;
  font-size: 12px; color: var(--slate-400);
  margin-top: 16px;
}

/* ===== Items ===== */
.item-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  box-shadow: 0 0 0 1px var(--slate-200), 0 1px 2px rgba(0,0,0,0.04);
}
.item-search-icon {
  display: flex;
  color: var(--slate-400);
  flex-shrink: 0;
}
.item-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--lf-card);
}
.item-search-input::placeholder { color: var(--slate-400); }
.item-search-clear {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: var(--slate-100);
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.items-result-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-400);
  margin-bottom: 8px;
}
.items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.item-card {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 0 0 1px var(--slate-100), 0 1px 2px rgba(0,0,0,0.05);
  transition: transform 0.15s;
  cursor: pointer;
}
.item-card:active { transform: scale(0.99); }
.item-card-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-card-emoji {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 14px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}
.item-card-info { flex: 1; min-width: 0; }
.item-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--lf-card);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-card-meta {
  font-size: 11px;
  color: var(--slate-400);
  margin-top: 2px;
}
.item-card-set {
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.item-detail-banner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(30,58,138,0.2);
  margin-top: 12px;
}
.item-detail-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-detail-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,20,36,0.95), rgba(10,20,36,0.8), rgba(10,20,36,0.4));
}
.item-detail-banner-inner {
  position: relative;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.item-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
}
.item-detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-detail-head { flex: 1; min-width: 0; }
.item-detail-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}
.item-detail-en {
  font-size: 12px;
  color: var(--slate-300);
  margin-top: 2px;
}
.item-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.item-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}
.item-stats-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.item-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--slate-50);
  border-radius: 8px;
}
.item-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-500);
}
.item-stat-value {
  font-size: 13px;
  font-weight: 800;
}
.item-craft-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.item-craft-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-600);
  background: var(--slate-50);
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--slate-100);
}

/* ===== Lineups ===== */
.lineup-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 0 0 1px var(--slate-100), 0 1px 2px rgba(0,0,0,0.05);
}
.lineup-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.lineup-name { font-size: 14px; font-weight: 800; color: var(--lf-card); }
.lineup-meta { font-size: 11px; color: var(--slate-400); font-weight: 500; }
.lineup-power {
  display: flex; align-items: center; gap: 6px;
  background: #fffbeb;
  border-radius: 9999px;
  padding: 4px 10px;
}
.lineup-power .icon { width: 14px; height: 14px; color: #f59e0b; }
.lineup-power span { font-size: 12px; font-weight: 800; color: #d97706; }

.lineup-heroes {
  display: flex; gap: 6px;
  margin-bottom: 12px;
}
.info-card .lineup-heroes { margin-bottom: 0; }
.lineup-hero {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.lineup-hero-img {
  width: 100%; aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid;
}
.lineup-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.lineup-hero-name {
  font-size: 8px; font-weight: 600;
  color: var(--slate-500);
  text-align: center; line-height: 1.25;
  width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.power-bar-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; font-weight: 600; color: var(--slate-400);
  margin-bottom: 4px;
}
.power-bar-label span:last-child { color: var(--lf-card); }
.power-bar {
  height: 8px;
  background: var(--slate-100);
  border-radius: 9999px;
  overflow: hidden;
}
.power-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--lf-blue), var(--lf-accent), #34d399);
}


/* ===== Hero Detail ===== */
.back-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--slate-500);
  margin-top: 20px; margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid var(--slate-300);
  background: transparent;
  width: fit-content;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.back-btn:hover { background: var(--slate-50); border-color: var(--slate-400); }
.back-btn:active { transform: scale(0.95); }
.back-btn .icon,
.icon-back {
  width: 16px; height: 16px;
  color: var(--slate-400);
  transform: rotate(180deg);
}
.header-back .icon { width: 28px; height: 28px; transform: rotate(180deg); }

.hero-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  height: 176px;
}
.hero-banner > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  z-index: 0;
}
.hero-banner-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(to top, var(--lf-dark), rgba(10,20,36,0.7), transparent);
}
.hero-banner-color {
  position: absolute; inset: 0;
  z-index: 1;
  opacity: 0.4;
  mix-blend-mode: overlay;
}
.hero-banner-glow {
  position: absolute; right: -40px; top: -40px;
  z-index: 1;
  width: 160px; height: 160px;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.4;
}
.hero-rarity-badge {
  position: absolute; top: 12px; right: 12px;
  z-index: 2;
  font-size: 10px; font-weight: 800;
  color: #fff;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  backdrop-filter: blur(4px);
}
.hero-banner-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 16px;
  display: flex; align-items: flex-end; gap: 12px;
}
.hero-banner-info {
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
}
.hero-banner-thumb {
  width: 64px; height: 64px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.hero-banner-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-banner-name {
  font-size: 24px; font-weight: 800;
  color: #fff; line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hero-tags { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.hero-tag {
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 9999px;
}

.info-card {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  margin-top: 12px;
  box-shadow: 0 0 0 1px var(--slate-100), 0 1px 2px rgba(0,0,0,0.05);
}
.info-card-lg { padding: 16px; }
.info-card-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.info-card-header .icon { color: var(--lf-blue); width: 16px; height: 16px; }
.info-card-header .icon-star { color: #fbbf24; }
.info-card-title { font-size: 13px; font-weight: 700; color: var(--lf-card); }
.info-card-sub { font-size: 11px; color: var(--slate-400); margin-bottom: 12px; }

.faction-row { display: flex; align-items: center; gap: 12px; }
.faction-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--lf-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.faction-label { font-size: 11px; color: var(--slate-400); font-weight: 600; text-transform: uppercase; }
.faction-name { font-size: 15px; font-weight: 700; color: var(--lf-card); }

.hero-desc { font-size: 13px; line-height: 1.6; color: var(--slate-600); }

.gear-season-picker { position: relative; }
.gear-season-trigger {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700;
  color: var(--lf-blue);
  background: #eff6ff;
  padding: 4px 8px 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 0 0 1px #dbeafe;
  transition: all 0.15s;
}
.gear-season-trigger:active { transform: scale(0.95); }
.gear-season-chevron { display: flex; align-items: center; }
.gear-season-chevron .icon {
  width: 12px; height: 12px;
  transform: rotate(90deg);
  transition: transform 0.15s;
}
.gear-season-picker.open .gear-season-chevron .icon { transform: rotate(-90deg); }
.gear-season-backdrop { position: fixed; inset: 0; z-index: 10; }
.gear-season-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 11;
  min-width: 92px;
  background: #fff;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15), 0 0 0 1px var(--slate-100);
  max-height: 220px;
  overflow-y: auto;
}
.gear-season-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  color: var(--slate-600);
  transition: background 0.15s;
}
.gear-season-option:hover { background: var(--slate-50); }
.gear-season-option.active {
  background: #eff6ff;
  color: var(--lf-blue);
  font-weight: 700;
}

.gear-factory-bar {
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 12px;
  margin-bottom: 12px;
  box-shadow: 0 0 0 1px var(--slate-100), 0 1px 2px rgba(0,0,0,0.05);
}
.gear-factory-title {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.gear-factory-title span:first-child {
  font-size: 13px; font-weight: 700;
  color: var(--lf-card);
  white-space: nowrap;
}
.gear-factory-line {
  flex: 1;
  height: 1px;
  background: var(--slate-200);
}
.gear-factory-controls {
  display: flex; align-items: center; gap: 8px;
}
.gear-set-picker,
.gear-season-picker { position: relative; }
.gear-set-picker { flex: 1; min-width: 0; }
.gear-factory-bar .gear-set-picker .gear-season-trigger {
  width: 100%;
  justify-content: space-between;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lf-card);
  background: var(--slate-50);
  box-shadow: 0 0 0 1px var(--slate-200);
}
.gear-factory-bar .gear-set-picker .gear-season-chevron .icon { color: var(--slate-400); }
.gear-factory-bar .gear-set-picker.open .gear-season-chevron .icon { transform: rotate(-90deg); }
.gear-set-picker .gear-season-menu {
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
}
.gear-set-option-stat {
  font-size: 10px; font-weight: 600;
  color: var(--slate-400);
}
.gear-season-option.active .gear-set-option-stat { color: rgba(37,99,235,0.7); }

.stats-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.power-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--lf-card);
  border-radius: 9999px;
  padding: 4px 10px;
}
.power-pill-label { font-size: 10px; font-weight: 600; color: var(--slate-300); }
.power-pill-value { font-size: 12px; font-weight: 800; color: var(--lf-accent); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-ring {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.stat-ring-inner {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.stat-value { font-size: 12px; font-weight: 800; color: var(--lf-card); }
.stat-label { font-size: 10px; font-weight: 700; color: var(--slate-500); margin-top: 6px; }

/* ===== Wiki ===== */
.wiki-header {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(30,58,138,0.2);
  margin-bottom: 12px;
}
.wiki-header-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.wiki-header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,20,36,0.95), rgba(10,20,36,0.8), rgba(10,20,36,0.4));
}
.wiki-header-inner {
  position: relative;
  padding: 16px;
  display: flex; align-items: center; gap: 12px;
}
.wiki-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--lf-accent);
}
.wiki-icon-wrap .icon { width: 24px; height: 24px; }
.wiki-header h3 { font-size: 16px; font-weight: 800; color: #fff; }
.wiki-header p { font-size: 12px; color: var(--slate-300); }

.seasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.season-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--slate-200), 0 1px 2px rgba(0,0,0,0.05);
  text-align: left;
  transition: transform 0.15s;
  cursor: pointer;
  padding: 0;
}
.season-card:active { transform: scale(0.97); }
.season-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.season-card:hover img { transform: scale(1.1); }
.season-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--lf-dark), rgba(10,20,36,0.4), transparent);
}
.season-status {
  position: absolute; top: 8px; right: 8px;
  font-size: 8px; font-weight: 700;
  color: #fff;
  padding: 2px 6px;
  border-radius: 9999px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.status-active { background: #10b981; }
.status-soon { background: #f59e0b; }
.season-card-body {
  position: relative;
  padding: 12px;
  height: 112px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.season-num { font-size: 26px; font-weight: 800; color: rgba(255,255,255,0.9); line-height: 1; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.season-title { font-size: 13px; font-weight: 800; color: #fff; line-height: 1; }
.season-gear { font-size: 9px; color: var(--slate-300); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.detail-card { border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--slate-200), 0 1px 2px rgba(0,0,0,0.05); }
.detail-banner { position: relative; }
.detail-banner img { width: 100%; height: 176px; object-fit: cover; }
.detail-banner-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--lf-dark), transparent); }
.detail-banner-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; }
.detail-banner-content h3 { font-size: 20px; font-weight: 800; color: #fff; }
.detail-body { background: #fff; padding: 16px; }
.detail-body p { font-size: 13px; line-height: 1.6; color: var(--slate-600); }

.gear-set-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 0 0 1px var(--slate-100), 0 1px 2px rgba(0,0,0,0.05);
  transition: transform 0.15s;
}
.gear-set-card:active { transform: scale(0.99); }
.gear-set-header { display: flex; align-items: center; gap: 10px; }
.gear-set-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.gear-set-info { flex: 1; min-width: 0; }
.gear-set-name { font-size: 14px; font-weight: 700; color: var(--lf-card); line-height: 1; }
.gear-set-en { font-size: 11px; font-weight: 400; color: var(--slate-400); }
.gear-set-season { font-size: 10px; color: var(--slate-400); margin-top: 4px; }
.gear-set-badge {
  font-size: 10px; font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.gear-materials {
  display: flex; gap: 6px;
  margin-top: 10px;
}
.gear-material {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.gear-bonus { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.gear-bonus-item {
  display: flex; align-items: flex-start; gap: 8px;
  border-radius: 8px;
  padding: 6px 10px;
}
.gear-bonus-item.gray { background: var(--slate-50); }
.gear-bonus-item.blue { background: #eff6ff; }
.gear-bonus-num {
  font-size: 9px; font-weight: 800;
  color: #fff;
  border-radius: 4px;
  padding: 2px 4px;
  flex-shrink: 0;
  margin-top: 2px;
}
.gear-bonus-num.gray { background: var(--slate-400); }
.gear-bonus-num.blue { background: var(--lf-blue); }
.gear-bonus-text { font-size: 12px; color: var(--slate-600); line-height: 1.375; }
.gear-bonus-text.bold { color: var(--lf-card); font-weight: 500; }

.gear-rec-card { margin-top: 0; }
.gear-rec-body {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.gear-rec-slots { margin-top: 0; flex-shrink: 0; }
.gear-rec-slot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.gear-rec-slot {
  position: relative;
  overflow: hidden;
}
.gear-rec-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.gear-rec-slot-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}
.gear-strength-graph {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
}
.gear-strength-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  line-height: 1;
}
.gear-strength-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gear-strength-val {
  font-size: 12px;
  font-weight: 800;
}
.gear-strength-svg {
  display: block;
  width: 100%;
  height: 40px;
}
.gear-chart-grid {
  stroke: var(--slate-200);
  stroke-width: 0.5;
  stroke-dasharray: 3 3;
  opacity: 0.7;
}
.gear-chart-area {
  opacity: 0;
  animation: gear-chart-area-in 0.5s ease 0.6s forwards;
}
.gear-chart-segment {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: gear-chart-segment-draw 0.35s ease forwards;
}
.gear-chart-last {
  opacity: 0;
  animation: gear-chart-last-in 0.3s ease 1s forwards;
}
.gear-chart-last-pulse {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: gear-chart-pulse 1.6s ease 1.1s infinite;
}
@keyframes gear-chart-segment-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes gear-chart-area-in {
  to { opacity: 1; }
}
@keyframes gear-chart-last-in {
  to { opacity: 1; }
}
@keyframes gear-chart-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(2.2); }
}

.event-card {
  width: 100%;
  text-align: left;
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 0 0 1px var(--slate-100), 0 1px 2px rgba(0,0,0,0.05);
  transition: transform 0.15s;
  cursor: pointer;
}
.event-card:active { transform: scale(0.99); }
.event-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.event-info { flex: 1; min-width: 0; }
.event-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.event-name { font-size: 14px; font-weight: 700; color: var(--lf-card); }
.event-type {
  font-size: 9px; font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.event-desc { font-size: 12px; color: var(--slate-500); margin-top: 4px; line-height: 1.375; }
.event-chevron { width: 16px; height: 16px; color: var(--slate-300); flex-shrink: 0; margin-top: 4px; }

.wiki-text-card { margin-top: 0; }
.wiki-text { font-size: 13px; line-height: 1.6; color: var(--slate-600); }
.wiki-bullets { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.wiki-bullet {
  display: flex; align-items: flex-start; gap: 8px;
}
.wiki-bullet-icon {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: #eff6ff;
  color: var(--lf-blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.wiki-bullet-icon .icon { width: 12px; height: 12px; }
.wiki-bullet p { font-size: 13px; color: var(--slate-700); line-height: 1.375; }
.wiki-source {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--slate-100);
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--slate-400);
}
.wiki-source .icon { width: 14px; height: 14px; }

.empty-state {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 0 1px var(--slate-100), 0 1px 2px rgba(0,0,0,0.05);
}
.empty-state p { font-size: 13px; color: var(--slate-400); }

/* ===== Media Panel ===== */
.media-toggle {
  display: flex; gap: 6px;
  background: var(--slate-100);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 12px;
}
.media-toggle-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 8px;
  padding: 8px;
  font-size: 12px; font-weight: 700;
  transition: all 0.15s;
  color: var(--slate-500);
}
.media-toggle-btn.active {
  background: #fff;
  color: var(--lf-blue);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.media-toggle-btn .icon { width: 16px; height: 16px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--slate-200);
  transition: transform 0.15s;
  cursor: pointer;
  padding: 0;
}
.gallery-item:active { transform: scale(0.95); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-label {
  position: absolute; bottom: 6px; left: 6px;
  font-size: 10px; font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  padding: 2px 6px;
  border-radius: 4px;
}

.gallery-detail img { width: 100%; height: 224px; object-fit: cover; }
.gallery-detail-body { background: #fff; padding: 16px; }
.gallery-detail-body h4 { font-size: 12px; font-weight: 700; color: var(--lf-card); margin-bottom: 4px; }
.gallery-detail-body p { font-size: 13px; line-height: 1.6; color: var(--slate-600); }

.video-item {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--slate-200);
}
.video-item img { width: 100%; height: 100%; object-fit: cover; }
.video-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
}
.video-play {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transition: transform 0.15s;
}
.video-play:active { transform: scale(0.9); }
.video-play .icon { width: 24px; height: 24px; color: var(--lf-card); margin-left: 2px; }
.video-label {
  position: absolute; bottom: 8px; left: 8px;
  font-size: 11px; font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  padding: 2px 8px;
  border-radius: 4px;
}
.videos-list { display: flex; flex-direction: column; gap: 8px; }

/* ===== Footer ===== */
.footer {
  background: var(--lf-card);
  color: #fff;
  padding: 24px 20px;
  margin-top: 16px;
  border-radius: 16px 16px 0 0;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.footer-brand span { font-size: 14px; font-weight: 700; letter-spacing: 0.025em; }
.footer-socials {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
  color: var(--slate-300);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.social-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.social-btn:active { transform: scale(0.9); }
.social-btn .icon { width: 16px; height: 16px; }
.footer-links {
  display: flex; gap: 20px;
  font-size: 12px; color: var(--slate-400);
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
}
.footer-copy p { font-size: 11px; color: var(--slate-500); }

/* ===== Overlays: Live Stream ===== */
.live-root {
  position: absolute;
  inset: 0;
  z-index: 52;
  overflow: hidden;
  pointer-events: none;
}
.live-root.is-open { pointer-events: auto; }
.live-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s;
}
.live-root.is-open .live-backdrop { opacity: 1; }

.live-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(180deg, #0a1424 0%, #0e1a2b 38%, #0c1524 100%);
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
}
.live-root.is-open .live-panel { transform: translateY(0); }

.live-topbar {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 8px;
  flex-shrink: 0;
}
.live-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.15s, transform 0.15s;
}
.live-close-btn .icon { transform: rotate(90deg); opacity: 0.9; }
.live-close-btn:active { transform: scale(0.92); background: rgba(255, 255, 255, 0.14); }
.live-topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fecaca;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.45), rgba(185, 28, 28, 0.35));
  border: 1px solid rgba(252, 165, 165, 0.35);
  padding: 4px 9px;
  border-radius: 9999px;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
}
.live-pill .live-dot { width: 6px; height: 6px; }
.live-topbar-title {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-topbar-spacer {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.live-user-chip {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.5);
  transition: transform 0.15s;
}
.live-user-chip img { width: 100%; height: 100%; object-fit: cover; }
.live-user-chip:active { transform: scale(0.92); }

.live-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  border-radius: 0;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.live-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.live-player-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 42%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, transparent 28%);
  pointer-events: none;
}
.live-player-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.live-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--lf-card);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
  z-index: 2;
}
.live-play-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  animation: live-play-ring 2s ease-out infinite;
}
@keyframes live-play-ring {
  0% { transform: scale(0.92); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}
.live-play-btn:active { transform: translate(-50%, -50%) scale(0.9); }
.live-player-badges {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}
.live-on-air,
.live-viewers {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.live-on-air .live-dot { width: 6px; height: 6px; }
.live-viewers .icon { color: #fca5a5; }

.live-show-card {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.live-show-main {
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-show-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.live-show-text { min-width: 0; flex: 1; }
.live-title {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
}
.live-subtitle {
  font-size: 11px;
  color: var(--lf-accent);
  font-weight: 600;
  margin-top: 2px;
}
.live-show-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.live-tag {
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 9999px;
}
.live-tag-gift {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.25);
}
.live-desc {
  font-size: 11px;
  line-height: 1.5;
  color: var(--slate-400);
  margin-top: 8px;
}

.live-chat {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.live-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.live-chat-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
}
.live-chat-head-left .icon { color: var(--lf-accent); }
.live-chat-online {
  font-size: 11px;
  font-weight: 600;
  color: #6ee7b7;
  display: flex;
  align-items: center;
  gap: 5px;
}
.live-chat-messages {
  height: calc(4 * 40px + 3 * 6px + 16px);
  min-height: calc(4 * 40px + 3 * 6px + 16px);
  max-height: calc(4 * 40px + 3 * 6px + 16px);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  overflow: hidden;
  background: transparent;
}
.live-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 40px;
  flex-shrink: 0;
}
.live-msg.is-me .live-msg-nick { color: var(--lf-accent); }
.live-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.live-msg-line {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #e2e8f0;
}
.live-msg-nick {
  font-weight: 800;
  color: #f8fafc;
  margin-right: 4px;
}
.live-msg-line .server-badge {
  vertical-align: middle;
  margin-right: 6px;
}
.live-msg-text {
  color: #cbd5e1;
  word-break: break-word;
}

.live-chat-foot {
  flex-shrink: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.live-chat-login-btn {
  width: 100%;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--lf-blue), #3b82f6);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: transform 0.15s;
}
.live-chat-login-btn:active { transform: scale(0.98); }
.live-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.live-input-row:focus-within {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}
.live-input-row.is-locked { opacity: 0.65; }
.live-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #f8fafc;
  font-size: 14px;
  padding: 8px 0;
}
.live-input::placeholder { color: var(--slate-500); }
.live-input:disabled { cursor: not-allowed; }
.live-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--lf-blue), #3b82f6);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s, opacity 0.15s;
}
.live-send-btn .icon { transform: rotate(-90deg); }
.live-send-btn:active:not(:disabled) { transform: scale(0.9); }
.live-send-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.panel-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== Overlays: Notifications ===== */
.notif-root {
  position: absolute;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  pointer-events: none;
}
.notif-root.is-open { pointer-events: auto; }

.overlay-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  transition: opacity 0.3s;
  opacity: 0;
}
.notif-root.is-open .overlay-backdrop { opacity: 1; }
.overlay-backdrop.hidden-overlay { opacity: 0; pointer-events: none; }

.notif-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 85%;
  max-width: 360px;
  background: var(--slate-50);
  box-shadow: -10px 0 25px rgba(0,0,0,0.15);
  display: flex; flex-direction: column;
  transition: transform 0.3s;
  transform: translateX(100%);
}
.notif-root.is-open .notif-panel { transform: translateX(0); }
.notif-panel.hidden-panel { transform: translateX(100%); }

.panel-header {
  background: linear-gradient(to bottom, var(--lf-dark), var(--lf-card));
  color: #fff;
  padding: 0 16px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.panel-header-left { display: flex; align-items: center; gap: 8px; }
.panel-header-left .icon { width: 20px; height: 20px; }
.panel-header-left span { font-weight: 700; font-size: 16px; }
.panel-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 14px;
}
.panel-close:active { transform: scale(0.9); }

.notif-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
}
.notif-toolbar span { font-size: 12px; color: var(--slate-400); }
.notif-toolbar button { font-size: 12px; font-weight: 600; color: var(--lf-blue); }

.notif-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  position: relative;
}
.notif-item.unread { background: #fff; box-shadow: 0 0 0 1px #dbeafe; }
.notif-item.read { background: rgba(255,255,255,0.6); box-shadow: 0 0 0 1px var(--slate-100); }
.notif-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--slate-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.notif-content { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 700; color: var(--lf-card); line-height: 1.375; }
.notif-text { font-size: 12px; color: var(--slate-500); margin-top: 2px; line-height: 1.375; }
.notif-time { font-size: 10px; color: var(--slate-400); margin-top: 6px; }
.notif-unread-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lf-blue);
  flex-shrink: 0;
  margin-top: 4px;
}

/* ===== Chat ===== */
.fullscreen-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: var(--slate-50);
  display: flex; justify-content: center;
}
.fullscreen-inner {
  width: 100%; max-width: var(--max-width);
  display: flex; flex-direction: column;
  height: 100%;
}

.chat-setup {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.chat-setup-header { text-align: center; margin-bottom: 24px; margin-top: 16px; }
.chat-setup-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(to bottom right, var(--lf-blue), var(--lf-accent));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 10px 15px -3px rgba(147,197,253,1);
  color: #fff;
}
.chat-setup-icon .icon { width: 32px; height: 32px; }
.chat-setup h2 { font-size: 20px; font-weight: 800; color: var(--lf-card); }
.chat-setup p { font-size: 13px; color: var(--slate-500); margin-top: 4px; }

.form-label {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--slate-500);
  margin-bottom: 4px;
}
.form-label .req { color: #f43f5e; }
.form-input {
  width: 100%;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--slate-200);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--lf-card);
  outline: none;
  margin-bottom: 16px;
  transition: box-shadow 0.15s;
}
.form-input:focus { box-shadow: 0 0 0 2px var(--lf-blue); }

.color-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.color-wheel {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.color-wheel input[type="color"] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.color-wheel-ring {
  display: block;
  width: 36px; height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--slate-300);
  background: conic-gradient(
    #ef4444, #f59e0b, #eab308, #22c55e,
    #06b6d4, #3b82f6, #a855f7, #ec4899, #ef4444
  );
}
.color-wheel-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
}
.color-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.color-btn:active { transform: scale(0.9); }
.color-btn.selected { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--slate-400); }
.color-btn .icon { width: 16px; height: 16px; color: #fff; }

.preview-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 20px;
  box-shadow: 0 0 0 1px var(--slate-100);
}
.preview-label { font-size: 11px; color: var(--slate-400); margin-bottom: 8px; }
.preview-row { display: flex; align-items: center; gap: 8px; }
.preview-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--slate-200);
}
.preview-nick { font-size: 14px; font-weight: 700; color: var(--lf-card); }

.profile-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
}
.profile-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
}
.profile-modal {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--max-width);
  max-height: 90vh;
  background: var(--slate-50);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
  display: flex; flex-direction: column;
}
.profile-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--slate-100);
}
.profile-modal-header h2 { font-size: 17px; font-weight: 800; color: var(--lf-card); }
.profile-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--slate-500);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.profile-modal-body {
  overflow-y: auto;
  padding: 16px 20px 24px;
}
.profile-avatar-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.profile-avatar-btn {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--slate-200);
}
.profile-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.15s;
}
.profile-avatar-btn:hover .profile-avatar-overlay { opacity: 1; }
.profile-avatar-hint p { font-size: 13px; font-weight: 600; color: var(--lf-card); }
.profile-avatar-hint span { font-size: 11px; color: var(--slate-400); }

.server-badge {
  font-size: 10px; font-weight: 800;
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.btn-full {
  width: 100%;
  border-radius: 16px;
  padding: 14px;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transition: all 0.15s;
}
.btn-full:active { transform: scale(0.98); }
.btn-full.enabled {
  background: linear-gradient(to right, var(--lf-blue), #3b82f6);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(147,197,253,1);
}
.btn-full.disabled {
  background: var(--slate-200);
  color: var(--slate-400);
  cursor: not-allowed;
}

.chat-header-info { flex: 1; }
.chat-header-info p:first-child { font-weight: 700; font-size: 15px; line-height: 1; }
.chat-online {
  font-size: 11px; color: #34d399;
  display: flex; align-items: center; gap: 4px;
  margin-top: 4px;
}
.online-dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }

.chat-profile {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  padding: 4px 8px 4px 4px;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  max-width: 160px;
}
.chat-profile span {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-profile-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
}
.chat-guest-btn {
  font-size: 12px; font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 9999px;
  padding: 6px 12px;
}
.chat-guest-btn:active { transform: scale(0.95); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.msg-row {
  display: flex; align-items: flex-end; gap: 8px;
}
.msg-row.me { justify-content: flex-end; }
.msg-row.other { justify-content: flex-start; }
.msg-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--slate-200);
}
.msg-col { max-width: 72%; display: flex; flex-direction: column; }
.msg-row.me .msg-col { align-items: flex-end; }
.msg-row.other .msg-col { align-items: flex-start; }
.msg-meta {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px; padding: 0 4px;
}
.msg-nick { font-size: 12px; font-weight: 700; color: var(--lf-card); }
.msg-bubble {
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 13px; line-height: 1.375;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.msg-bubble.me {
  background: var(--lf-blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-bubble.other {
  background: #fff;
  color: var(--lf-card);
  box-shadow: 0 0 0 1px var(--slate-100);
  border-bottom-left-radius: 4px;
}

.chat-input-bar {
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--slate-100);
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  border-radius: 9999px;
  background: var(--slate-100);
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  border: none;
  transition: box-shadow 0.15s;
}
.chat-input:focus { box-shadow: 0 0 0 2px var(--lf-blue); }
.chat-input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: var(--slate-200);
  color: var(--slate-500);
}
.chat-input-bar.locked { background: var(--slate-50); }
.chat-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.chat-send {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, var(--lf-blue), #3b82f6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: transform 0.15s;
}
.chat-send:active { transform: scale(0.9); }
.chat-send .icon { width: 20px; height: 20px; }

/* ===== Checkout ===== */
.checkout-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex; justify-content: center;
}
.checkout-panel {
  width: 100%; max-width: var(--max-width);
  background: var(--slate-50);
  height: 100%;
  overflow-y: auto;
  animation: slide-up 0.3s ease-out;
}
.checkout-body { padding: 16px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 12px; }

.checkout-product {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 0 0 1px var(--slate-100), 0 1px 2px rgba(0,0,0,0.05);
}
.checkout-product-img {
  width: 56px; height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--slate-200);
}
.checkout-product-img img { width: 100%; height: 100%; object-fit: cover; }
.checkout-product-info { flex: 1; min-width: 0; }
.checkout-product-title { font-size: 14px; font-weight: 700; color: var(--lf-card); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checkout-product-sub { font-size: 12px; color: var(--slate-400); }
.checkout-product-price { font-size: 18px; font-weight: 800; color: var(--lf-card); }

.form-card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 0 0 1px var(--slate-100), 0 1px 2px rgba(0,0,0,0.05); }
.form-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.form-card-header .icon { width: 16px; height: 16px; color: var(--lf-blue); }
.form-card-title { font-size: 13px; font-weight: 700; color: var(--lf-card); }

.checkbox-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px;
  transition: transform 0.15s;
}
.checkbox-row:active { transform: scale(0.99); }
.checkbox {
  width: 20px; height: 20px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.checkbox.checked { background: var(--lf-blue); }
.checkbox:not(.checked) { background: #fff; box-shadow: 0 0 0 1px var(--slate-300); }
.checkbox .icon { width: 14px; height: 14px; color: #fff; }
.checkbox-label { font-size: 13px; font-weight: 600; color: var(--lf-card); }
.password-hint { font-size: 11px; color: var(--slate-400); margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.password-hint .icon { width: 12px; height: 12px; }

.payment-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: 16px;
  background: linear-gradient(to bottom right, #1d4ed8, var(--lf-blue), var(--lf-card));
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.payment-card-glow {
  position: absolute; right: -32px; top: -32px;
  width: 112px; height: 112px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  filter: blur(32px);
}
.payment-card-top {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.payment-chip {
  width: 40px; height: 28px;
  border-radius: 6px;
  background: linear-gradient(to bottom right, #fcd34d, #f59e0b);
}
.payment-mir { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; }
.payment-number {
  position: relative;
  font-size: 19px; font-weight: 700;
  letter-spacing: 0.12em;
  margin-top: 20px;
}
.payment-bottom {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 16px;
}
.payment-holder-label { font-size: 9px; color: rgba(255,255,255,0.6); text-transform: uppercase; }
.payment-holder { font-size: 13px; font-weight: 600; letter-spacing: 0.025em; }
.copy-btn {
  font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 6px 12px;
  color: #fff;
  transition: transform 0.15s;
}
.copy-btn:active { transform: scale(0.95); }

.amount-row {
  margin-top: 12px;
  display: flex; align-items: center; justify-content: space-between;
  background: #eff6ff;
  border-radius: 12px;
  padding: 10px 12px;
}
.amount-row span:first-child { font-size: 12px; color: var(--slate-500); }
.amount-row span:last-child { font-size: 16px; font-weight: 800; color: var(--lf-card); }

.warning-box {
  margin-top: 12px;
  border-radius: 12px;
  background: #fffbeb;
  box-shadow: 0 0 0 1px #fde68a;
  padding: 12px;
}
.warning-box p { font-size: 12px; color: #92400e; line-height: 1.375; }
.warning-comment {
  margin-top: 8px;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 0 0 1px #fde68a;
}
.warning-comment span { font-size: 14px; font-weight: 700; color: var(--lf-card); }
.warning-comment button { font-size: 11px; font-weight: 700; color: var(--lf-blue); }
.warning-important { font-size: 11px; color: #e11d48; font-weight: 600; margin-top: 8px; }

.checkout-hint { text-align: center; font-size: 11px; color: var(--slate-400); }

.support-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, var(--lf-blue), var(--lf-accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.support-avatar .icon { width: 20px; height: 20px; }

.order-badge {
  text-align: center;
}
.order-badge span {
  font-size: 11px; color: var(--slate-400);
  background: var(--slate-200);
  border-radius: 9999px;
  padding: 4px 12px;
}

.filter-scroll {
  display: flex; gap: 8px;
  overflow-x: auto;
  margin: 0 -16px; padding: 0 16px 8px;
}

.gear-list, .events-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }

.section-content { padding-bottom: 16px; }
