/* ── Variables ── */
:root {
  --bg: #0a0a0a;
  --bg2: #141414;
  --card: #1a1a1a;
  --card2: #222222;
  --border: #2a2a2a;
  --gold: #d4a017;
  --gold-light: #f0c040;
  --gold-dim: #7a5c0a;
  --text: #e0e0e0;
  --text-dim: #888;
  --win: #2ecc71;
  --loss: #e74c3c;
  --draw: #95a5a6;
  --pending: #f39c12;
  --radius: 8px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.section { padding: 48px 0; }

/* ── Navbar ── */
.navbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { font-size: 20px; font-weight: 700; color: var(--gold-light); letter-spacing: 1px; }
.brand span { color: var(--text-dim); font-size: 12px; margin-left: 6px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 14px; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-vip { background: var(--gold); color: #000 !important; padding: 4px 14px; border-radius: 20px; font-weight: 600; }
.nav-vip:hover { background: var(--gold-light) !important; color: #000 !important; }

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 10px 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer; border: none;
  transition: all 0.2s; text-align: center;
}
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { background: var(--gold-light); color: #000; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212,160,23,0.4); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: #000; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-danger { background: var(--loss); color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-block { display: block; width: 100%; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1400 50%, #0d0d0d 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 48px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(212,160,23,0.06) 0%, transparent 70%);
}
.hero-title { font-size: 36px; font-weight: 800; color: var(--gold-light); line-height: 1.2; }
.hero-subtitle { font-size: 16px; color: var(--text-dim); margin: 12px 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badge { display: inline-block; background: rgba(212,160,23,0.15); border: 1px solid var(--gold-dim); color: var(--gold); padding: 4px 12px; border-radius: 20px; font-size: 12px; margin-bottom: 16px; }

/* ── Stats Bar ── */
.stats-bar { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 32px 0; }
.stat-item { flex: 1; padding: 20px 16px; text-align: center; background: var(--card); border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--gold-light); }
.stat-label { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* ── Section title ── */
.section-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.section-title::before { content: ''; display: inline-block; width: 4px; height: 18px; background: var(--gold); border-radius: 2px; margin-right: 10px; vertical-align: middle; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }

/* ── Tip Cards ── */
.tip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.tip-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; transition: border-color 0.2s, transform 0.15s;
}
.tip-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.tip-card.locked { opacity: 0.7; }
.tip-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sport-badge { font-size: 18px; }
.league-name { font-size: 12px; color: var(--text-dim); }
.result-badge { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 12px; }
.result-badge.win { background: rgba(46,204,113,0.15); color: var(--win); border: 1px solid rgba(46,204,113,0.3); }
.result-badge.loss { background: rgba(231,76,60,0.15); color: var(--loss); border: 1px solid rgba(231,76,60,0.3); }
.result-badge.draw { background: rgba(149,165,166,0.15); color: var(--draw); border: 1px solid rgba(149,165,166,0.3); }
.result-badge.pending { background: rgba(243,156,18,0.15); color: var(--pending); border: 1px solid rgba(243,156,18,0.3); }
.match-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.pick-text { color: var(--gold); font-weight: 600; font-size: 15px; }
.pick-text .lock { color: var(--text-dim); }
.odds-text { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.tip-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }

/* ── Profit bar ── */
.profit-bar { width: 100%; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin: 12px 0 4px; }
.profit-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); border-radius: 3px; }

/* ── Packages ── */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pkg-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center; transition: all 0.2s; position: relative;
}
.pkg-card:hover, .pkg-card.featured { border-color: var(--gold); }
.pkg-card.featured { background: linear-gradient(135deg, #1a1a00, #1a1400); }
.pkg-featured-tag { position: absolute; top: -1px; right: 16px; background: var(--gold); color: #000; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 0 0 6px 6px; }
.pkg-name { font-size: 18px; font-weight: 700; color: var(--gold-light); }
.pkg-price { font-size: 36px; font-weight: 800; color: var(--text); margin: 10px 0; }
.pkg-price sup { font-size: 18px; color: var(--text-dim); }
.pkg-duration { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.pkg-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }

/* ── Table ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--card2); color: var(--text-dim); font-size: 13px; font-weight: 600; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Forms ── */
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; max-width: 440px; margin: 48px auto; }
.form-title { font-size: 22px; font-weight: 700; color: var(--gold-light); margin-bottom: 24px; text-align: center; }
.form-group { margin-bottom: 18px; }
label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
input[type=text], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  color: var(--text); padding: 10px 12px; border-radius: var(--radius);
  font-size: 14px; transition: border-color 0.2s; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-dim); }
textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* ── Alerts / Flash ── */
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.flash.success { background: rgba(46,204,113,0.1); border: 1px solid rgba(46,204,113,0.3); color: var(--win); }
.flash.error { background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.3); color: var(--loss); }

/* ── Pagination ── */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); font-size: 14px;
  background: var(--card); border: 1px solid var(--border); color: var(--text-dim);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination span.current { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 700; }

/* ── Tag ── */
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 12px; font-weight: 600; }
.tag-vip { background: rgba(212,160,23,0.15); color: var(--gold); border: 1px solid var(--gold-dim); }
.tag-svip { background: rgba(212,160,23,0.25); color: var(--gold-light); border: 1px solid var(--gold); }
.tag-free { background: rgba(136,136,136,0.1); color: var(--text-dim); border: 1px solid var(--border); }
.tag-lock { background: rgba(136,136,136,0.1); color: var(--text-dim); border: 1px solid var(--border); }

/* ── Dashboard ── */
.dash-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.avatar { width: 64px; height: 64px; background: linear-gradient(135deg, var(--gold-dim), var(--gold)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #000; font-weight: 800; margin-bottom: 12px; }
.vip-progress { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.vip-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold-light)); }

/* ── Payment page ── */
.pay-methods { display: flex; gap: 12px; margin: 20px 0; }
.pay-option { flex: 1; background: var(--card); border: 2px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; cursor: pointer; transition: all 0.2s; }
.pay-option:hover, .pay-option.active { border-color: var(--gold); }
.pay-option .icon { font-size: 28px; margin-bottom: 6px; }
.pay-qr { background: #fff; border-radius: var(--radius); padding: 16px; text-align: center; display: inline-block; color: #000; font-size: 13px; margin: 16px 0; }
.qr-placeholder { width: 160px; height: 160px; background: #f0f0f0; border: 1px solid #ccc; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #666; margin: 0 auto 8px; border-radius: 4px; }

/* ── Admin ── */
.admin-sidebar { width: 200px; background: var(--bg2); border-right: 1px solid var(--border); min-height: 100vh; padding: 20px 0; position: fixed; top: 60px; }
.admin-sidebar a { display: block; padding: 10px 24px; color: var(--text-dim); font-size: 14px; transition: all 0.2s; }
.admin-sidebar a:hover, .admin-sidebar a.active { color: var(--gold); background: rgba(212,160,23,0.05); border-left: 3px solid var(--gold); }
.admin-main { margin-left: 200px; padding: 32px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.admin-stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.admin-stat .val { font-size: 28px; font-weight: 800; color: var(--gold-light); }
.admin-stat .lbl { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* ── Win rate ring ── */
.win-ring { position: relative; width: 100px; height: 100px; margin: 0 auto 16px; }
.win-ring svg { transform: rotate(-90deg); }
.win-ring .text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: var(--gold-light); }
.win-ring .text small { font-size: 11px; color: var(--text-dim); font-weight: 400; }

/* ── Footer ── */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 32px 0; margin-top: 64px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-brand { font-size: 18px; font-weight: 700; color: var(--gold); }
.footer-note { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.footer-disclaimer { font-size: 11px; color: var(--text-dim); max-width: 500px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-title { font-size: 26px; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .dash-grid { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links .hide-mobile { display: none; }
}

/* ── Comment Section ── */
.comments-section { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 24px; }
.comments-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.comments-title .count { background: var(--gold-dim); color: var(--gold); padding: 1px 8px; border-radius: 12px; font-size: 12px; }

.comment-list { display: flex; flex-direction: column; gap: 0; }
.comment-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-dim), var(--gold)); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #000; flex-shrink: 0; }
.comment-avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.comment-user { font-weight: 600; font-size: 14px; color: var(--text); }
.comment-time { font-size: 12px; color: var(--text-dim); }
.comment-body { font-size: 14px; color: var(--text); line-height: 1.7; padding-left: 42px; }
.comment-actions { padding-left: 42px; margin-top: 6px; }
.comment-reply-btn { font-size: 12px; color: var(--text-dim); cursor: pointer; background: none; border: none; padding: 0; transition: color 0.2s; }
.comment-reply-btn:hover { color: var(--gold); }

.reply-list { margin-top: 10px; padding: 12px 0 4px 42px; border-left: 2px solid var(--border); margin-left: 42px; display: flex; flex-direction: column; gap: 10px; }
.reply-item { display: flex; gap: 8px; }
.reply-body { flex: 1; }
.reply-user { font-weight: 600; font-size: 13px; color: var(--gold); margin-right: 6px; }
.reply-text { font-size: 13px; color: var(--text); }
.reply-time { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

.comment-form { background: var(--card2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-top: 20px; }
.comment-form.reply-form { margin-top: 8px; display: none; background: var(--bg2); }
.comment-form textarea { background: var(--bg); margin-bottom: 10px; }
.comment-login-hint { background: var(--card2); border: 1px dashed var(--border); border-radius: var(--radius); padding: 16px; text-align: center; font-size: 14px; color: var(--text-dim); margin-top: 20px; }

/* ── News ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.news-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.2s; }
.news-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.news-card-body { padding: 18px; }
.news-category { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-bottom: 10px; }
.news-category.info { background: rgba(52,152,219,0.15); color: #3498db; border: 1px solid rgba(52,152,219,0.3); }
.news-category.report { background: rgba(231,76,60,0.15); color: #e74c3c; border: 1px solid rgba(231,76,60,0.3); }
.news-category.intel { background: rgba(212,160,23,0.15); color: var(--gold); border: 1px solid var(--gold-dim); }
.news-category.analysis { background: rgba(46,204,113,0.15); color: var(--win); border: 1px solid rgba(46,204,113,0.3); }
.news-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.news-title:hover { color: var(--gold-light); }
.news-summary { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-dim); }
.news-meta span { display: flex; align-items: center; gap: 3px; }

.news-content { line-height: 1.9; color: var(--text); font-size: 15px; }
.news-content p { margin-bottom: 16px; }

.news-sidebar .hot-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.news-sidebar .hot-item:last-child { border-bottom: none; }
.hot-rank { width: 22px; height: 22px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.hot-rank.r1 { background: #c0392b; color: #fff; }
.hot-rank.r2 { background: #e67e22; color: #fff; }
.hot-rank.r3 { background: #f39c12; color: #fff; }
.hot-rank.rn { background: var(--card2); color: var(--text-dim); }
.hot-title { font-size: 13px; color: var(--text); line-height: 1.4; }
.hot-title:hover { color: var(--gold); }

/* ── Community ── */
.community-stats { display: flex; gap: 16px; margin-bottom: 24px; }
.comm-stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 24px; flex: 1; text-align: center; }
.comm-stat .val { font-size: 24px; font-weight: 800; color: var(--gold-light); }
.comm-stat .lbl { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

.activity-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-dim), var(--gold)); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #000; flex-shrink: 0; }
.activity-body { flex: 1; min-width: 0; }
.activity-user { font-weight: 600; color: var(--gold); font-size: 13px; }
.activity-text { font-size: 13px; color: var(--text); margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-source { font-size: 12px; color: var(--text-dim); }
.activity-time { font-size: 12px; color: var(--text-dim); flex-shrink: 0; }

/* ── Cat filter tabs ── */
.cat-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.cat-tab { padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; background: var(--card); transition: all 0.2s; }
.cat-tab:hover, .cat-tab.active { background: var(--gold); color: #000; border-color: var(--gold); }

/* ── Logo in nav ── */
.brand img { height: 32px; vertical-align: middle; }

/* ── News article content formatting ── */
.article-content { white-space: pre-line; }
