/* الموقع العام */
body.site { background: var(--ground); }
.site-nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; background: rgba(15,42,33,.92); backdrop-filter: blur(8px); color: #fff; }
.site-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 20px; }
.site-logo:hover { color: #fff; }
.site-nav nav { display: flex; align-items: center; gap: 18px; }
.site-nav nav a:not(.btn) { color: var(--forest-ink); text-decoration: none; font-size: 15px; }
.site-nav nav a:not(.btn):hover { color: #fff; }
.site-hero { padding: 56px 24px 64px; min-height: auto; }
.hero-grid { position: relative; max-width: 1100px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 32px; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero-copy h1 { font-size: 46px; line-height: 1.25; }
.hero-copy h1 span { color: #F3D68C; }
.hero-copy p { margin: 0; font-size: 18px; color: var(--forest-ink); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.big { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn.ghost:hover { border-color: #fff; color: #fff; }
.site-hero .scene-art { width: 100%; max-width: 420px; justify-self: center; }
.sec { max-width: 1100px; margin: 0 auto; padding: 56px 24px 8px; display: flex; flex-direction: column; gap: 24px; }
.sec h2 { font-size: 30px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.step span { width: 40px; height: 40px; border-radius: 12px; background: var(--forest); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.step h3 { font-size: 19px; }
.step p { margin: 0; color: var(--muted); }
.search input { min-height: 46px; padding: 0 16px; border: 1px solid var(--field-line); border-radius: 12px; font: inherit; background: var(--surface); min-width: 240px; }
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.brand-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.brand-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,42,33,.1); border-color: var(--gold); color: var(--ink); }
.brand-card .lg { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: var(--green-tint); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 26px; color: var(--green-ink); }
.brand-card .lg img { width: 100%; height: 100%; object-fit: cover; }
.brand-card h3 { font-size: 18px; }
.brand-card p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brand-card .meta { margin-top: auto; font-size: 13px; color: var(--green-ink); font-weight: 600; }
.merchants { margin: 48px auto 0; background: var(--forest); color: #fff; border-radius: 28px; padding: 40px; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: 1052px; }
.merchants > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }
.merchants p { margin: 0; color: var(--forest-ink); font-size: 16px; }
.site-foot { text-align: center; padding: 40px 16px; color: var(--muted); font-size: 14px; }
/* صفحة العلامة */
.b-hero { background: var(--forest); color: #fff; padding: 40px 24px; }
.b-hero-in { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.b-hero .lg { width: 96px; height: 96px; border-radius: 24px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; color: var(--green-ink); border: 3px solid var(--gold); }
.b-hero .lg img { width: 100%; height: 100%; object-fit: cover; }
.b-hero h1 { font-size: 34px; }
.b-hero p { margin: 6px 0 0; color: var(--forest-ink); max-width: 620px; }
.b-hero .verified { display: inline-flex; gap: 6px; align-items: center; color: #F3D68C; font-size: 14px; font-weight: 600; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.product-card .im { aspect-ratio: 1; background: var(--green-tint); display: flex; align-items: center; justify-content: center; color: var(--green-ink); font-size: 34px; }
.product-card .im img { width: 100%; height: 100%; object-fit: cover; }
.product-card b { display: block; padding: 10px 12px; font-size: 14px; }
.city-group { display: flex; flex-direction: column; gap: 10px; }
.city-group h3 { font-size: 17px; display: flex; gap: 8px; align-items: center; }
.city-group h3 small { color: var(--muted); font-weight: 400; }
.sellers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.seller { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.seller .muted { font-size: 14px; }
.seller .links { display: flex; gap: 12px; font-size: 14px; margin-top: 4px; }
.tip-box { background: var(--amber-tint); border: 1px solid var(--amber-line); color: var(--amber-ink); border-radius: 16px; padding: 16px 18px; }
/* أرقام المنصة */
.stats-band { max-width: 1052px; margin: -36px auto 0; position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 40px rgba(15,42,33,.12); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-band div { padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.stats-band div + div { border-inline-start: 1px solid var(--line); }
.stats-band b { font-size: 32px; color: var(--forest); font-variant-numeric: tabular-nums; }
.stats-band span { font-size: 14px; color: var(--muted); }
.kicker { align-self: flex-start; font-size: 13px; font-weight: 700; color: #8A6A1C; background: #FBF1D6; border-radius: 999px; padding: 4px 12px; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.split-copy { display: flex; flex-direction: column; gap: 16px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 34px; color: var(--muted); }
.ticks li b { color: var(--ink); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-9' fill='none' stroke='%230F2A21' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.mock { background: radial-gradient(120% 90% at 50% 0%, #1C4436, #0F2A21 65%); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 14px; color: #fff; max-width: 360px; width: 100%; justify-self: center; box-shadow: 0 24px 50px rgba(15,42,33,.25); }
.mock-ok { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mock-ok b { font-size: 22px; } .mock-ok small { color: var(--forest-ink); }
.mock-reward { display: flex; align-items: center; gap: 12px; font-size: 30px; background: linear-gradient(135deg, #F3D68C, #D9B45A); color: #0F2A21; border-radius: 16px; padding: 12px 14px; }
.mock-reward b { display: block; font-size: 17px; } .mock-reward small { display: block; font-size: 13px; opacity: .8; }
.mock-stars { text-align: center; color: var(--gold); font-size: 26px; letter-spacing: 4px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s; }
.feat:hover { border-color: var(--gold); transform: translateY(-2px); }
.feat i { font-style: normal; font-size: 24px; width: 48px; height: 48px; border-radius: 14px; background: var(--forest); display: flex; align-items: center; justify-content: center; }
.feat h3 { font-size: 18px; } .feat p { margin: 0; color: var(--muted); font-size: 14px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }
.merchants { align-items: flex-start; gap: 28px; }
.join { flex: 1 1 420px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.join-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.join .field { color: var(--forest-ink); }
.join input, .join select { background: #fff; color: var(--ink); }
.join-ok { margin: 0; background: var(--green-tint); color: var(--green-ink); border-radius: 12px; padding: 12px; font-weight: 600; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
@media (max-width: 860px) {
  .stats-band { margin: -24px 16px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-band div:nth-child(3) { border-inline-start: 0; }
  .stats-band div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats-band b { font-size: 24px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .join-grid { grid-template-columns: minmax(0, 1fr); }
  .site-nav { padding: 10px 16px; } .site-nav nav a:not(.btn) { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero-copy { align-items: center; } .hero-copy h1 { font-size: 32px; } .hero-copy p { font-size: 16px; }
  .site-hero { padding: 32px 16px 40px; } .site-hero .scene-art { max-width: 260px; grid-row: 1; }
  .sec { padding: 40px 16px 8px; } .sec h2 { font-size: 24px; }
  .search input { min-width: 0; width: 100%; } .search { width: 100%; }
  .merchants { margin: 32px 16px 0; padding: 28px 20px; }
}

/* مساعد أصالة */
.ask-mock { flex: 1 1 360px; display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 18px; }
.g-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.g-msg.bot { align-self: flex-start; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-start-start-radius: 4px; }
.g-msg.me { align-self: flex-end; background: var(--forest); color: #fff; border-start-end-radius: 4px; }
.ask-mock .g-msg.me { background: var(--gold); color: var(--forest); }
.g-msg.typing { display: flex; gap: 4px; padding: 14px; }
.g-msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: gdot 1s infinite ease-in-out; }
.g-msg.typing i:nth-child(2) { animation-delay: .15s; } .g-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes gdot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.guide-fab { position: fixed; z-index: 40; bottom: 20px; left: 20px; display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--gold); background: var(--forest); color: #fff; font: inherit; font-size: 15px; cursor: pointer; box-shadow: 0 12px 30px rgba(15,42,33,.35); animation: fabIn .5s 1s both; }
.guide-fab span { font-size: 22px; }
.guide-fab:hover { background: #163B2E; }
@keyframes fabIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.guide-open .guide-fab { display: none; }
.guide-panel { position: fixed; z-index: 50; bottom: 20px; left: 20px; width: 380px; max-width: calc(100vw - 32px); height: min(620px, calc(100vh - 40px)); background: var(--ground); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 60px rgba(15,42,33,.3); display: flex; flex-direction: column; overflow: hidden; animation: pop .25s ease-out; }
.guide-panel[hidden] { display: none; }
.guide-panel header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--forest); color: #fff; }
.guide-panel header small { display: block; color: var(--forest-ink); font-size: 12px; }
.guide-panel header div:nth-child(2) { flex: 1; }
.g-av { width: 40px; height: 40px; border-radius: 12px; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.g-x { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; width: 40px; height: 40px; border-radius: 10px; }
.g-x:hover { background: rgba(255,255,255,.1); }
.g-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.g-chips { display: flex; gap: 8px; padding: 0 12px 10px; overflow-x: auto; flex-wrap: nowrap; }
.g-chips:empty { display: none; }
.g-chips button { flex: none; border: 1px solid var(--gold); background: #FFFBEF; color: #5A4300; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.g-chips button:first-child { background: var(--gold); color: var(--forest); font-weight: 600; }
.g-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.g-form input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: 12px; font: inherit; }
.g-form .btn { min-width: 48px; padding: 0; transform: scaleX(-1); }
@media (max-width: 560px) {
  .guide-fab { left: 16px; bottom: 16px; }
  .guide-panel { inset: 0; width: 100%; max-width: none; height: 100%; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .guide-fab, .guide-panel, .g-msg.typing i { animation: none; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* متاجر أصالة */
.site-nav nav a.nav-shop { color: #F3D68C; font-weight: 700; }
.shop-banner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; background: linear-gradient(135deg, #0F2A21, #16463A); color: #fff; border-radius: 28px; padding: 36px; text-decoration: none; border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.shop-banner:hover { color: #fff; border-color: var(--gold); transform: translateY(-2px); }
.shop-copy { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.shop-copy h2 { font-size: 32px; color: #F3D68C; }
.shop-copy p { margin: 0; color: var(--forest-ink); font-size: 16px; }
.shop-art { display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 18px; }
.shop-art .g-msg.me { background: var(--gold); color: var(--forest); }
.shop-cards { display: flex; gap: 10px; }
.shop-cards i { font-style: normal; flex: 1; aspect-ratio: 1; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 34px; }
@media (max-width: 860px) {
  .shop-banner { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  .shop-copy h2 { font-size: 26px; }
  .site-nav nav a.nav-shop { display: inline; }
}
/* صفحات الخصوصية والشروط */
.legal { max-width: 780px; margin: 0 auto; padding: 40px 20px 16px; display: flex; flex-direction: column; gap: 14px; line-height: 1.9; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 20px; margin-top: 14px; }
.legal p, .legal li { color: var(--ink); font-size: 16px; margin: 0; }
.legal ul { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal .upd { color: var(--muted); font-size: 14px; }
.site-foot a { color: inherit; }
