:root {
  --navy: #14283f;
  --navy2: #1b3b56;
  --teal: #0f6f68;
  --teal2: #17857c;
  --gold: #c39a4e;
  --gold2: #e0c98f;
  --bg: #f5f8fa;
  --card: #ffffff;
  --text: #233240;
  --muted: #6c7d8b;
  --line: #e2e9ee;
  --shadow: 0 10px 30px rgba(20, 40, 63, .08);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 17px; color: var(--navy); letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: 1.6px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a { padding: 10px 13px; border-radius: 9px; color: #45596b; font-size: 14px; white-space: nowrap; transition: .2s; }
.main-nav a:hover, .main-nav a.active { background: #eef5f4; color: var(--teal); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; padding: 10px 18px;
  font-size: 14px; font-weight: 600; transition: .2s; line-height: 1.2;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px rgba(15, 111, 104, .2); }
.btn-primary:hover { background: #0a5c56; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #ab843c; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: #fff; color: #b54b4b; border-color: #f0d5d5; }
.btn-danger:hover { background: #fff5f5; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(125deg, #122a43 0%, #16435a 52%, #0f6f68 100%);
  color: #fff; padding: 66px 0 76px;
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.hero::before { width: 520px; height: 520px; right: -120px; top: -230px; }
.hero::after { width: 320px; height: 320px; right: 180px; bottom: -220px; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: #e8f4f1; margin-bottom: 18px; }
.hero-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold2); }
.hero h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.25; margin: 0 0 16px; font-weight: 700; letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--gold2); }
.hero p { font-size: 16px; color: #d7e6e9; max-width: 560px; margin: 0 0 26px; }
.search-box { display: flex; gap: 10px; background: #fff; padding: 8px; border-radius: 14px; max-width: 620px; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 14px; color: var(--text); background: transparent; }
.search-box button { border: 0; border-radius: 10px; background: var(--teal); color: #fff; padding: 10px 24px; font-weight: 600; }
.hero-stats { display: flex; gap: 30px; margin-top: 28px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 24px; color: var(--gold2); }
.hero-stats span { font-size: 12px; color: #c3d7dc; letter-spacing: .5px; }
.hero-art { position: relative; min-height: 300px; }
.hero-art .frame {
  position: absolute; border-radius: 20px; overflow: hidden; border: 6px solid rgba(255,255,255,.14);
  box-shadow: 0 25px 60px rgba(0,0,0,.28);
}
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .f1 { width: 64%; height: 250px; right: 6%; top: 0; transform: rotate(3deg); }
.hero-art .f2 { width: 48%; height: 180px; left: 0; bottom: 0; transform: rotate(-5deg); border-color: rgba(224,201,143,.35); }
.hero-art .dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--gold2); right: 2%; bottom: 16%; box-shadow: 0 0 0 8px rgba(224,201,143,.18); }

/* Sections */
.section { padding: 64px 0; }
.section-sm { padding: 42px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { font-size: 28px; margin: 0 0 6px; color: var(--navy); letter-spacing: .5px; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.section-head .eyebrow { font-size: 12px; letter-spacing: 3px; color: var(--teal); font-weight: 700; margin-bottom: 8px; display: block; }
.link-more { color: var(--teal); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.link-more svg { width: 15px; height: 15px; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; display: flex; gap: 14px; align-items: flex-start;
  box-shadow: 0 4px 16px rgba(20,40,63,.03); transition: .25s; position: relative; overflow: hidden;
}
.cat-card::after { content: ""; position: absolute; right: -24px; top: -24px; width: 70px; height: 70px; border-radius: 50%; background: #f0f6f5; }
.cat-card:hover { transform: translateY(-4px); border-color: #b9d8d4; box-shadow: var(--shadow); }
.cat-icon { width: 46px; height: 46px; border-radius: 12px; background: #eaf5f3; color: var(--teal); display: grid; place-items: center; flex: none; z-index: 1; }
.cat-icon svg { width: 24px; height: 24px; }
.cat-card h3 { margin: 2px 0 4px; font-size: 16px; color: var(--navy); z-index: 1; }
.cat-card p { margin: 0; font-size: 12px; color: var(--muted); z-index: 1; }
.cat-card span { position: absolute; right: 16px; bottom: 14px; font-size: 11px; color: var(--gold); z-index: 1; }

/* Listing cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(20,40,63,.04); transition: .25s; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c7dedb; }
.post-thumb { height: 190px; position: relative; overflow: hidden; background: #e9eef1; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-thumb .pill { position: absolute; left: 12px; top: 12px; background: rgba(20,40,63,.85); color: #fff; font-size: 12px; padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px); }
.post-thumb .price { position: absolute; right: 12px; bottom: 12px; background: rgba(255,255,255,.94); color: var(--teal); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px; }
.post-body { padding: 17px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 16px; line-height: 1.5; margin: 0 0 8px; color: var(--navy); }
.post-body h3 a:hover { color: var(--teal); }
.post-body p { margin: 0 0 14px; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; justify-content: space-between; font-size: 12px; color: #8a99a6; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: auto; }
.post-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
.post-foot b { color: var(--teal); font-size: 13px; }
.badge-real { display: inline-flex; align-items: center; gap: 4px; color: var(--teal); background: #eaf5f3; border-radius: 5px; padding: 2px 7px; font-size: 11px; }

/* Features / steps */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: 0 4px 18px rgba(20,40,63,.03); }
.feature .fi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #eaf5f3, #f7f2e6); color: var(--teal); margin-bottom: 14px; }
.feature .fi svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 16px; color: var(--navy); }
.feature p { margin: 0; font-size: 13px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; right: 18px; top: 10px; font-size: 32px; font-weight: 800; color: #edf3f2; }
.step h3 { margin: 12px 0 6px; font-size: 16px; color: var(--navy); }
.step p { margin: 0; font-size: 13px; color: var(--muted); }
.step .fi { width: 40px; height: 40px; border-radius: 10px; background: #eaf5f3; color: var(--teal); display: grid; place-items: center; }
.step .fi svg { width: 21px; height: 21px; }

/* Page banner */
.page-banner { background: linear-gradient(120deg, #14283f, #0f6f68); color: #fff; padding: 34px 0; }
.page-banner h1 { margin: 0 0 6px; font-size: 27px; letter-spacing: 1px; }
.page-banner p { margin: 0; color: #cfe3e3; font-size: 14px; }

/* Filter bar */
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.filter-bar .chip { border: 1px solid var(--line); background: #fff; padding: 8px 15px; border-radius: 999px; font-size: 13px; color: #526779; transition: .2s; }
.filter-bar .chip:hover, .filter-bar .chip.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.filter-bar .search-mini { margin-left: auto; display: flex; gap: 8px; }
.filter-bar input, .field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; outline: 0; background: #fff; color: var(--text); width: 100%;
}
.filter-bar input { width: 220px; }
.filter-bar input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,111,104,.09); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pager button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 14px; color: var(--navy); }
.pager button.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.pager button:disabled { opacity: .5; cursor: not-allowed; }

/* Detail */
.detail-layout { display: grid; grid-template-columns: 1.45fr .55fr; gap: 24px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 18px rgba(20,40,63,.03); }
.detail-main { padding: 26px; }
.detail-main h1 { font-size: 25px; margin: 0 0 14px; color: var(--navy); line-height: 1.4; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag { background: #eef5f4; color: var(--teal); padding: 5px 11px; border-radius: 6px; font-size: 12px; }
.tag.gold { background: #fbf5e8; color: #9b7434; }
.detail-hero-img { width: 100%; height: 380px; object-fit: cover; border-radius: 12px; margin-bottom: 22px; background: #e9eef1; }
.detail-content { font-size: 15px; line-height: 1.9; color: #3b4d5c; white-space: pre-wrap; }
.detail-side { padding: 22px; align-self: start; position: sticky; top: 100px; }
.detail-side .side-title { font-size: 16px; color: var(--navy); font-weight: 700; margin: 0 0 14px; }
.phone-box { background: #f4f8f7; border: 1px dashed #c7ddd9; border-radius: 12px; padding: 16px; text-align: center; }
.phone-box .num { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: 1px; }
.phone-box .tip { font-size: 12px; color: var(--muted); margin-top: 6px; }
.side-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f3f5; font-size: 13px; }
.side-row span { color: var(--muted); }
.side-row b { color: var(--text); font-weight: 600; }
.side-cta { margin-top: 16px; display: grid; gap: 10px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.related-card img { width: 100%; height: 130px; object-fit: cover; }
.related-card div { padding: 10px 12px; font-size: 13px; line-height: 1.5; }

/* Forms */
.form-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.form-panel { padding: 28px; }
.form-panel h2 { font-size: 20px; color: var(--navy); margin: 0 0 6px; }
.form-panel .sub { color: var(--muted); font-size: 13px; margin: 0 0 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #405565; margin-bottom: 8px; }
.field label .req { color: #c05c5c; margin-right: 3px; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check-line { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: #556a7a; margin: 10px 0; }
.check-line input { margin-top: 4px; accent-color: var(--teal); }
.check-line a { color: var(--teal); }
.form-tip { background: #f4f8f7; border-left: 3px solid var(--teal); padding: 12px 14px; font-size: 13px; color: #54706f; border-radius: 0 8px 8px 0; margin-bottom: 20px; }
.side-info { padding: 22px; }
.side-info h3 { margin: 0 0 12px; font-size: 16px; color: var(--navy); }
.side-info p { font-size: 13px; color: var(--muted); }
.image-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 260px; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: 10px; }
.image-picker img { width: 100%; height: 62px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.image-picker img.selected { border-color: var(--teal); }
.msg { padding: 11px 14px; border-radius: 9px; margin-bottom: 16px; font-size: 13px; display: none; }
.msg.error { display: block; background: #fff2f2; color: #a33; border: 1px solid #f2d5d5; }
.msg.success { display: block; background: #eef8f4; color: #1c725e; border: 1px solid #cfe9df; }

/* Auth */
.auth-wrap { max-width: 460px; margin: 54px auto; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 32px; }
.auth-card h1 { font-size: 24px; margin: 0 0 6px; color: var(--navy); text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 26px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.auth-foot a { color: var(--teal); font-weight: 600; }
.auth-card .btn { width: 100%; margin-top: 6px; }

/* Recharge */
.pkg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pkg { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; position: relative; transition: .2s; }
.pkg:hover, .pkg.selected { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-3px); }
.pkg .badge { position: absolute; right: 14px; top: -11px; background: var(--gold); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 999px; }
.pkg h3 { margin: 0 0 6px; font-size: 17px; color: var(--navy); }
.pkg .price { font-size: 32px; font-weight: 800; color: var(--teal); line-height: 1.3; }
.pkg .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.pkg p { font-size: 12px; color: var(--muted); min-height: 40px; margin: 10px 0 16px; }
.pkg ul { list-style: none; padding: 0; margin: 0 0 18px; font-size: 12px; color: #526779; }
.pkg li { padding: 5px 0 5px 18px; position: relative; }
.pkg li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.pay-box { margin-top: 26px; padding: 24px; }
.pay-box h3 { margin: 0 0 16px; font-size: 17px; color: var(--navy); }
.pay-methods { display: flex; gap: 12px; flex-wrap: wrap; }
.pay-method { border: 1px solid var(--line); border-radius: 10px; padding: 12px 20px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.pay-method.selected { border-color: var(--teal); background: #f0f8f6; color: var(--teal); }
.pay-summary { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.pay-summary b { font-size: 26px; color: #b07f31; }
.notes { max-width: 860px; margin: 0 auto; }
.note-card { padding: 28px 32px; }
.note-card h2 { font-size: 19px; color: var(--navy); margin: 26px 0 10px; }
.note-card h2:first-child { margin-top: 0; }
.note-card p, .note-card li { color: #526779; font-size: 14px; line-height: 1.9; }
.note-card ol { padding-left: 22px; }

/* User center */
.user-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.user-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 9px 16px; color: var(--navy); }
.user-tabs button.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.user-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.profile-card { padding: 22px; }
.profile-avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #e8f4f2, #f7efdc); display: grid; place-items: center; color: var(--teal); font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.profile-card h3 { margin: 0 0 4px; font-size: 17px; color: var(--navy); }
.profile-card p { margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.quota-box { background: #f4f8f7; border-radius: 10px; padding: 14px; font-size: 13px; }
.quota-box div { display: flex; justify-content: space-between; padding: 4px 0; }
.quota-box b { color: var(--teal); }
.my-list { padding: 20px; }
.my-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.my-item:last-child { border-bottom: 0; }
.my-item img { width: 96px; height: 68px; object-fit: cover; border-radius: 8px; flex: none; }
.my-item .info { flex: 1; min-width: 0; }
.my-item .info h4 { margin: 0 0 4px; font-size: 14px; color: var(--navy); }
.my-item .info p { margin: 0; font-size: 12px; color: var(--muted); }
.status { display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 999px; }
.status.approved { background: #eaf5f3; color: var(--teal); }
.status.pending { background: #fff6e3; color: #a2762f; }
.status.rejected { background: #fff0f0; color: #b05252; }
.reject-reason { color: #b05252; font-size: 12px; margin-top: 4px; }
.my-actions { display: flex; gap: 8px; }

/* Admin */
.admin-body { background: #eef2f5; }
.admin-layout { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 78px); }
.admin-side { background: var(--navy); color: #cbdbe4; padding: 22px 14px; }
.admin-side .logo { display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px; }
.admin-side .logo img { width: 34px; height: 34px; }
.admin-side .logo span { font-size: 13px; color: #fff; font-weight: 600; line-height: 1.3; }
.admin-side a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 9px; font-size: 14px; margin-bottom: 4px; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-side a svg { width: 18px; height: 18px; }
.admin-main { padding: 26px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-top h1 { font-size: 22px; margin: 0; color: var(--navy); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat b { display: block; font-size: 26px; color: var(--navy); margin-top: 4px; }
.stat small { color: var(--teal); font-size: 11px; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.admin-panel .btn { white-space: nowrap; }
.admin-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-toolbar button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 13px; font-size: 13px; }
.admin-toolbar button.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; background: #f8fafb; white-space: nowrap; }
td img { width: 62px; height: 44px; object-fit: cover; border-radius: 6px; }
td .title-cell { max-width: 260px; }
td .title-cell a { color: var(--navy); font-weight: 600; }
td .title-cell a:hover { color: var(--teal); }
td .title-cell small { display: block; color: var(--muted); font-size: 11px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-mask { position: fixed; inset: 0; background: rgba(12,26,40,.55); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 14px; width: min(680px, 100%); max-height: 88vh; overflow: auto; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal h3 { margin: 0 0 14px; color: var(--navy); font-size: 18px; }
.modal img { width: 100%; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.modal .close { float: right; border: 0; background: #f0f3f5; width: 30px; height: 30px; border-radius: 8px; font-size: 18px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px; font-size: 13px; }
.kv span { color: var(--muted); }
.admin-empty { text-align: center; padding: 40px; color: var(--muted); font-size: 13px; }

/* Footer */
.site-footer { background: #13283c; color: #c6d5df; padding: 50px 0 0; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 42px; height: 42px; }
.footer-brand strong { color: #fff; font-size: 16px; }
.footer-grid p { font-size: 13px; line-height: 1.9; margin: 0; color: #9eb2c0; }
.footer-grid h4 { color: #fff; font-size: 14px; margin: 4px 0 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 13px; }
.footer-grid li a:hover { color: var(--gold2); }
.footer-contact { font-size: 13px; line-height: 2; color: #9eb2c0; }
.footer-contact b { color: #fff; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; justify-content: space-between; font-size: 12px; color: #8ba1b0; }
.footer-bottom a { color: #8ba1b0; }
.footer-bottom a:hover { color: var(--gold2); }

/* Toast */
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow); z-index: 200; font-size: 13px; opacity: 0; transform: translateY(10px); transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

.cat-card > span svg { width: 16px; height: 16px; display: block; color: var(--gold); }
.main-nav.open { display: flex !important; position: absolute; left: 0; right: 0; top: 78px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; padding: 10px 14px; box-shadow: var(--shadow); }

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-inner { gap: 12px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .cat-grid, .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout, .form-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .admin-layout { grid-template-columns: 190px 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 28px); }
  .brand-text strong { font-size: 14px; max-width: 190px; }
  .brand-text small { display: none; }
  .header-actions .btn-ghost { display: none; }
  .hero { padding: 46px 0 54px; }
  .hero-stats { gap: 18px; }
  .cat-grid, .feature-grid, .steps, .post-grid, .pkg-grid, .related-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .filter-bar .search-mini { margin-left: 0; width: 100%; }
  .filter-bar input { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .user-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .detail-main, .form-panel, .auth-card { padding: 20px; }
}
