/*
Theme Name: TrafficLevels
Theme URI: https://kege1l.top
Author: TrafficLevels
Description: TrafficLevels — digital marketing agency theme with client accounts, orders, payment proofs, Telegram notifications and an admin dashboard. Settings: inc/config.php.
Version: 1.3.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trafficlevels
*/

:root {
  --bg: #0b0e14;
  --bg-2: #0f131c;
  --surface: #161b27;
  --surface-2: #11151f;
  --border: #232a3a;
  --border-2: #2c3446;
  --text: #e7ebf3;
  --muted: #9aa4b8;
  --soft: #c3cad8;
  --accent: #3b82f6;
  --accent-btn: #2f6fe6;
  --accent-btn-h: #255fd0;
  --ok: #10b981;
  --warn: #f59e0b;
  --err: #ef4444;
  --radius: 14px;
  --font: "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1; }
a { color: #8ab4ff; }
a:hover { color: #b3cdff; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: #fff; line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 600 14px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--accent-btn); color: #fff; }
.btn-primary:hover { background: var(--accent-btn-h); color: #fff; }
.btn-ghost { background: #121722; color: #fff; border-color: var(--border-2); }
.btn-ghost:hover { background: #1a2131; color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.text-link { color: #8ab4ff; text-decoration: none; font-weight: 600; font-size: 14px; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 14, 20, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; position: relative; } }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; }
.logo:hover { color: #fff; }
.logo-mark { color: var(--accent); font-size: 18px; line-height: 1; }
.main-nav { margin-left: 8px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.main-nav a:hover, .main-nav a.active { color: #fff; background: #161c29; }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--border-2); background: #121722; color: #fff; cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { order: 3; width: 100%; margin: 0; display: none; padding-bottom: 12px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { border-radius: 10px; }
}
@media (max-width: 520px) { .hide-xs { display: none; } .header-actions { gap: 6px; } }

/* ---------- Hero (home) ---------- */
.hero { padding: 64px 0 40px; background: radial-gradient(900px 400px at 20% -10%, rgba(59,130,246,.14), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-badge { display: inline-block; font-size: 12px; font-weight: 600; color: #b3cdff; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.3); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); letter-spacing: -.02em; margin-bottom: 16px; }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 28px; }
.center-actions { justify-content: center; text-align: center; margin-top: 24px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 24px; color: #fff; }
.hero-stats span { font-size: 13px; color: var(--muted); }
.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.hero-card-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.hero-card-top b { color: #8ab4ff; }
.hero-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hero-steps li { display: flex; justify-content: space-between; gap: 12px; padding: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; font-size: 15px; }
.hero-steps b { color: #8ab4ff; white-space: nowrap; }
.hero-steps b.ok { color: #34d399; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* ---------- Page hero ---------- */
.page-hero { padding: 56px 0 28px; text-align: center; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); }
.lead { color: var(--muted); font-size: 17px; max-width: 680px; margin: 0 auto 1em; }
.hero .lead { margin-left: 0; }
.tg-btn { margin-top: 8px; }

/* ---------- Sections & cards ---------- */
.features-section { padding: 28px 20px 40px; }
.section-title { text-align: center; font-size: 26px; margin: 8px 0 24px; }
.svc-grid, .features-grid, .tiers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.svc-card, .feature-card, .tier-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.svc-card h3, .feature-card h3 { font-size: 18px; margin: 12px 0 6px; }
.svc-card p, .feature-card p { color: var(--muted); margin: 0; font-size: 15px; }
.svc-icon-wrap, .tier-icon-wrap { width: 44px; height: 44px; border-radius: 12px; background: rgba(59,130,246,.12); color: #8ab4ff; display: flex; align-items: center; justify-content: center; }
.svc-icon { width: 24px; height: 24px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step span { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-btn); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; }
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
.cta-section { padding: 20px 20px 64px; }
.cta-box { background: linear-gradient(135deg, #14203a, #131826); border: 1px solid #2a3a63; border-radius: 20px; padding: 40px 24px; text-align: center; }
.cta-box p { color: var(--soft); max-width: 560px; margin: 0 auto 20px; }
.placeholder-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--soft); }
.placeholder-box p { margin: 0; }

/* ---------- Packages ---------- */
.pkg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-top: 8px; }
.pkg-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; }
.pkg-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pkg-flag { position: absolute; top: -12px; right: 20px; background: var(--accent-btn); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pkg-card h3 { font-size: 18px; margin-bottom: 6px; }
.pkg-price { font-size: 34px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.pkg-card ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pkg-card li { display: flex; gap: 8px; color: var(--soft); font-size: 15px; }
.pkg-check { width: 18px; height: 18px; flex: none; color: #34d399; margin-top: 3px; }
.pkg-note { color: var(--muted); font-size: 14px; text-align: center; margin: 18px auto 0; max-width: 760px; }

/* ---------- Order builder ---------- */
#order { padding: 40px 20px 64px; }
.promo-form { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; max-width: 860px; margin: 0 auto; }
.promo-step { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 22px 0 12px; }
.promo-step:first-of-type { margin-top: 0; }
.promo-step span { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-btn); color: #fff; font-size: 14px; align-items: center; justify-content: center; }
.promo-step small { color: var(--muted); font-weight: 400; font-size: 14px; }
.platform-grid, .pkg-grid, .type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.platform-opt, .pkg-opt, .type-opt { position: relative; cursor: pointer; }
.platform-opt input, .pkg-opt input, .type-opt input { position: absolute; opacity: 0; pointer-events: none; }
.platform-opt span, .pkg-opt span, .type-opt span { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--soft); font-weight: 600; font-size: 14px; }
.platform-opt span { border-left: 4px solid var(--plat-color, var(--accent)); }
.pkg-opt em { font-style: normal; color: var(--muted); font-weight: 400; font-size: 13px; }
.pkg-opt strong { color: #fff; font-size: 16px; }
.platform-opt input:checked + span, .pkg-opt input:checked + span, .type-opt input:checked + span { border-color: var(--accent); background: rgba(59,130,246,.12); color: #fff; }
.platform-opt input:focus-visible + span, .pkg-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.promo-url { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); font: 15px var(--font); }
textarea.promo-url { resize: vertical; }
.promo-total { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.promo-total-label { display: block; color: var(--muted); font-size: 13px; }
.promo-total strong { color: #fff; font-size: 17px; }

/* ---------- Payment ---------- */
.pay-section { padding-bottom: 64px; display: flex; flex-direction: column; gap: 20px; }
.pay-warning { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.35); color: #fcd9a0; border-radius: var(--radius); padding: 14px 18px; font-size: 15px; }
.pay-warning strong, .pay-warning b { color: #ffe1ad; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pay-card { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--pay-color, var(--accent)); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.pay-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pay-card-top h3 { font-size: 16px; margin: 0; }
.pay-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #1d2433; color: #fff; border: 1px solid var(--pay-color, var(--border-2)); }
.pay-label { font-size: 13px; color: var(--muted); }
.pay-value { display: block; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; color: var(--text); word-break: break-all; }
.order-summary { background: #121a2e; border: 1px solid #2a3a63; border-radius: var(--radius); padding: 18px 20px; }
.order-summary h3 { font-size: 17px; }
.order-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.order-row span { color: var(--muted); }
.order-row b { color: #fff; text-align: right; word-break: break-all; }
.order-summary p { margin: 12px 0 0; color: var(--soft); font-size: 14px; }
.pay-after h3 { font-size: 19px; }

/* ---------- Forms ---------- */
.form-section { padding: 0 20px 64px; }
.auth-form { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.pay-after.auth-form { max-width: 640px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--soft); font-weight: 600; }
.auth-form label small { font-weight: 400; color: var(--muted); }
.auth-form input[type=text], .auth-form input[type=email], .auth-form input[type=password], .auth-form input[type=number], .auth-form input[type=url], .auth-form select, .auth-form textarea,
.auth-form #loginform input[type=text], .auth-form #loginform input[type=password] {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); font: 15px var(--font);
}
.auth-form textarea { resize: vertical; }
.auth-form select { appearance: auto; }
.auth-form p { margin: 0; }
.auth-form #loginform { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.auth-form #loginform label { display: block; margin-bottom: 6px; }
.auth-form .login-remember label { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.auth-form .button-primary, .auth-form input[type=submit] { width: 100%; min-height: 48px; border-radius: 999px; border: 0; background: var(--accent-btn); color: #fff; font: 600 15px var(--font); cursor: pointer; }
.auth-form .button-primary:hover, .auth-form input[type=submit]:hover { background: var(--accent-btn-h); }
.form-alt { text-align: center; color: var(--muted); font-size: 14px; }
.form-notice { padding: 12px 16px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.form-notice.ok { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.35); color: #6ee7b7; }
.form-notice.err { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.35); color: #fca5a5; }
.form-notice.warn { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.35); color: #fcd9a0; }
.auth-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.auth-tabs a { flex: 1; text-align: center; min-height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.auth-tabs a.on { background: #222a3b; color: #fff; }
.reg-form { display: flex; flex-direction: column; gap: 14px; }

/* ---------- My Account ---------- */
.account-section { padding-bottom: 64px; display: flex; flex-direction: column; gap: 20px; }
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.order-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.order-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.order-card-top strong { color: #fff; }
.status-pill { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--st, var(--accent)); background: color-mix(in srgb, var(--st, #3b82f6) 16%, transparent); border: 1px solid color-mix(in srgb, var(--st, #3b82f6) 40%, transparent); }
.order-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: 14px; }
.order-card dt { color: var(--muted); }
.order-card dd { margin: 0; color: var(--text); word-break: break-all; }
.post-meta { color: var(--muted); font-size: 13px; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.post-grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card h3 { font-size: 18px; margin: 0; }
.post-card h3 a { color: #fff; text-decoration: none; }
.post-card h3 a:hover { color: #b3cdff; }
.post-card p { color: var(--muted); font-size: 15px; margin: 0 0 6px; flex: 1; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-2); display: inline-flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; }
.pagination .current { background: var(--accent-btn); border-color: var(--accent-btn); }

/* ---------- Articles & pages ---------- */
.article { max-width: 820px; padding-bottom: 48px; }
.article-head { padding: 40px 0 20px; display: flex; flex-direction: column; gap: 10px; }
.article-head h1 { font-size: clamp(28px, 4vw, 40px); margin: 0; }
.article-img { margin-bottom: 24px; }
.article-img img { border-radius: var(--radius); display: block; }
.prose { color: var(--soft); font-size: 17px; line-height: 1.75; }
.prose h2 { font-size: 24px; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: #fff; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; }
.prose code { background: var(--surface); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.prose details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.prose summary { cursor: pointer; color: #fff; font-weight: 600; }
.article-cta { background: #121a2e; border: 1px solid #2a3a63; border-radius: 18px; padding: 24px; margin: 32px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.article-cta h3, .article-cta p { width: 100%; margin: 0; }
.article-cta p { color: var(--soft); margin-bottom: 6px; }
.comments { margin-top: 24px; }
.comment-list { list-style: none; padding: 0; }
.comments input[type=text], .comments input[type=email], .comments input[type=url], .comments textarea { width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--border-2); border-radius: 10px; padding: 10px 12px; font: 15px var(--font); }

/* ---------- Pages of the previous version (kept working) ---------- */
.promo-rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; padding-bottom: 20px; }
.rate-card, .ref-card, .progress-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.rate-label, .rate-unit, .progress-label, .progress-hint, .tier-range, .xp-note { color: var(--muted); font-size: 14px; }
.rate-price, .xp-amount { color: #fff; font-size: 22px; font-weight: 700; }
.progress-track { height: 10px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); }
.progress-card-top { display: flex; justify-content: space-between; gap: 10px; }
.tiers-section, .xp-section, .ref-section { padding: 20px 20px 40px; }
.xp-table, .price-table { width: 100%; border-collapse: collapse; }
.xp-row td, .price-table td, .price-table th { border-bottom: 1px solid var(--border); padding: 10px; }
.price-table-wrap { overflow-x: auto; }
.ref-code { font: 600 18px ui-monospace, monospace; color: #fff; }
.ref-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(120px, 1fr)); gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin: 10px 0; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 14px; margin: 0 0 4px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 16px; padding-bottom: 20px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- WordPress basics ---------- */
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--muted); }
.sticky, .bypostauthor { }

@media (max-width: 600px) {
  .page-hero { padding: 36px 0 20px; }
  .promo-form, .auth-form { padding: 18px; }
  .hero-stats { gap: 20px; }
}

/* ---------- Wallet (My Account) ---------- */
.wallet { display: flex; flex-direction: column; gap: 16px; }
.wallet-title { font-size: 22px; margin: 8px 0 0; }
.wallet-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.wallet-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.wallet-card.main { background: linear-gradient(135deg, #14203a, #131826); border-color: #2a3a63; }
.wallet-card span { color: var(--muted); font-size: 14px; }
.wallet-card strong { font-size: 30px; color: #fff; letter-spacing: -.01em; line-height: 1.1; }
.wallet-card strong.pos { color: #6ee7b7; }
.wallet-card em { font-style: normal; color: var(--muted); font-size: 13px; }
.wallet-card .btn { align-self: flex-start; margin-top: 6px; }
.wallet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.wallet-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wallet-box h3 { font-size: 17px; margin: 0; }
.wallet-box label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--soft); font-weight: 600; }
.wallet-box label small { font-weight: 400; color: var(--muted); }
.wallet-box input, .wallet-box select, .wallet-box textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); font: 15px var(--font); }
.wallet-box textarea { resize: vertical; min-height: 64px; }
.wallet-box option:disabled { color: #6b7385; }
.wallet-empty { color: var(--muted); margin: 0; font-size: 15px; }
.wallet-urls { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wallet-urls li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.wallet-urls li:last-child { border-bottom: 0; }
.wallet-urls a { color: #fff; text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wallet-urls a:hover { color: #b3cdff; }
.wallet-urls span { color: var(--muted); white-space: nowrap; }
.wallet-table-wrap { overflow-x: auto; }
.wallet-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.wallet-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.wallet-table td { padding: 10px; border-bottom: 1px solid var(--border); color: var(--soft); vertical-align: middle; }
.wallet-table tr:last-child td { border-bottom: 0; }
.wallet-table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.wallet-table .pos { color: #6ee7b7; }
.wallet-table .neg { color: #fff; }
.wallet-table td.url { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-table td.url a { color: #8ab4ff; text-decoration: none; }
.wallet-type { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #1d2433; color: var(--soft); white-space: nowrap; }
.wallet-type.t-deposit, .wallet-type.t-refund { background: rgba(16,185,129,.14); color: #6ee7b7; }
.wallet-type.t-spend { background: rgba(59,130,246,.14); color: #8ab4ff; }
.wallet-type.t-adjust { background: rgba(245,158,11,.14); color: #fcd9a0; }
