:root {
  --bg: #f4f7fb;
  --ink: #17202a;
  --muted: #687282;
  --line: #dfe6ee;
  --panel: #ffffff;
  --aqua: #18c8b8;
  --red: #ed365b;
  --gold: #f2ae2e;
  --blue: #3557d4;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .topbar, [dir="rtl"] .brand, [dir="rtl"] .top-actions, [dir="rtl"] .notice, [dir="rtl"] .price-row, [dir="rtl"] .buy-box, [dir="rtl"] .wallet-summary, [dir="rtl"] .article-cta, [dir="rtl"] .home-tool { flex-direction: row-reverse; }
[dir="rtl"] .topbar nav { flex-direction: row-reverse; }
[dir="rtl"] .notice { border-left: 1px solid var(--line); border-right: 5px solid var(--gold); }
[dir="rtl"] th, [dir="rtl"] td { text-align: right; }
[dir="rtl"] .support-chat { right: auto; left: 24px; }
[dir="rtl"] .support-panel { right: auto; left: 0; }
[dir="rtl"] .support-close { right: auto; left: 14px; }
[dir="rtl"] .support-badge { right: auto; left: -6px; }
.topbar { height: 72px; display: flex; align-items: center; gap: 28px; padding: 0 28px; position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 190px; height: 54px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--aqua); color: white; font-weight: 800; }
.brand small { display: block; color: var(--muted); }
.brand-logo { width: 164px; height: 42px; display: block; object-fit: contain; }
.topbar nav { display: flex; gap: 18px; flex: 1; color: var(--muted); font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch select { width: auto; min-width: 116px; padding: 9px 10px; background: #fff; }
.btn, button { border: 0; border-radius: 6px; padding: 11px 16px; font-weight: 800; cursor: pointer; }
.primary { background: var(--red); color: white; }
.secondary { background: var(--aqua); color: white; }
.ghost { background: #eef3f8; color: var(--ink); }
.hero { min-height: 520px; display: grid; place-items: center; padding: 70px 24px; background: linear-gradient(rgba(20,28,38,.18), rgba(244,247,251,.9)), url('/assets/media/hero.jpg') center/cover; }
.hero-content { width: min(880px, 100%); text-align: center; color: white; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.eyebrow { text-transform: uppercase; letter-spacing: 0; font-weight: 800; }
h1 { font-size: 42px; margin: 10px 0 24px; }
.search { display: grid; grid-template-columns: 180px 1fr 120px; padding: 8px; background: white; border-radius: 8px; box-shadow: 0 20px 50px rgba(17,24,39,.18); text-shadow: none; }
.search select, .search input { border: 0; padding: 14px; font-size: 15px; min-width: 0; }
.search button { background: var(--ink); color: white; }
.notice, .category-strip, .section-head, .grid, .panel, footer, .product-detail, .admin-wrap { width: min(1180px, calc(100% - 40px)); margin: 22px auto; }
.notice { display: flex; gap: 14px; padding: 16px 18px; background: white; border-left: 5px solid var(--gold); border-radius: 8px; color: var(--muted); }
.notice strong { color: var(--ink); }
.category-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-strip a, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.category-strip a { padding: 18px; min-height: 100px; }
.category-strip span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.section-head { display: flex; justify-content: space-between; align-items: end; }
.section-head h2 { margin-bottom: 6px; }
.section-head p { color: var(--muted); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.product-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.card-body { padding: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.badges span { font-size: 12px; padding: 5px 8px; border-radius: 5px; background: #edf7f6; color: #087a70; font-weight: 800; }
.product-card h3 { font-size: 17px; line-height: 1.35; min-height: 70px; margin: 0 0 8px; }
.product-card p { color: var(--muted); min-height: 62px; line-height: 1.45; }
.price-row, .checkout-total, .line-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price-row strong { color: var(--red); font-size: 22px; }
.rail { position: fixed; right: 18px; top: 230px; display: grid; background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; z-index: 10; }
.rail a { padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 13px; text-align: center; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; padding-top: 26px; }
.product-detail > img { width: 100%; border-radius: 8px; aspect-ratio: 16/11; object-fit: cover; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.5; }
.buy-box { display: flex; justify-content: space-between; align-items: center; padding: 18px; margin: 20px 0; background: white; border: 1px solid var(--line); border-radius: 8px; }
.buy-box strong { font-size: 32px; color: var(--red); }
.buy-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.vip-hero { text-align: center; padding: 46px 24px; }
.vip-hero .lead { max-width: 720px; margin-left: auto; margin-right: auto; }
.vip-current { display: inline-block; padding: 10px 14px; border-radius: 999px; background: #edf7f6; color: #087a70; font-weight: 900; }
.vip-grid { width: min(1050px, calc(100% - 40px)); margin: 22px auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.vip-card { width: 100%; margin: 0; display: flex; flex-direction: column; gap: 13px; position: relative; }
.vip-card > strong { color: var(--blue); font-size: 36px; }
.vip-card > span { color: var(--muted); font-weight: 800; }
.vip-card ul { flex: 1; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.vip-card .btn { display: block; width: 100%; text-align: center; }
.featured-plan { border: 2px solid var(--aqua); }
.vip-popular { position: absolute; top: -12px; right: 16px; padding: 5px 9px; border-radius: 999px; background: var(--aqua); color: white !important; font-size: 11px; }
.vip-terms { max-width: 800px; line-height: 1.65; }
.vip-catalog { margin-bottom: 46px; }
.vip-catalog .product-card form .btn, .vip-catalog .product-card > .card-body > .btn { display: block; width: 100%; text-align: center; }
.vip-locked img { filter: grayscale(.65); opacity: .72; }
.vip-unlocked { border-color: #9de1da; box-shadow: 0 10px 28px rgba(24,200,184,.1); }
.panel { padding: 24px; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th, td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 13px; }
.checkout-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.line-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item.total { font-size: 22px; }
.pay-methods, .auth form, .admin-form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px; font: inherit; }
textarea { min-height: 110px; }
.auth { max-width: 460px; }
.error { color: var(--red); font-weight: 800; }
.success { color: #087a70; font-weight: 800; }
.download-list { display: grid; gap: 12px; }
.wallet-summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 16px 0; padding: 18px; background: #fbfdff; border: 1px solid var(--line); border-radius: 8px; }
.vip-account { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 16px 0; padding: 18px; background: linear-gradient(135deg, #f0f9ff, #fff8ed); border: 1px solid #cbdff4; border-radius: 8px; }
.vip-account span { display: block; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.vip-account strong { color: var(--blue); font-size: 18px; }
.wallet-summary span { display: block; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.wallet-summary strong { font-size: 30px; color: var(--blue); }
.wallet-balance { padding: 12px 14px; background: #fbfdff; border: 1px solid var(--line); border-radius: 8px; }
.recharge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.recharge-card { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; }
.recharge-card strong { font-size: 26px; color: var(--blue); }
.recharge-card span { color: var(--muted); font-weight: 800; }
.download-item { display: grid; grid-template-columns: 86px 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.download-item img { width: 86px; height: 58px; object-fit: cover; border-radius: 6px; }
.download-item span { display: block; color: var(--muted); margin-top: 5px; }
.admin-wrap { display: grid; grid-template-columns: 210px 1fr; gap: 18px; }
.admin-nav { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; align-content: start; gap: 8px; }
.admin-nav a { padding: 12px; border-radius: 6px; background: #f2f6fa; font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.stats div { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: #fbfdff; }
.stats strong { display: block; font-size: 28px; color: var(--blue); }
.stats span { color: var(--muted); }
.evidence-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.evidence-summary div { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; }
.evidence-summary span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.evidence-summary strong { overflow-wrap: anywhere; }
code { white-space: pre-wrap; overflow-wrap: anywhere; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }
.form-actions { display: flex; gap: 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.danger-zone { padding: 16px; border: 1px solid #ffd0d8; border-radius: 8px; background: #fff7f9; }
.site-footer { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 28px; color: var(--muted); padding: 36px 0 56px; border-top: 1px solid var(--line); }
.site-footer strong { color: var(--ink); }
.site-footer p { max-width: 360px; line-height: 1.6; }
.site-footer a { display: block; margin-top: 10px; font-size: 14px; }
.site-footer a:hover, .text-link:hover { color: var(--blue); }
.dark { color: var(--blue); text-shadow: none; }
.content-page { max-width: 860px; line-height: 1.75; }
.content-page h1 { margin-bottom: 12px; }
.content-page section { margin-top: 30px; }
.content-page section h2 { margin-bottom: 8px; }
.content-page section p { color: var(--muted); }
.content-updated { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.editorial-hero { text-align: center; padding: 48px 24px; }
.editorial-hero .lead { max-width: 720px; margin: 0 auto; }
.tutorial-grid { width: min(1180px, calc(100% - 40px)); margin: 22px auto 42px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tutorial-card { padding: 24px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.tutorial-card span { color: var(--blue); font-size: 13px; font-weight: 800; }
.tutorial-card h2 { line-height: 1.3; }
.tutorial-card p { color: var(--muted); line-height: 1.6; }
.text-link { color: var(--blue); font-weight: 800; }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 36px; padding: 20px; background: #f4f7fb; border-radius: 8px; }
.home-tool { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.home-tool h2, .home-tool p { margin: 6px 0; }
.home-tool p:last-child { color: var(--muted); line-height: 1.55; }
.checklist-hero { display: grid; grid-template-columns: 1fr 230px; gap: 36px; align-items: center; padding: 44px; }
.checklist-hero h1 { margin-bottom: 12px; }
.checklist-score { display: grid; gap: 8px; padding: 22px; border-radius: 10px; background: var(--ink); color: white; }
.checklist-score strong { font-size: 34px; }
.checklist-score > span { color: #c9d2dd; font-weight: 700; }
.checklist-progress { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.18); }
.checklist-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--aqua); transition: width .2s ease; }
.checklist-layout { width: min(1180px, calc(100% - 40px)); margin: 22px auto; display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }
.checklist-guide { width: 100%; margin: 0; position: sticky; top: 94px; }
.checklist-guide p, .checklist-group > p, .checklist-next p { color: var(--muted); line-height: 1.6; }
.checklist-groups { display: grid; gap: 18px; }
.checklist-group { width: 100%; margin: 0; position: relative; }
.checklist-group h2 { margin: 4px 0 8px; }
.checklist-number { color: var(--blue); font-size: 13px; font-weight: 900; }
.checklist-group label { grid-template-columns: 22px 1fr; align-items: start; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); line-height: 1.45; cursor: pointer; }
.checklist-group input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--aqua); }
.checklist-next { text-align: center; margin-bottom: 42px; }
.support-chat { position: fixed; right: 24px; bottom: 24px; z-index: 40; }
.support-chat > input { position: absolute; opacity: 0; pointer-events: none; }
.support-bubble { min-width: 154px; height: 58px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; background: var(--red); color: white; box-shadow: 0 16px 35px rgba(237,54,91,.35); font-weight: 900; cursor: pointer; position: relative; padding: 0 18px; }
.support-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); font-size: 11px; text-transform: uppercase; }
.support-label { font-size: 14px; }
.support-badge { position: absolute; top: -8px; right: -6px; min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); border: 2px solid white; font-size: 12px; }
.support-panel { position: absolute; right: 0; bottom: 78px; width: min(380px, calc(100vw - 36px)); display: none; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 22px 60px rgba(17,24,39,.2); }
.support-chat > input:checked ~ .support-panel { display: block; }
.support-panel h2 { margin: 0 28px 8px 0; }
.support-panel p { color: var(--muted); line-height: 1.45; margin: 0 0 12px; }
.support-panel form { display: grid; gap: 10px; }
.support-panel textarea { min-height: 96px; }
.support-close { position: absolute; top: 12px; right: 14px; color: var(--muted); font-weight: 900; cursor: pointer; }
.support-panel .success { color: #087a70; font-weight: 800; }
.support-live-messages { max-height: 260px; overflow-y: auto; display: grid; gap: 10px; padding: 10px; margin: 10px 0; background: #f6f9fc; border: 1px solid var(--line); border-radius: 10px; }
.support-live-line { max-width: 86%; padding: 10px 12px; border-radius: 12px; }
.support-live-line p { margin: 5px 0; color: var(--ink); }
.support-live-line small { color: var(--muted); font-size: 11px; }
.support-live-line.customer { justify-self: end; background: var(--red); color: white; }
.support-live-line.customer p, .support-live-line.customer small { color: white; }
.support-live-line.admin { justify-self: start; background: white; border: 1px solid var(--line); }
.support-live-empty { color: var(--muted); font-weight: 800; text-align: center; padding: 10px; }
.support-live-error { color: var(--red) !important; font-weight: 800; }
.support-alert { padding: 10px; border-radius: 8px; background: #fff7e8; color: var(--ink) !important; font-weight: 800; }
.support-history-link { color: var(--blue); font-weight: 800; }
.support-thread-list { display: grid; gap: 16px; margin-top: 18px; }
.support-thread { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fbfdff; }
.support-thread-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.support-thread-head span { color: var(--muted); font-weight: 800; }
.chat-line { max-width: 760px; padding: 12px; border-radius: 10px; margin: 10px 0; }
.chat-line p { margin: 6px 0; line-height: 1.45; }
.chat-line small { color: var(--muted); }
.chat-line.customer { background: white; border: 1px solid var(--line); }
.chat-line.admin { margin-left: auto; background: #edf7f6; border: 1px solid #cbeeea; }
.support-waiting { color: var(--muted); font-weight: 800; }
.support-reply-form { display: grid; gap: 8px; min-width: 220px; }
.support-reply-form textarea { min-height: 80px; }
.admin-live-chat { max-height: 240px; overflow-y: auto; display: grid; gap: 8px; min-width: 260px; margin: 8px 0; padding: 8px; background: #f6f9fc; border: 1px solid var(--line); border-radius: 8px; }
.translation-editor { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fc; }
.translation-editor h2, .translation-editor p { margin: 0; }
.translation-editor p { color: var(--muted); }
.translation-editor fieldset { display: grid; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.translation-editor legend { padding: 0 8px; color: var(--blue); font-weight: 900; }
.admin-chat-line { padding: 8px 10px; border-radius: 9px; background: white; border: 1px solid var(--line); }
.admin-chat-line p { margin: 4px 0; }
.admin-chat-line small { color: var(--muted); font-size: 11px; }
.admin-chat-line.admin { background: #edf7f6; border-color: #cbeeea; }
@media (max-width: 900px) {
  .topbar { height: auto; align-items: flex-start; flex-wrap: wrap; padding: 14px; }
  .topbar nav { flex-basis: 100%; overflow-x: auto; }
  .search, .product-detail, .checkout-grid, .admin-wrap, .checklist-hero, .checklist-layout { grid-template-columns: 1fr; }
  .category-strip, .grid, .stats, .evidence-summary, .tutorial-grid, .vip-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: repeat(2, 1fr); }
  .recharge-grid { grid-template-columns: repeat(2, 1fr); }
  .rail { display: none; }
  .support-chat { right: 16px; bottom: 16px; }
  .support-bubble { min-width: 58px; width: 58px; padding: 0; }
  .support-label { display: none; }
  .checklist-guide { position: static; }
  h1 { font-size: 32px; }
}
@media (max-width: 560px) {
  .category-strip, .grid, .tutorial-grid, .site-footer, .vip-grid { grid-template-columns: 1fr; }
  .recharge-grid { grid-template-columns: 1fr; }
  .download-item { grid-template-columns: 1fr; }
  .top-actions { flex-wrap: wrap; }
  .home-tool { align-items: stretch; flex-direction: column; }
  .checklist-hero { padding: 26px; }
}
