/* ============================================
   Modern Template v8 - External CSS
   Loaded via <link> with version cache-busting
   ============================================ */

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-light: #ccfbf1;
  --bg: #f8fafc;
  --bg-warm: #faf8f5;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --price: #ea580c;
  --price-bg: #fff7ed;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --max-width: 1200px;
  --nav-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; min-width: 100%;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
.c { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== NAVBAR ===== */
.navbar { position: sticky; top: 0; z-index: 1000; background: var(--primary); height: var(--nav-height); display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.06); }
.navbar-inner { display: flex; align-items: center; width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; gap: 32px; }
.navbar-brand { font-size: 20px; font-weight: 700; color: #fff !important; white-space: nowrap; letter-spacing: -0.3px; flex-shrink: 0; }
.navbar-brand:hover { color: var(--accent) !important; }
.navbar-menu { display: flex; align-items: center; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.navbar-menu::-webkit-scrollbar { display: none; }
.nav-link { color: rgba(255,255,255,0.75) !important; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 6px; transition: color 0.15s, background 0.15s; white-space: nowrap; display: inline-flex; align-items: center; text-decoration: none !important; }
.nav-link:hover { color: #fff !important; background: rgba(255,255,255,0.08); }
.nav-link .icon { width: 16px; height: 16px; stroke-width: 2; flex-shrink: 0; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 6px; z-index: 1001; margin-top: 4px; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; color: var(--text) !important; font-size: 14px; border-radius: 6px; transition: background 0.15s; text-decoration: none !important; }
.nav-dropdown-item:hover { background: var(--bg); color: var(--accent) !important; }
.nav-search { display: flex; align-items: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0 10px; height: 36px; min-width: 180px; flex-shrink: 0; }
.nav-search input { background: transparent; border: none; outline: none; color: #fff; font-size: 13px; width: 140px; }
.nav-search input::placeholder { color: rgba(255,255,255,0.4); }
.nav-search .icon { width: 16px; height: 16px; color: rgba(255,255,255,0.4); stroke-width: 2; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: #fff; }
.nav-toggle svg { width: 24px; height: 24px; }
@media (max-width: 768px) {
  :root { --nav-height: 56px; }
  .navbar-menu { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--primary); flex-direction: column; padding: 12px 20px; gap: 2px; border-bottom: 1px solid rgba(255,255,255,0.06); max-height: calc(100vh - 56px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .navbar-menu.active { display: flex; }
  .nav-search { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .navbar-inner { gap: 12px; padding: 0 16px; }
  .nav-link { padding: 12px 16px; font-size: 15px; }
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; background: rgba(255,255,255,0.05); padding-left: 12px; display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .c { padding: 0 16px; }
}

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #1a365d 50%, #234e72 100%); padding: 48px 20px; text-align: center; color: #fff; }
.hero h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 700; margin-bottom: 12px; letter-spacing: -0.5px; }
.hero p { font-size: 16px; color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto 20px; }
.hero-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff !important; padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 15px; transition: background 0.15s; text-decoration: none !important; }
.hero-btn:hover { background: var(--accent-hover); color: #fff !important; }
@media (max-width: 768px) { .hero { padding: 32px 16px; } .hero h2 { font-size: 22px; } .hero p { font-size: 14px; } .hero-btn { padding: 10px 24px; font-size: 14px; } }

/* ===== CAROUSEL ===== */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius-lg); margin-bottom: 32px; }
.carousel-track { display: flex; transition: transform 0.4s ease; }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { width: 100%; height: auto; min-height: 200px; object-fit: cover; }
.carousel-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 24px 24px; background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: #fff; }
.carousel-caption h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.carousel-caption p { font-size: 13px; opacity: 0.85; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.45); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.carousel-btn:hover { background: rgba(0,0,0,0.7); }
.carousel-btn.prev { left: 12px; } .carousel-btn.next { right: 12px; }
.carousel-btn svg { width: 18px; height: 18px; }
@media (max-width: 768px) { .carousel { border-radius: var(--radius); margin-bottom: 24px; } .carousel-slide img { min-height: 160px; } .carousel-caption { padding: 20px 16px 16px; } .carousel-caption h3 { font-size: 15px; } .carousel-btn { width: 32px; height: 32px; } .carousel-btn.prev { left: 8px; } .carousel-btn.next { right: 8px; } }

/* ===== SECTIONS ===== */
.section { margin-bottom: 40px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 20px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.section-title .icon { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.section-more { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; transition: color 0.15s; text-decoration: none !important; }
.section-more:hover { color: var(--accent); }
.cate-header { background: linear-gradient(135deg, var(--primary), #1a365d); border-radius: var(--radius-lg); padding: 32px; color: #fff; margin-bottom: 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.cate-header-breadcrumb { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.cate-header-breadcrumb a { color: rgba(255,255,255,0.7); }
.cate-header-breadcrumb a:hover { color: #fff; }
.cate-header h1 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; margin-bottom: 6px; }
.cate-header-desc { font-size: 14px; color: rgba(255,255,255,0.7); max-width: 600px; }
.cate-stat { text-align: center; background: rgba(255,255,255,0.1); border-radius: var(--radius); padding: 16px 24px; min-width: 120px; }
.cate-stat-num { font-size: 28px; font-weight: 700; }
.cate-stat-label { font-size: 13px; color: rgba(255,255,255,0.6); }
@media (max-width: 768px) { .cate-header { padding: 24px 20px; border-radius: var(--radius); } .cate-stat { min-width: 90px; padding: 12px 16px; } .cate-stat-num { font-size: 22px; } }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); }

/* ===== CARD GRID ===== */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.card-item { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-item-thumb { position: relative; width: 100%; height: 180px; overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.card-item-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
@media (max-width: 768px) { .card-item-thumb { height: 140px; } }
@media (max-width: 520px) { .card-item-thumb { height: 120px; } }
.card-item:hover .card-item-thumb img { transform: scale(1.05); }
.price-badge { position: absolute; top: 8px; right: 8px; background: var(--price); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 12px; z-index: 2; line-height: 1.6; }
.card-item-body { padding: 10px 12px; }
.card-item-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; transition: color 0.15s; text-decoration: none !important; }
.card-item-title:hover { color: var(--accent); }
.card-item-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); }
.card-item-meta .icon { width: 13px; height: 13px; stroke-width: 2; flex-shrink: 0; }
@media (max-width: 520px) { .card-item-body { padding: 8px 10px; } .card-item-title { font-size: 12px; -webkit-line-clamp: 1; } .price-badge { font-size: 11px; padding: 2px 6px; } }

/* ===== TAG CLOUD ===== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag { display: inline-block; padding: 6px 14px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; font-size: 13px; color: var(--text-secondary); transition: all 0.15s; text-decoration: none !important; }
.tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ===== HOT LISTS ===== */
.hot-list { list-style: none; }
.hot-list-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border-light); transition: background 0.15s; }
.hot-list-item:last-child { border-bottom: none; }
.hot-list-item:hover { background: var(--bg); }
.hot-rank { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.hot-rank-1 { background: linear-gradient(135deg,#fbbf24,#f59e0b); color: #fff; }
.hot-rank-2 { background: linear-gradient(135deg,#d1d5db,#9ca3af); color: #fff; }
.hot-rank-3 { background: linear-gradient(135deg,#f97316,#ea580c); color: #fff; }
.hot-rank-n { background: var(--bg); color: var(--text-muted); }
.hot-title { flex: 1; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hot-text-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.hot-text-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border-light); font-size: 14px; transition: background 0.15s; text-decoration: none !important; color: var(--text); }
.hot-text-list > .hot-text-item:nth-child(odd) { border-right: 1px solid var(--border-light); }
.hot-text-item:hover { background: var(--bg); }
.hot-text-item span:first-child { color: var(--text); font-weight: 500; }
.hot-text-price { color: var(--price); font-weight: 600; font-size: 13px; }
@media (max-width: 768px) { .hot-text-item { padding: 10px 12px; font-size: 13px; } .hot-text-list { grid-template-columns: 1fr; } .hot-text-list > .hot-text-item:nth-child(odd) { border-right: none; } }

/* ===== DETAIL PAGE TWO-COLUMN ===== */
.detail-layout { display: flex; gap: 24px; align-items: flex-start; }
.detail-layout > .main-col, .detail-layout > div:first-of-type { flex: 1; min-width: 0; }
.detail-layout > .detail-sidebar { width: 340px; flex-shrink: 0; min-width: 0; position: sticky; top: calc(var(--nav-height, 64px) + 16px); align-self: flex-start; max-height: calc(100vh - var(--nav-height, 64px) - 32px); overflow-y: auto; }
@media (max-width: 768px) { .detail-layout { flex-direction: column; } .detail-layout > .detail-sidebar { width: 100%; position: static; max-height: none; overflow-y: visible; } .detail-card > .detail-sidebar { width: 100%; position: static; max-height: none; overflow-y: visible; margin-top: 24px; } }
.detail-card { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 28px; }
.detail-card h1 { font-size: clamp(20px, 3vw, 26px); font-weight: 700; line-height: 1.35; margin-bottom: 16px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; font-size: 13px; color: var(--text-secondary); }
.detail-meta span { display: flex; align-items: center; gap: 5px; }
.detail-meta .icon { width: 16px; height: 16px; stroke-width: 2; color: var(--text-muted); flex-shrink: 0; }
.seo-summary-box { background: var(--bg-warm); border-left: 3px solid var(--accent); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 24px; }
.seo-summary-box h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.seo-summary-box p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }
.seo-summary-box small { font-size: 12px; color: var(--text-muted); }
.detail-content { line-height: 1.8; font-size: 15px; margin-bottom: 24px; word-wrap: break-word; overflow-wrap: break-word; }
.detail-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 12px 0; }
.detail-content p { margin-bottom: 12px; }
.info-block { margin-bottom: 24px; }
.info-block h4 { font-size: 16px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.info-block p { font-size: 14px; color: var(--text-secondary); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-tag { display: inline-block; padding: 5px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; font-size: 13px; color: var(--text-secondary); transition: all 0.15s; text-decoration: none !important; }
.btn-tag:hover { border-color: var(--accent); color: var(--accent); }
.sidebar-sticky { position: static; width: 100%; }
.sidebar-card { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.sidebar-countdown { background: linear-gradient(135deg, #dc2626, #b91c1c); color: #fff; padding: 16px; text-align: center; }
.sidebar-countdown-label { font-size: 13px; opacity: 0.85; }
.sidebar-countdown-time { font-size: 24px; font-weight: 700; letter-spacing: 2px; margin-top: 4px; }
.sidebar-price { text-align: center; padding: 20px; }
.sidebar-price-big { font-size: 42px; font-weight: 800; color: var(--text); }
.sidebar-price-big::first-letter { font-size: 24px; vertical-align: super; }
.sidebar-buyers { display: inline-block; background: var(--accent-light); color: var(--accent); padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; margin-top: 8px; }
.sidebar-body { padding: 16px 20px; }
.buy-btn { display: block; width: 100%; padding: 14px; background: var(--accent); color: #fff !important; text-align: center; font-size: 16px; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; transition: background 0.15s, transform 0.15s, box-shadow 0.15s; text-decoration: none !important; }
.buy-btn:hover { background: var(--accent-hover); color: #fff !important; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(13,148,136,0.3); text-decoration: none !important; }
.buy-btn:active { transform: translateY(0); }
.payment-methods { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.pay-badge-wechat { background: #07c160; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 3px; }
.pay-badge-alipay { background: #1677ff; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 3px; }
.trust-badges { display: flex; justify-content: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.trust-badge { font-size: 11px; color: var(--success); }
.purchase-steps { font-size: 13px; color: var(--text-secondary); line-height: 2; }
.purchase-steps p { margin: 0; }
.rating-card { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.rating-score { font-size: 36px; font-weight: 800; color: var(--price); }
.rating-stars { font-size: 22px; color: #fbbf24; letter-spacing: 2px; }
.rating-info { font-size: 13px; color: var(--text-secondary); }
.faq-list { list-style: none; }
.faq-item { border: 1px solid var(--border-light); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.faq-question { width: 100%; padding: 14px 18px; background: var(--card-bg); border: none; text-align: left; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.15s; }
.faq-question:hover { background: var(--bg); }
.faq-answer { padding: 0 18px 14px; font-size: 14px; color: var(--text-secondary); line-height: 1.65; display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question { background: var(--bg); }
.pager-nav { display: flex; gap: 12px; margin: 24px 0; }
.pager-nav a { flex: 1; display: flex; flex-direction: column; padding: 16px 20px; background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius); transition: border-color 0.15s; text-decoration: none !important; }
.pager-nav a:hover { border-color: var(--accent); }
.pager-nav-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.pager-nav-title { font-size: 14px; font-weight: 600; color: var(--text); }
@media (max-width: 768px) {
  .faq-question { padding: 12px 14px; font-size: 15px; }
  .faq-answer { padding: 0 14px 12px; font-size: 14px; }
  .rating-card { padding: 16px; gap: 14px; } .rating-score { font-size: 28px; }
  .detail-card { padding: 20px 16px; }
  .sidebar-sticky { position: static; max-height: none; } .sidebar-card { margin-bottom: 12px; }
  .pager-nav { flex-direction: column; gap: 10px; } .pager-nav a { padding: 12px 16px; }
}

/* ===== PAGINATION (TP6 compatible) ===== */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px !important; margin-bottom: 20px; padding: 8px 0; list-style: none; }
.pagination > li { display: inline-flex; margin: 0; padding: 0; }
.pagination > li > a, .pagination > li > span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text); transition: all 0.15s; text-decoration: none !important; background: var(--card-bg); cursor: pointer; white-space: nowrap; }
.pagination > li > a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); text-decoration: none !important; }
.pagination > li.active > span { background: var(--accent); border-color: var(--accent); color: #fff !important; font-weight: 600; cursor: default; }
.pagination > li.disabled { visibility: hidden; pointer-events: none; }
.pagination > li.disabled:not(:has(span)) { display: none; }
@media (max-width: 768px) { .pagination { margin-top: 28px !important; margin-bottom: 16px; gap: 5px; } .pagination > li > a, .pagination > li > span { min-width: 34px; height: 34px; font-size: 13px; padding: 0 8px; } }

/* ===== FILTER / SEARCH ===== */
.filter-bar { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.filter-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.filter-group input, .filter-group select { width: 100%; min-width: 130px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; outline: none; transition: border-color 0.15s; background: var(--card-bg); color: var(--text); }
.filter-group input:focus, .filter-group select:focus { border-color: var(--accent); }
.btn-filter { padding: 8px 20px; background: var(--accent); color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.15s; text-decoration: none !important; }
.btn-filter:hover { background: var(--accent-hover); }
.btn-filter-secondary { padding: 8px 20px; background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); border-radius: 6px; font-size: 14px; cursor: pointer; transition: all 0.15s; text-decoration: none !important; }
.btn-filter-secondary:hover { border-color: var(--accent); color: var(--accent); }
.search-result-info { background: var(--accent-light); color: var(--accent); padding: 12px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 500; margin-bottom: 20px; }
@media (max-width: 768px) { .filter-bar { padding: 16px; } .filter-row { flex-direction: column; align-items: stretch; } .filter-group input, .filter-group select { min-width: auto; } }

/* ===== FORM COMPONENTS ===== */
.form-control { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; background: var(--card-bg); color: var(--text); font-family: inherit; }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13,148,136,0.1); }
.form-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; display: block; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all 0.15s; text-decoration: none !important; gap: 6px; }
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-hover); color: #fff !important; }
.btn-success { background: var(--success); color: #fff !important; }
.btn-success:hover { background: #15803d; color: #fff !important; }
.btn-link { background: transparent; color: var(--text-secondary) !important; padding: 8px 12px; }
.btn-link:hover { color: var(--accent) !important; }
.btn-close { background: none; border: none; font-size: 20px; cursor: pointer; opacity: 0.5; padding: 4px; }
.btn-close:hover { opacity: 0.7; }

/* ===== MODAL ===== */
.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.modal.show, .modal[style*="display: block"] { display: flex !important; }
.modal-blur { backdrop-filter: blur(4px); background: rgba(0,0,0,0.5); }
.modal-dialog { width: 100%; max-width: 560px; margin: auto; }
.modal-dialog-centered { margin: auto; }
.modal-lg { max-width: 720px; }
.modal-content { background: var(--card-bg); border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,0.2); overflow: hidden; display: flex; flex-direction: column; max-height: 90vh; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--border-light); flex-shrink: 0; }
.modal-title { font-weight: 700; font-size: 18px; }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; min-height: 0; }
.modal-footer { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--border-light); flex-shrink: 0; }
.modal-footer .me-auto { margin-right: auto; }
.modal-footer .ms-0 { margin-left: 0; }
@media (max-width: 768px) {
  .modal { padding: 0; }
  .modal-dialog { max-width: 100%; }
  .modal-content { max-height: 100vh; border-radius: 0; }
  .modal-header { padding: 14px 16px; }
  .modal-title { font-size: 16px; }
  .modal-body { padding: 16px; }
  .modal-footer { padding: 12px 16px; }
}

/* ===== ALERT ===== */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; border: none; }
.alert-info { background: #eff6ff; color: #1e40af; }
.alert-warning { background: #fffbeb; color: #92400e; }
.alert-success { background: #ecfdf5; color: #065f46; }
.alert-danger { background: #fef2f2; color: #dc2626; }

/* ===== CONTACT / FORM PAGES ===== */
.form-card { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 28px; }
.form-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.form-input, .form-textarea, .form-select-input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; transition: border-color 0.15s; background: var(--card-bg); color: var(--text); font-family: inherit; }
.form-input:focus, .form-textarea:focus, .form-select-input:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-submit { display: inline-flex; align-items: center; gap: 6px; padding: 12px 28px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.15s; text-decoration: none !important; }
.form-submit:hover { background: var(--accent-hover); }
.contact-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.info-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.info-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.6; }
.info-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 14px; }
.info-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-icon svg { width: 18px; height: 18px; stroke-width: 2; }
.info-icon-blue { background: #eff6ff; color: #2563eb; }
.info-icon-green { background: #ecfdf5; color: #059669; }
.info-icon-yellow { background: #fffbeb; color: #d97706; }
.check-list { list-style: none; }
.check-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 6px 0; color: var(--text-secondary); }
.check-list .check { color: var(--success); font-weight: 700; }
.link-list { list-style: none; }
.link-list li a { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 14px; color: var(--text); transition: color 0.15s; text-decoration: none !important; }
.link-list li a:hover { color: var(--accent); }
.link-list li a:last-child { border-bottom: none; }
.query-card { max-width: 560px; margin: 0 auto; background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; }
.query-card-header { padding: 20px 24px; border-bottom: 1px solid var(--border-light); }
.query-card-header h3 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.query-card-body { padding: 24px; }
.query-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.query-tab { flex: 1; padding: 10px; text-align: center; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; background: var(--card-bg); color: var(--text-secondary); transition: all 0.15s; }
.query-tab.active, .query-tab:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
@media (max-width: 768px) { .form-card { padding: 20px 16px; } .query-card-body { padding: 20px 16px; } .query-card-header { padding: 16px 20px; } }

/* ===== FOOTER ===== */
.footer { background: var(--primary); color: rgba(255,255,255,0.6); padding: 40px 20px 24px; margin-top: 48px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-brand { font-size: 18px; font-weight: 700; color: #fff; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; transition: color 0.15s; text-decoration: none !important; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; text-align: center; }
.footer-copy a { color: rgba(255,255,255,0.7); text-decoration: none !important; }
.footer-icp { font-size: 12px; margin-top: 4px; color: rgba(255,255,255,0.4); }
.footer-icp a { color: rgba(255,255,255,0.5); text-decoration: none !important; }
@media (max-width: 768px) { .footer { padding: 32px 16px 20px; margin-top: 36px; } .footer-links { gap: 16px; font-size: 13px; } .footer-brand { font-size: 16px; } }

/* ===== DOWNLOAD PAGE ===== */
.download-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); padding: 20px; }
.download-card { width: 100%; max-width: 540px; background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; }
.download-card-header { padding: 20px 24px; border-bottom: 1px solid var(--border-light); font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.download-card-body { padding: 24px; }
.download-card-footer { padding: 16px 24px; border-top: 1px solid var(--border-light); background: var(--bg); }
.download-btn-action { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none !important; margin: 4px; transition: background 0.15s; }
.download-btn-action:hover { background: var(--accent-hover); }
@media (max-width: 768px) { .download-page { padding: 16px; } .download-card-body { padding: 20px 16px; } .download-btn-action { width: 100%; justify-content: center; } }
.error-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); padding: 20px; }
.error-card { text-align: center; max-width: 420px; background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 40px 32px; }
.error-icon { color: var(--danger); margin-bottom: 16px; }
.error-title { font-size: 22px; font-weight: 700; color: var(--danger); margin-bottom: 8px; }
.error-msg { color: var(--text-secondary); margin-bottom: 24px; }
.error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 768px) { .error-card { padding: 32px 20px; } .error-title { font-size: 20px; } }

/* ===== UTILITIES ===== */
.text-accent { color: var(--accent); }
.text-price { color: var(--price); font-weight: 700; }
.text-muted-custom { color: var(--text-muted); }
.fw-600 { font-weight: 600; }
.fw-bolder { font-weight: 700; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.page-wrapper { min-height: calc(100vh - 200px); }
.main-content { padding: 24px 0; }
.page-body, .page { background: transparent !important; }
.d-print-none { }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.bg-light { background: var(--bg) !important; }
.service-notice-container { margin-bottom: 16px; }
@media (max-width: 768px) { .main-content { padding: 16px 0; } }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.4s ease both; }
@media (prefers-reduced-motion: reduce) { .animate-in { animation: none; } *, *::before, *::after { transition-duration: 0.01ms !important; } }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== ACCESSIBILITY ===== */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (pointer: coarse) {
  .nav-link { min-height: 44px; }
  .tag, .btn-tag { min-height: 36px; display: inline-flex; align-items: center; }
  .buy-btn { min-height: 48px; }
  .btn-filter, .btn-filter-secondary { min-height: 44px; }
  .pagination a, .pagination span { min-width: 42px; min-height: 42px; }
  .hot-text-item { min-height: 44px; padding: 12px; }
  .faq-question { min-height: 48px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== BOOTSTRAP/TABLER NEUTRALIZATION ===== */
.container-xl { max-width: var(--max-width); padding: 0 20px; margin: 0 auto; }
.row-cards { display: contents; }
.row-cards > .card { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 0; }
.row-cards > .card .card-header { display: none; }
.row-cards > .card .card-body { padding: 0; }
.page { background: transparent !important; padding: 0 !important; }
.accordion-item { border: 1px solid var(--border-light) !important; border-radius: var(--radius) !important; margin-bottom: 8px !important; overflow: hidden; }
.accordion-button { font-weight: 600; font-size: 14px; padding: 14px 18px; background: var(--card-bg) !important; color: var(--text) !important; box-shadow: none !important; border: none !important; }
.accordion-button:not(.collapsed) { background: var(--bg) !important; color: var(--accent) !important; }
.accordion-button::after { filter: brightness(0.5); }
.accordion-body { padding: 14px 18px; font-size: 14px; color: var(--text-secondary); line-height: 1.65; }
.badge { border-radius: 6px; font-weight: 500; font-size: 13px; padding: 6px 14px; display: inline-block; }
.badge-success { background: var(--success) !important; color: #fff; }
.list-group-item { border: none; border-bottom: 1px solid var(--border-light); padding: 12px 0; }
.progress { border-radius: 4px; height: 8px; background: var(--border); overflow: hidden; }
.progress-bar { background: #fbbf24 !important; border-radius: 4px; height: 100%; }

/* ===== PAGE HEADER (search/tag/query/contact/report pages) ===== */
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: clamp(20px, 3vw, 26px); font-weight: 700; margin-bottom: 4px; }

/* ===== NO-IMAGE PLACEHOLDER ===== */
.no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; background: var(--bg); color: var(--text-muted); }
/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state p { margin-bottom: 16px; font-size: 15px; }
.empty-state .btn-filter { display: inline-block; padding: 8px 20px; background: var(--accent); color: #fff; border-radius: 6px; font-size: 14px; text-decoration: none !important; }
