/* ===== المتغيرات ===== */
:root {
  --bg: #0b0b0f; --panel: #14141b; --panel-2: #1c1c26; --border: #2a2a38;
  --text: #f4f4f7; --muted: #a2a2b2;
  --accent: #ff8a00; --accent-2: #ffc43d;
  --green: #2ecc71; --red: #ff4d4d; --blue: #4aa3ff;
  --radius: 16px; --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --grad: linear-gradient(135deg, #ffc43d, #ff7a00);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Segoe UI", Tahoma, "Noto Kufi Arabic", Arial, sans-serif; line-height: 1.7;
  background-image: radial-gradient(circle at 80% -10%, rgba(255, 138, 0, .12), transparent 45%);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
.section { padding-block: 48px; }
.section-alt { background: rgba(255, 255, 255, .02); border-block: 1px solid var(--border); }
.section-title { text-align: center; margin-bottom: 28px; }
.section-title p { color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.skip-link { position: absolute; top: -60px; inset-inline-start: 8px; background: var(--accent); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; }

/* ===== الأزرار ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  background: var(--grad); color: #1a1000; font-weight: 700; border: 0; border-radius: 12px;
  padding: 11px 22px; font-size: 1rem; font-family: inherit; transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255, 138, 0, .35); filter: brightness(1.05); }
.btn-sm { padding: 7px 14px; font-size: .9rem; border-radius: 10px; }
.btn-lg { padding: 14px 28px; font-size: 1.1rem; }
.btn-block { display: flex; width: 100%; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--accent); }
.btn-outline:hover { background: rgba(255, 138, 0, .12); box-shadow: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); cursor: pointer; transition: border-color .2s; }
.icon-btn:hover { border-color: var(--accent); }

/* ===== الهيدر ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 15, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.logo { font-weight: 900; font-size: 1.15rem; letter-spacing: .5px; white-space: nowrap; }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.menu-toggle { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 10px; width: 42px; height: 42px; font-size: 1.3rem; cursor: pointer; }
.menu { display: none; position: absolute; top: 100%; inset-inline: 0; background: var(--panel); border-bottom: 1px solid var(--border); padding: 12px 16px 18px; box-shadow: var(--shadow); }
.menu.open { display: block; }
.menu ul { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.menu li a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; transition: background .2s, color .2s; }
.menu li a:hover, .menu li a[aria-current="page"] { color: var(--accent-2); background: rgba(255, 138, 0, .1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ===== Hero ===== */
.hero { padding-block: 44px 56px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: 2.1rem; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-img { border-radius: 24px; border: 1px solid var(--border); box-shadow: 0 0 60px rgba(255, 138, 0, .15); }
.eyebrow { display: inline-block; color: var(--accent-2); border: 1px solid rgba(255, 196, 61, .4); padding: 3px 14px; border-radius: 99px; font-size: .85rem; margin-bottom: 14px; }

/* ===== الكروت ===== */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.cards-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.account-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.account-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.card-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--panel-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.account-card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; } .card-body h3 a:hover { color: var(--accent-2); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 10px; }
.specs li { background: var(--panel-2); border-radius: 10px; padding: 6px 10px; font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }
.specs b { color: var(--text); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { color: var(--accent-2); font-size: 1.2rem; font-weight: 800; }
.price-lg { font-size: 2rem; margin: 8px 0 14px; }
.status-sold .card-img img { filter: grayscale(.7) brightness(.7); }
.status-sold { opacity: .92; }

/* ===== Badges ===== */
.badge { position: absolute; top: 10px; inset-inline-start: 10px; padding: 3px 12px; border-radius: 99px; font-size: .8rem; font-weight: 700; backdrop-filter: blur(6px); }
.info-head .badge, .info .badge { position: static; display: inline-block; }
.badge-available { background: rgba(46, 204, 113, .18); color: var(--green); border: 1px solid var(--green); }
.badge-sold { background: rgba(255, 77, 77, .18); color: var(--red); border: 1px solid var(--red); }
.badge-reserved { background: rgba(74, 163, 255, .18); color: var(--blue); border: 1px solid var(--blue); }
.tag-demo { position: absolute; top: 10px; inset-inline-end: 10px; background: rgba(0, 0, 0, .65); color: var(--muted); font-size: .72rem; padding: 2px 8px; border-radius: 6px; }
.info-head .tag-demo { position: static; margin-inline-start: 8px; }

/* ===== الإحصائيات والمميزات ===== */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 2.2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); }
.features, .steps { display: grid; gap: 16px; }
.feature .icon { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.feature p, .step p { color: var(--muted); margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #1a1000; font-weight: 900; margin-bottom: 10px; }
.cta { text-align: center; background: linear-gradient(135deg, rgba(255, 138, 0, .18), rgba(255, 196, 61, .05)); border: 1px solid rgba(255, 138, 0, .4); border-radius: 24px; padding: 40px 20px; }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq-list details { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; }
.faq-list details[open] { border-color: var(--accent); }
.faq-list summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent-2); font-size: 1.4rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--muted); padding-bottom: 14px; }

/* ===== صفحة الحسابات ===== */
.page-head { padding-block: 28px 8px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--accent-2); }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: .85rem; color: var(--muted); }
input, select, textarea {
  width: 100%; background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 1rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(255, 138, 0, .25); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.pagination button { min-width: 42px; height: 42px; padding-inline: 12px; background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-family: inherit; }
.pagination button:hover:not(:disabled) { border-color: var(--accent); }
.pagination button.active { background: var(--grad); color: #1a1000; font-weight: 800; border-color: transparent; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.state { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 16px; background: var(--panel); border: 1px dashed var(--border); border-radius: var(--radius); }
.state-error { color: var(--red); border-color: var(--red); }
.skeleton { min-height: 330px; background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ===== تفاصيل الحساب ===== */
.details-grid { display: grid; gap: 20px; margin-bottom: 20px; }
.details-grid > *, .details-text > * { min-width: 0; }
.gallery-main { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; border-radius: var(--radius); border: 1px solid var(--border); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 6px; }
.thumb { flex: 0 0 96px; padding: 0; background: none; border: 2px solid var(--border); border-radius: 10px; overflow: hidden; cursor: pointer; opacity: .75; }
.thumb.active, .thumb:hover { border-color: var(--accent); opacity: 1; }
.thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.spec-grid div { background: var(--panel-2); border-radius: 12px; padding: 10px 14px; }
.spec-grid dt { color: var(--muted); font-size: .85rem; } .spec-grid dd { margin: 0; font-weight: 800; font-size: 1.15rem; }
.details-text { display: grid; gap: 16px; }
.check-list li { padding-inline-start: 26px; position: relative; margin-bottom: 6px; }
.check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--green); font-weight: 900; }
.notice { padding: 12px 16px; border-radius: 12px; }
.notice-sold { background: rgba(255, 77, 77, .12); color: var(--red); border: 1px solid var(--red); }
.notice-reserved { background: rgba(74, 163, 255, .12); color: var(--blue); border: 1px solid var(--blue); }

/* ===== التواصل ===== */
.contact-grid { display: grid; gap: 20px; }
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; transition: border-color .2s, transform .2s; }
.contact-item:hover { border-color: var(--accent); transform: translateX(-4px); }
.contact-item .icon { font-size: 1.6rem; }
.contact-item small { display: block; color: var(--muted); direction: ltr; text-align: start; }
.error-msg { color: var(--red); font-size: .85rem; min-height: 1.2em; }
.form { display: grid; gap: 12px; }

/* ===== الفوتر ===== */
.site-footer { background: #08080b; border-top: 1px solid var(--border); padding-top: 40px; margin-top: 30px; }
.footer-grid { display: grid; gap: 24px; padding-bottom: 28px; }
.site-footer h3 { color: var(--accent-2); }
.site-footer li { margin-bottom: 6px; } .site-footer li a { color: var(--muted); } .site-footer li a:hover { color: var(--accent-2); }
.copyright { border-top: 1px solid var(--border); padding-block: 16px; text-align: center; color: var(--muted); font-size: .9rem; }

/* ===== عناصر مساعدة ===== */
.back-top { position: fixed; bottom: 18px; inset-inline-start: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--grad); color: #1a1000; font-size: 1.3rem; font-weight: 900; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 40; }
.back-top.show { opacity: 1; pointer-events: auto; }
#toast { position: fixed; bottom: 24px; inset-inline: 16px; margin-inline: auto; max-width: 420px; background: var(--panel-2); border: 1px solid var(--accent); border-radius: 12px; padding: 12px 18px; text-align: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); transition: .3s; pointer-events: none; z-index: 90; }
#toast.show { opacity: 1; transform: none; }
.center { text-align: center; }
.error-page { text-align: center; padding-block: 80px; }
.error-page .code { font-size: 6rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

[hidden] { display: none !important; }
.contact-item > span:last-child { min-width: 0; }
.contact-item small { overflow-wrap: anywhere; word-break: break-all; }
