/* “وهج الحضارات 2026” — isolated public auth + manual treatment. */
:root {
  --public-luxe-paper: #f8f2e3;
  --public-luxe-paper-bright: #fffaf0;
  --public-luxe-ink: #292820;
  --public-luxe-ink-soft: #676052;
  --public-luxe-gold: #a67c1a;
  --public-luxe-gold-light: #ddbc64;
  --public-luxe-rule: #d7c79f;
  --public-luxe-night: #1d1c18;
}

/* ── Auth shell ─────────────────────────────────────────────────────────── */
html:has(body.auth-luxe-2026) { background: var(--public-luxe-night); }

body.auth-luxe-2026 {
  min-width: 0;
  color: var(--public-luxe-ink);
  background: var(--public-luxe-night);
  font-family: Arial, Helvetica, sans-serif;
}

body.auth-luxe-2026 .wrapper {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  padding-block-end: 54px;
  background:
    linear-gradient(180deg, rgba(18, 17, 14, .1) 0, rgba(18, 17, 14, .78) 320px, var(--public-luxe-night) 620px),
    url("/assets/images/home-luxe-hero-2026.webp?v=f17ec467001f") center top / 1540px auto no-repeat,
    var(--public-luxe-night);
}

body.auth-luxe-2026 .wrapper::after {
  content: "";
  position: absolute;
  inset: 260px -15% auto;
  z-index: -1;
  height: 520px;
  background: radial-gradient(ellipse, rgba(180, 137, 39, .16), transparent 66%);
  pointer-events: none;
}

body.auth-luxe-2026 #msfilter,
body.auth-luxe-2026 .blackShadow { display: none; }

body.auth-luxe-2026 div#dynamic_header {
  height: 180px;
  background: none;
}

body.auth-luxe-2026 #dynamic_header .swHdr { height: 180px; }
body.auth-luxe-2026 #dynamic_header .swHdr--auth { --sw-title-size: 30px; }
body.auth-luxe-2026 #dynamic_header .swHdr__title { top: 118px; transform: translateX(-50%) scale(.88); }

body.auth-luxe-2026 div#header {
  position: absolute;
  inset: 16px 18px auto;
  z-index: 12;
  height: 56px;
  color: #fffaf0;
  background: rgba(31, 29, 24, .72);
  border: 1px solid rgba(238, 209, 129, .24);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .22);
  backdrop-filter: blur(16px) saturate(1.15);
}

body.auth-luxe-2026 #mtop { top: 0; height: 100%; }
body.auth-luxe-2026 #mtop .InBar { justify-content: flex-start; gap: 4px; height: 100%; padding-inline: 12px; }
body.auth-luxe-2026 #mtop .InBar a {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding-inline: 13px;
  color: rgba(255, 250, 240, .78);
  border-radius: 6px;
  text-shadow: none;
  transition: color .18s ease, background-color .18s ease;
}
body.auth-luxe-2026 #mtop .InBar a:first-child { color: var(--public-luxe-gold-light); }
body.auth-luxe-2026 #mtop .InBar a:hover,
body.auth-luxe-2026 #mtop .InBar a:focus-visible { color: #fff; background: rgba(255, 255, 255, .08); border-color: transparent; }

body.auth-luxe-2026 #mid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(290px, 380px) minmax(520px, 620px);
  gap: 0;
  box-sizing: border-box;
  width: min(calc(100% - 40px), 1000px);
  min-height: 590px;
  margin: 0 auto;
  padding: 0;
  background: var(--public-luxe-paper-bright);
  border: 1px solid rgba(222, 188, 99, .48);
  border-radius: 12px;
  box-shadow: 0 36px 86px rgba(0, 0, 0, .4);
}

body.auth-luxe-2026 #side_navi,
body.auth-luxe-2026 #side_info { display: none; }

body.auth-luxe-2026 .auth-luxe-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-column: 1;
  grid-row: 1;
  min-height: 100%;
  color: #fffaf0;
  background:
    linear-gradient(180deg, rgba(25, 24, 20, .18), rgba(25, 24, 20, .91)),
    url("/assets/images/home-luxe-village-2026.webp?v=77fdf7dc44ec") center / cover no-repeat;
  border-radius: 0 11px 11px 0;
}

body.auth-luxe-2026 .auth-luxe-story::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  box-shadow: inset 0 0 0 1px rgba(255, 246, 219, .14), inset 0 -160px 130px rgba(16, 15, 12, .5);
}

body.auth-luxe-2026 .auth-luxe-story__glow {
  position: absolute;
  inset: -30% -40% auto;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 221, 132, .3), transparent 60%);
  animation: publicLuxeGlow 7s ease-in-out infinite alternate;
}

body.auth-luxe-2026 .auth-luxe-story__content {
  position: absolute;
  inset: auto 28px 30px;
  z-index: 2;
}

.auth-luxe-eyebrow {
  color: var(--public-luxe-gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
}

body.auth-luxe-2026 .auth-luxe-story h2 {
  margin: 10px 0 8px;
  color: #fffaf0;
  font-family: "Sakkal Majalla", Arial, sans-serif;
  font-size: 38px;
  line-height: 1.12;
}

body.auth-luxe-2026 .auth-luxe-story p { margin: 0; color: rgba(255, 250, 240, .7); font-size: 13px; line-height: 1.85; }
body.auth-luxe-2026 .auth-luxe-story ul { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
body.auth-luxe-2026 .auth-luxe-story li { display: flex; align-items: center; gap: 9px; font-size: 12px; }
body.auth-luxe-2026 .auth-luxe-story li span { display: grid; place-items: center; width: 26px; height: 26px; color: var(--public-luxe-gold-light); border: 1px solid rgba(221, 188, 100, .45); border-radius: 50%; }

body.auth-luxe-2026 #content.login,
body.auth-luxe-2026 #content.signup {
  float: none;
  grid-column: 2;
  grid-row: 1;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: clamp(34px, 5vw, 62px) clamp(28px, 5vw, 56px);
  background: transparent;
}

body.auth-luxe-2026 #content .auth-head-card {
  width: 100%;
  margin: 0 0 28px;
  padding: 0 0 22px;
  background: transparent;
  border: 0;
  border-block-end: 1px solid var(--public-luxe-rule);
  border-radius: 0;
}

body.auth-luxe-2026 #content .auth-head-card h1 { gap: 18px; color: var(--public-luxe-ink); }
body.auth-luxe-2026 #content .signup-page-title { font-size: clamp(26px, 3vw, 35px); line-height: 1.25; }
body.auth-luxe-2026 #content .signup-server-label { padding: 6px 11px; color: #665931; background: #efe3c4; border-color: #d6bd7d; border-radius: 999px; }
body.auth-luxe-2026 #content .auth-head-card .auth-register-intro { margin-top: 10px; color: var(--public-luxe-ink-soft); font-size: 13px; font-weight: 400; line-height: 1.75; white-space: normal; }

body.auth-luxe-2026 #content .signup-main-form {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.auth-luxe-2026 #content #login_form,
body.auth-luxe-2026 #content #sign_input,
body.auth-luxe-2026 #content .auth-fields {
  display: grid;
  gap: 17px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

body.auth-luxe-2026 #content .auth-field { display: grid; gap: 7px; }
body.auth-luxe-2026 #content .auth-field > label { color: #514b3f; font-size: 12px; font-weight: 700; }

body.auth-luxe-2026 #content :where(input.text, input[type="email"], input[type="password"], input[type="number"]) {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 12px 14px;
  color: var(--public-luxe-ink);
  background: #fffdf8;
  border: 1px solid #cfc09c;
  border-radius: 7px;
  font-size: 15px;
  line-height: 22px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body.auth-luxe-2026 #content :where(input.text, input[type="email"], input[type="password"], input[type="number"]):focus {
  background: #fff;
  border-color: var(--public-luxe-gold);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(166, 124, 26, .15);
}

body.auth-luxe-2026 #content .auth-password-cell { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; width: 100%; }
body.auth-luxe-2026 #content .auth-password-cell input.text { width: 100%; height: 48px; }
body.auth-luxe-2026 #content .auth-password-toggle {
  width: 64px;
  height: 48px;
  color: #6a5b34;
  background: #efe3c4;
  border: 1px solid #d6bd7d;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
}
body.auth-luxe-2026 #content .auth-password-toggle:hover,
body.auth-luxe-2026 #content .auth-password-toggle[aria-pressed="true"] { color: #fff; background: var(--public-luxe-gold); }

body.auth-luxe-2026 #content .auth-forgot-toggle { justify-self: end; min-height: 44px; margin-top: -7px; padding: 8px 0; color: #78601f; background: transparent; border: 0; font-size: 12px; cursor: pointer; }
body.auth-luxe-2026 #content .auth-forgot-toggle:hover { color: #3f300c; text-decoration: underline; }

body.auth-luxe-2026 #content p.btn { margin: 22px 0 0; text-align: start; }
body.auth-luxe-2026 #content :where(.trav_buttons, button[type="submit"], input[type="submit"]) {
  min-width: 176px;
  min-height: 48px;
  height: auto;
  padding: 12px 24px;
  color: #fffaf0;
  background: linear-gradient(135deg, #bd9230, #846115);
  border: 1px solid #6e4e0d;
  border-radius: 7px;
  box-shadow: 0 9px 22px rgba(112, 78, 12, .2), inset 0 1px rgba(255, 246, 206, .35);
  font-size: 14px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
body.auth-luxe-2026 #content :where(.trav_buttons, button[type="submit"]):hover { background: linear-gradient(135deg, #c9a03a, #95701c); filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 13px 28px rgba(112, 78, 12, .25); }
body.auth-luxe-2026 #content :where(.trav_buttons, button[type="submit"]):active { transform: translateY(0); }

body.auth-luxe-2026 #content .auth-tribe-picker {
  min-width: 0;
  margin: 24px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
}
body.auth-luxe-2026 #content .auth-tribe-title { display: block; width: 100%; margin-block-end: 10px; color: #514b3f !important; font-size: 12px; font-weight: 700; }
body.auth-luxe-2026 #content .auth-tribe-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
body.auth-luxe-2026 #content .auth-tribe-grid label {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 62px;
  padding: 11px 9px;
  color: var(--public-luxe-ink);
  background: #fffdf8;
  border: 1px solid var(--public-luxe-rule);
  border-radius: 7px;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
body.auth-luxe-2026 #content .auth-tribe-grid label:hover { border-color: var(--public-luxe-gold); transform: translateY(-2px); }
body.auth-luxe-2026 #content .auth-tribe-grid label:has(input:checked) { background: #efe3c4; border-color: var(--public-luxe-gold); box-shadow: inset 0 0 0 1px var(--public-luxe-gold); }
body.auth-luxe-2026 #content .auth-tribe-grid input { position: absolute; inset: 8px auto auto 8px; accent-color: var(--public-luxe-gold); }
body.auth-luxe-2026 #content .auth-tribe-grid span { font-size: 12px; font-weight: 700; }
body.auth-luxe-2026 #content .auth-tribe-grid small { color: #817765; font-size: 10px; }

body.auth-luxe-2026 #content .checks { margin-top: 16px; padding: 13px 14px; background: #f3ead4; border-color: #dccb9f; }
body.auth-luxe-2026 #content .checks input { width: 18px; height: 18px; accent-color: var(--public-luxe-gold); }
body.auth-luxe-2026 #content .auth-forgot-panel,
body.auth-luxe-2026 #content .auth-classic-box,
body.auth-luxe-2026 #content .auth-login-result,
body.auth-luxe-2026 #content .error_box { margin-top: 18px; padding: 14px; background: #f6ecd4; border: 1px solid #dcc58e; border-radius: 7px; }
body.auth-luxe-2026 #content .auth-forgot-panel form { display: grid; gap: 10px; }
body.auth-luxe-2026 #content .auth-registration-closed { box-sizing: border-box; width: 100%; min-height: 300px; padding: 48px 30px; background: #f6ecd4; border: 1px solid #dcc58e; border-radius: 9px; }

/* ── Manual / help family ───────────────────────────────────────────────── */
body.public-manual-luxe-2026 {
  min-width: 0;
  margin: 0;
  color: var(--public-luxe-ink);
  background:
    linear-gradient(180deg, rgba(20, 19, 16, .05), #f4eddb 420px),
    url("/assets/images/home-luxe-hero-2026.webp?v=f17ec467001f") center top / 1540px auto no-repeat,
    #f4eddb;
  font-family: Arial, Helvetica, sans-serif;
}

body.public-manual-luxe-2026 > .Main {
  height: 260px;
  margin: 0;
  background: linear-gradient(180deg, transparent, rgba(24, 22, 18, .5));
}
body.public-manual-luxe-2026 > .Main .swHdr__title { top: 88px; transform: translateX(-50%) scale(.9); }

body.public-manual-luxe-2026 > .Bar {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  right: auto !important;
  left: auto !important;
  width: min(calc(100% - 28px), 820px) !important;
  max-width: none !important;
  min-height: 56px;
  margin: -28px auto 0 !important;
  transform: none !important;
  padding: 7px;
  color: #fffaf0;
  background: rgba(31, 29, 24, .84);
  border: 1px solid rgba(222, 188, 99, .3);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(29, 26, 20, .22);
  backdrop-filter: blur(15px);
}
body.public-manual-luxe-2026 > .Bar a { display: grid; place-items: center; min-height: 42px; padding: 0 15px; color: rgba(255, 250, 240, .78); border-radius: 6px; font-size: 13px; text-decoration: none; }
body.public-manual-luxe-2026 > .Bar a:hover,
body.public-manual-luxe-2026 > .Bar a:focus-visible { color: #fff; background: rgba(255, 255, 255, .08); }
body.public-manual-luxe-2026 > .Bar a.Sign { color: #221c0d; background: linear-gradient(135deg, #e1c36d, #ac8122); font-weight: 700; }

body.public-manual-luxe-2026 > .Body { box-sizing: border-box; width: min(calc(100% - 32px), 1080px); max-width: none; margin: 42px auto 80px; padding: 0; }
body.public-manual-luxe-2026 #content_Tribes {
  position: static;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(22px, 4vw, 48px);
  background: rgba(255, 250, 240, .96);
  border: 1px solid #d5c18d;
  border-radius: 11px;
  box-shadow: 0 28px 65px rgba(77, 60, 27, .16);
}

body.public-manual-luxe-2026 .gmenu { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-block-end: 26px; padding: 7px; background: #eee2c5; border: 1px solid #d8c28c; border-radius: 8px; font-size: 0; }
body.public-manual-luxe-2026 .gmenu a { display: grid; place-items: center; min-height: 40px; margin: 0; padding: 0 16px; color: #625638; border-radius: 6px; font-size: 13px; }
body.public-manual-luxe-2026 .gmenu a:hover { color: #3f310d; background: rgba(255, 255, 255, .52); }
body.public-manual-luxe-2026 .gmenu a.selected { color: #fff; background: linear-gradient(135deg, #ae8326, #7f5c12); }

body.public-manual-luxe-2026 .wholebox { margin-block-end: 24px; }
body.public-manual-luxe-2026 .wholebox > p { color: var(--public-luxe-ink-soft); font-size: 14px; line-height: 1.9; }
body.public-manual-luxe-2026 :where(#autocomplete, #category0, #category1) { box-sizing: border-box; width: min(100%, 620px) !important; min-height: 48px; padding: 11px 14px; color: var(--public-luxe-ink); background: #fffdf8; border: 1px solid #cab986; border-radius: 7px; font-size: 14px; }
body.public-manual-luxe-2026 :where(#autocomplete, #category0, #category1):focus { border-color: var(--public-luxe-gold); outline: 0; box-shadow: 0 0 0 3px rgba(166, 124, 26, .15); }
body.public-manual-luxe-2026 #acbox { width: min(100%, 620px) !important; margin: 0 auto; }
body.public-manual-luxe-2026 .help-autocomplete-item { box-sizing: border-box; width: 100%; min-height: 44px; padding: 11px 14px; background: #fff; border: 1px solid #e0d4b5; border-block-start: 0; cursor: pointer; }
body.public-manual-luxe-2026 .help-autocomplete-item:hover { background: #f1e4c3; }
body.public-manual-luxe-2026 .HHT { color: #9a741d; font-size: 14px; }
body.public-manual-luxe-2026 #qbox:not([hidden]) { margin-top: 18px; padding: 24px; background: #eee2c5; border: 1px solid #d5bd82; border-radius: 8px; }
body.public-manual-luxe-2026 #qq { margin: 0 0 10px; color: #3a321f; font-size: 18px; }
body.public-manual-luxe-2026 #qa { margin: 0; color: #5c5343; font-size: 14px; line-height: 2; }

body.public-manual-luxe-2026 .tribe-block { margin-block: 20px; padding: 22px; background: #fffdf8; border: 1px solid #dfd2b1; border-radius: 8px; }
body.public-manual-luxe-2026 .tribe-desc h2 { color: #856317; font-size: 23px; }
body.public-manual-luxe-2026 table.TBT { overflow: hidden; background: #fff; border-radius: 7px; }
body.public-manual-luxe-2026 table.TBT td { padding: 6px; border-color: #e6dcc5; }
body.public-manual-luxe-2026 table.TBT tr.cbg1 td { background: #eee2c5; }
body.public-manual-luxe-2026 ul.blist { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.public-manual-luxe-2026 ul.blist li { min-height: 54px; padding: 8px; background: #fffdf8; border: 1px solid #dfd2b1; border-radius: 7px; }
body.public-manual-luxe-2026 ul.blist a { color: #775a17; }
body.public-manual-luxe-2026 .upd { color: #8a806f; }

@keyframes publicLuxeGlow { from { opacity: .55; transform: translateX(4%); } to { opacity: 1; transform: translateX(-4%); } }

@media (max-width: 820px) {
  body.auth-luxe-2026 #mid { grid-template-columns: 1fr; width: min(calc(100% - 24px), 620px); }
  body.auth-luxe-2026 .auth-luxe-story { grid-column: 1; grid-row: 1; min-height: 220px; border-radius: 11px 11px 0 0; }
  body.auth-luxe-2026 .auth-luxe-story__content { inset: auto 22px 20px; }
  body.auth-luxe-2026 .auth-luxe-story h2 { margin-block: 5px; font-size: 29px; }
  body.auth-luxe-2026 .auth-luxe-story p,
  body.auth-luxe-2026 .auth-luxe-story ul { display: none; }
  body.auth-luxe-2026 #content.login,
  body.auth-luxe-2026 #content.signup { grid-column: 1; grid-row: 2; }
  body.public-manual-luxe-2026 ul.blist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  body.auth-luxe-2026 .wrapper { padding-block-end: 20px; background-position: 48% top; }
  body.auth-luxe-2026 div#dynamic_header { height: 168px; }
  body.auth-luxe-2026 #dynamic_header .swHdr { height: 168px; }
  body.auth-luxe-2026 #dynamic_header .swHdr--auth { --sw-title-size: 24px; }
  body.auth-luxe-2026 #dynamic_header .swHdr__title { top: 108px; transform: translateX(-50%) scale(.78); }
  body.auth-luxe-2026 div#header { inset: 8px 7px auto; height: 48px; }
  body.auth-luxe-2026 #mtop .InBar { justify-content: center; padding-inline: 3px; }
  body.auth-luxe-2026 #mtop .InBar a { min-height: 40px; padding-inline: 7px; font-size: 11px; }
  body.auth-luxe-2026 #mid { width: calc(100% - 14px); }
  body.auth-luxe-2026 .auth-luxe-story { min-height: 176px; }
  body.auth-luxe-2026 #content.login,
  body.auth-luxe-2026 #content.signup { padding: 28px 18px 32px; }
  body.auth-luxe-2026 #content .auth-head-card { margin-block-end: 22px; }
  body.auth-luxe-2026 #content .signup-page-title { font-size: 24px; }
  body.auth-luxe-2026 #content .auth-tribe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.auth-luxe-2026 #content :where(.trav_buttons, button[type="submit"], input[type="submit"]) { width: 100%; }

  body.public-manual-luxe-2026 > .Main { height: 190px; }
  body.public-manual-luxe-2026 > .Main .swHdr__title { top: 67px; transform: translateX(-50%) scale(.7); }
  body.public-manual-luxe-2026 > .Bar { top: 6px; width: calc(100% - 14px); margin-top: -23px; }
  body.public-manual-luxe-2026 > .Bar a { min-height: 40px; padding-inline: 8px; font-size: 11px; }
  body.public-manual-luxe-2026 > .Body { width: calc(100% - 14px); margin-block: 26px 44px; padding: 0; }
  body.public-manual-luxe-2026 #content_Tribes { padding: 16px 12px; }
  body.public-manual-luxe-2026 .gmenu { gap: 4px; }
  body.public-manual-luxe-2026 .gmenu a { min-height: 38px; padding-inline: 8px; font-size: 11px; }
  body.public-manual-luxe-2026 ul.blist { grid-template-columns: 1fr; }
  body.public-manual-luxe-2026 .tribe-block { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  body.auth-luxe-2026 *,
  body.auth-luxe-2026 *::before,
  body.auth-luxe-2026 *::after,
  body.public-manual-luxe-2026 *,
  body.public-manual-luxe-2026 *::before,
  body.public-manual-luxe-2026 *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  body.auth-luxe-2026 div#header,
  body.public-manual-luxe-2026 > .Bar { background: #292721; backdrop-filter: none; }
}
