/* ============ GroupHub — 2 switchable themes: dark (default) / light ============ */
:root, [data-theme="dark"] {
  --bg: #0b141a; --bg2: #111d26; --card: #16242f; --card2: #1c2f3d;
  --text: #e8f0f2; --muted: #93a7b3; --line: #22333f;
  --brand: #0C8A03; --brand-d: #0C8A03; --accent: #4da3f7;
  --join: #0C8A03; --danger: #ef4444; --warn: #f59e0b;
  --headbg: #05080c; --hero-accent: #22c55e;
  --shadow: 0 8px 28px rgba(0,0,0,.35); --radius: 14px;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f6f8fa; --bg2: #ffffff; --card: #ffffff; --card2: #f0f4f6;
  --text: #16232b; --muted: #5b6e79; --line: #dde6ea;
  --brand: #0C8A03; --brand-d: #0C8A03; --accent: #1895f5;
  --join: #0C8A03; --danger: #d63638; --warn: #d97706;
  --headbg: #ffffff; --hero-accent: #0C8A03;
  --shadow: 0 8px 24px rgba(20,40,60,.10); --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; line-height: 1.6; }
[dir="rtl"] body, [dir="rtl"] { text-align: right; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.gh-skip { position: absolute; left: -9999px; }
.gh-wrap { max-width: 1140px; margin: 0 auto; padding: 0 18px; }

/* ---------- header ---------- */
.gh-header { position: sticky; top: 0; z-index: 50; background: var(--headbg); border-bottom: 1px solid var(--line); }
.gh-header-in { display: flex; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.gh-logo { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; font-size: 1.02rem; white-space: nowrap; }
.gh-logo:hover { text-decoration: none; }
.gh-logo-mark { font-size: 1.3rem; }
.gh-nav { margin-inline-start: auto; }
.gh-menu { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.gh-menu a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.gh-menu a:hover { background: var(--card2); text-decoration: none; }
.gh-header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.gh-nav + .gh-header-actions { margin-inline-start: 0; }
.gh-themes { display: flex; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.gh-theme-btn { border: 0; background: transparent; font-size: 1rem; padding: 4px 8px; border-radius: 999px; cursor: pointer; opacity: .55; }
.gh-theme-btn.gh-active { background: var(--brand); opacity: 1; }
.gh-langsel { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; font-size: .85rem; }
.gh-theme-btn { border: 0; background: transparent; font-size: .9rem; padding: 3px 6px; border-radius: 999px; cursor: pointer; opacity: .55; }
.gh-submit-top { padding: 8px 16px !important; font-size: .85rem !important; }
.gh-burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 1.2rem; padding: 4px 10px; cursor: pointer; }

/* ---------- buttons / badges ---------- */
.gh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 10px; font-weight: 700; border: 0; cursor: pointer; font-size: 1rem; }
.gh-btn:hover { text-decoration: none; filter: brightness(1.06); }
.gh-btn-primary { background: var(--brand-d); color: #fff; }
.gh-btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.gh-btn-join { background: var(--join); color: #fff; font-size: 1.15rem; padding: 14px 34px; border-radius: 999px; box-shadow: var(--shadow); }
.gh-btn-wide { width: 100%; }
.gh-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.gh-badge-live { background: rgba(29,168,81,.15); color: #2fd672; border: 1px solid rgba(29,168,81,.5); }
.gh-badge-dead { background: rgba(239,68,68,.12); color: var(--danger); border: 1px solid rgba(239,68,68,.45); }
.gh-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fd672; animation: gh-pulse 1.6s infinite; }
@keyframes gh-pulse { 50% { opacity: .35; } }

/* ---------- hero ---------- */
.gh-hero { position: relative; overflow: hidden; background: radial-gradient(ellipse 55% 45% at 50% 0%, rgba(12,138,3,.22), transparent 70%), linear-gradient(180deg, var(--bg2), var(--bg)); border-bottom: 1px solid var(--line); padding: 54px 0 36px; text-align: center; }
.gh-hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text); background: rgba(12,138,3,.12); border: 1px solid rgba(12,138,3,.38); padding: 7px 16px; border-radius: 999px; margin-bottom: 18px; }
.gh-hero-badge i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.gh-hero-title { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 6px; }
.gh-hero-sub { color: var(--hero-accent); margin: 0 0 24px; font-size: clamp(1.3rem, 3.4vw, 2rem); font-weight: 800; }
.gh-stats { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; margin-bottom: 24px; }
.gh-stat strong { display: block; font-size: 1.7rem; color: var(--brand); }
.gh-stat span { color: var(--muted); font-size: .9rem; }
.gh-search { display: flex; gap: 8px; max-width: 560px; margin: 0 auto 22px; }
.gh-search input { flex: 1; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 1rem; }
.gh-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
.gh-tab { background: var(--card); border: 1px solid var(--line); color: var(--text); padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: .92rem; }
.gh-tab.gh-tab-active { background: var(--brand-d); color: #fff; border-color: transparent; }
.gh-adult-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; cursor: pointer; }

/* ---------- trending ticker ---------- */
.gh-ticker { overflow: hidden; background: var(--headbg); border-bottom: 1px solid var(--line); }
.gh-ticker-track { display: flex; gap: 10px; width: max-content; padding: 9px 0; animation: gh-tick 45s linear infinite; }
.gh-ticker:hover .gh-ticker-track { animation-play-state: paused; }
@keyframes gh-tick { to { transform: translateX(-50%); } }
.gh-tick { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 5px 13px; font-size: .83rem; }
.gh-tick:hover { text-decoration: none; border-color: var(--brand); }
.gh-tick em { font-style: normal; color: var(--muted); font-size: .76rem; }
.gh-tick .gh-tick-n { color: var(--hero-accent); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .gh-ticker-track { animation: none; } }

/* ---------- sections / cards ---------- */
.gh-section { padding: 40px 0; }
.gh-section-alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gh-section h2 { margin: 0 0 20px; font-size: 1.5rem; }
.gh-section-head { display: flex; align-items: center; justify-content: space-between; }
.gh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.gh-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s; position: relative; }
.gh-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gh-card-link { display: flex; gap: 14px; padding: 16px; color: var(--text); align-items: center; }
.gh-card-link:hover { text-decoration: none; }
.gh-card-avatar { flex-shrink: 0; }
.gh-avatar-img, .gh-avatar-emoji { border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; }
.gh-card-body { min-width: 0; }
.gh-card-title { display: block; font-weight: 700; font-size: 1.02rem; margin-bottom: 6px; }
.gh-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .85rem; }
.gh-card .gh-badge { position: absolute; top: 10px; inset-inline-end: 10px; }
.gh-card[data-adult="1"] { display: none; }
body.gh-show-adult .gh-card[data-adult="1"] { display: block; }
.gh-loadmore-wrap { text-align: center; margin-top: 26px; }

/* ---------- chips ---------- */
.gh-chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.gh-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--text); font-size: .92rem; }
.gh-chip:hover { text-decoration: none; border-color: var(--brand); }
.gh-chip em { font-style: normal; color: var(--muted); font-size: .82rem; }
.gh-chip-ico { font-size: 1.1rem; }
.gh-chip-tag { color: var(--accent); }
.gh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- how / faq ---------- */
.gh-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; counter-reset: st; }
.gh-steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; counter-increment: st; }
.gh-steps li::before { content: counter(st); display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-d); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 10px; }
.gh-steps strong { display: block; margin-bottom: 6px; }
.gh-steps span { color: var(--muted); font-size: .93rem; }
.gh-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.gh-faq summary { cursor: pointer; font-weight: 700; }
.gh-faq p { color: var(--muted); margin: 10px 0 0; }

/* ---------- single group ---------- */
.gh-single { padding: 26px 18px 50px; max-width: 860px; }
.gh-crumb { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.gh-crumb-sep { margin: 0 4px; }
.gh-single-head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 24px; }
.gh-single-avatar { flex-shrink: 0; }
.gh-single-title h1 { margin: 0 0 10px; font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.gh-meta-row { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.gh-join-zone { text-align: center; margin: 26px 0; }
.gh-ad-banner { margin: 18px auto 0; max-width: 728px; }
.gh-clicks { color: var(--muted); font-size: .92rem; }
.gh-details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 20px; }
.gh-details summary { font-weight: 800; cursor: pointer; font-size: 1.1rem; }
.gh-meta-list { margin: 14px 0 0; }
.gh-meta-list > div { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.gh-meta-list dt { min-width: 120px; color: var(--muted); font-weight: 600; }
.gh-meta-list dd { margin: 0; }
.gh-prose { font-size: 1.05rem; }
.gh-safety { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.4); border-radius: 10px; padding: 12px 16px; margin: 22px 0; font-size: .93rem; }
.gh-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0; }
.gh-votes { display: flex; gap: 8px; }
.gh-voted { opacity: .6; pointer-events: none; }
.gh-report-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; max-width: 420px; }
.gh-report-form label { display: block; font-weight: 700; margin-bottom: 8px; }
.gh-report-form select { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); margin-bottom: 12px; }
.gh-related { margin-top: 40px; }
.gh-related h2 { font-size: 1.35rem; margin-bottom: 16px; }

/* ---------- verify ---------- */
.gh-verify { max-width: 620px; padding: 30px 18px 60px; }
.gh-verify-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.gh-verify-head { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.gh-verify-head h1 { margin: 0 0 4px; font-size: 1.4rem; }
.gh-verify-head p { margin: 0; color: var(--muted); }
.gh-checks { list-style: none; margin: 0 0 10px; padding: 0; }
.gh-checks li { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px dashed var(--line); color: var(--muted); }
.gh-checks li.gh-done { color: var(--text); }
.gh-check-ico { font-size: 1.25rem; width: 28px; text-align: center; }
.gh-checks li.gh-done .gh-check-ico { color: #2fd672; }
.gh-verify-result { margin-top: 24px; text-align: center; }
.gh-verify-note { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.gh-verify-dead { color: var(--danger); font-weight: 700; }

/* ---------- submit form ---------- */
.gh-submit-page { max-width: 640px; padding: 30px 18px 60px; }
.gh-submit-lead { color: var(--muted); }
.gh-form { display: grid; gap: 14px; margin-top: 22px; }
.gh-form label { display: grid; gap: 6px; font-weight: 600; }
.gh-form input[type=text], .gh-form input[type=url], .gh-form select, .gh-form textarea { padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 1rem; width: 100%; }
.gh-form input[type=file] { color: var(--muted); }
.gh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gh-form-note { color: var(--muted); font-size: .88rem; text-align: center; }
.gh-notice { border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.gh-notice-ok { background: rgba(29,168,81,.12); border: 1px solid rgba(29,168,81,.5); }
.gh-notice-err { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.45); }

/* ---------- archive / page ---------- */
.gh-archive, .gh-page { padding: 30px 18px 60px; }
.gh-archive-head { margin-bottom: 22px; }
.gh-archive-head h1 { margin: 0 0 6px; }
.gh-archive-ico { font-size: 2.4rem; }
.gh-archive-count { color: var(--muted); }
.gh-pagination { margin-top: 28px; text-align: center; }
.gh-pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; margin: 2px; color: var(--text); background: var(--card); }
.gh-pagination .current { background: var(--brand-d); color: #fff; border-color: transparent; }

/* ---------- footer ---------- */
/* ---------- footer ---------- */
.gh-footer { background: #05080c; color: #c4d2da; border-top: 1px solid #101a22; margin-top: 24px; }
.gh-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding: 44px 18px 10px; }
.gh-flogo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 1.35rem; margin-bottom: 12px; }
.gh-footer-note { color: #93a7b3; font-size: .92rem; line-height: 1.65; margin: 0 0 6px; max-width: 340px; }
.gh-fsupport { color: #93a7b3; font-size: .85rem; margin: 10px 0 0; }
.gh-fsupport strong { color: #c4d2da; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.gh-fsupport a { color: #22c55e; }
.gh-fbadges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gh-fbadges > span { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #93a7b3; border: 1px solid #1d2b35; border-radius: 999px; padding: 6px 12px; background: #0a1118; }
.gh-fcol strong { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.gh-fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.gh-fcol a { color: #93a7b3; font-size: .93rem; }
.gh-fcol a:hover { color: #22c55e; text-decoration: none; }
.gh-footer-bottom { border-top: 1px solid #101a22; margin-top: 34px; padding: 16px 0; color: #7d929d; font-size: .85rem; }
.gh-footer-bottom .gh-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.gh-footer-disc { color: #7d929d; }
/* ---------- SEO block ---------- */
.gh-seo-block { color: var(--muted); font-size: .95rem; line-height: 1.75; }
.gh-seo-block h2 { color: var(--text); font-size: 1.35rem; margin-bottom: 12px; }
.gh-seo-block p { margin: 0 0 12px; max-width: 900px; }

/* ---------- toast ---------- */
.gh-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--card2); color: var(--text); border: 1px solid var(--line); padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow); opacity: 0; transition: all .3s; z-index: 99; font-size: .92rem; }
.gh-toast.gh-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- mobile ---------- */

/* ---------- homepage: tags / guides / cities / origin (v1.5) ---------- */
.gh-sec-sub { color: var(--muted); text-align: center; margin: -6px 0 22px; }
.gh-center { text-align: center; margin-top: 22px; }
.gh-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.gh-tag { display: inline-flex; align-items: center; gap: 3px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: #2fd672; font-weight: 600; font-size: .9rem; }
.gh-tag:hover { text-decoration: none; border-color: var(--brand); }
.gh-tag-h { font-weight: 800; }
.gh-tag-n { color: var(--muted); font-weight: 400; font-size: .78rem; }
.gh-guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gh-guide { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--text); display: flex; flex-direction: column; }
.gh-guide:hover { text-decoration: none; border-color: var(--brand); }
.gh-guide-img { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #0b3d2e, #14532d); display: flex; align-items: center; justify-content: center; font-size: 3rem; overflow: hidden; }
.gh-guide-img img { width: 100%; height: 100%; object-fit: cover; }
.gh-guide-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gh-guide-cat { color: #2fd672; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gh-guide-t { font-size: 1rem; line-height: 1.4; }
.gh-guide-ex { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.gh-guide-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .8rem; margin-top: auto; padding-top: 10px; }
.gh-guide-meta em { color: #2fd672; font-style: normal; font-weight: 700; }
.gh-cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gh-city { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-weight: 600; font-size: .9rem; }
.gh-city:hover { text-decoration: none; border-color: var(--brand); }
.gh-city-n { margin-inline-start: auto; background: rgba(29,168,81,.15); color: #2fd672; border-radius: 999px; min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; padding: 0 7px; }
.gh-origin-h span { background: #1d4ed8; color: #fff; padding: 3px 12px; border-radius: 5px; font-size: 1.3rem; }
.gh-origin-card { border-inline-start: 3px solid #2fd672; background: var(--card); border-radius: 0 12px 12px 0; padding: 26px 30px; margin-top: 18px; font-size: 1.02rem; line-height: 1.8; }
.gh-origin-card p { margin: 0; }
.gh-origin-by { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.gh-origin-ava { width: 44px; height: 44px; border-radius: 50%; background: var(--card2); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; flex: none; }
.gh-origin-by small { color: var(--muted); }
@media (max-width: 860px) {
  .gh-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 10px 18px; }
  .gh-nav.gh-open { display: block; }
  .gh-menu { flex-direction: column; }
  .gh-burger { display: block; }
  .gh-header { position: sticky; }
  .gh-header-in { position: relative; }
  .gh-submit-top { display: none; }
  .gh-single-head { flex-direction: column; align-items: center; text-align: center; }
  .gh-meta-row { justify-content: center; }
  .gh-chips { justify-content: center; }
  .gh-form-row { grid-template-columns: 1fr; }
  .gh-footer-grid { grid-template-columns: 1fr; }
  .gh-verify-card { padding: 20px; }
  .gh-stats { gap: 20px; }
  .gh-guides { grid-template-columns: 1fr; }
  .gh-cities { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gh-search { flex-direction: column; }
  .gh-grid { grid-template-columns: 1fr; }
  .gh-meta-list > div { flex-direction: column; gap: 2px; }
  .gh-meta-list dt { min-width: 0; }
}
