/* Public, no-sign-in welcome dashboard inspired by the supplied portal design. */
.portal-welcome-section {
  padding: clamp(.8rem, 2.4vw, 2rem) 0 clamp(2rem, 4vw, 3.5rem);
  background:
    radial-gradient(ellipse at 7% 12%, rgba(38,164,193,.13), transparent 38%),
    radial-gradient(ellipse at 92% 88%, rgba(30,184,157,.10), transparent 34%),
    var(--bg-body, #f4f7fa);
}
.portal-welcome-frame {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(285px,.78fr);
  align-items: stretch;
  gap: clamp(.7rem,1.5vw,1.3rem);
  max-width: 1460px;
}
.portal-feature-panel {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 610px;
  overflow: hidden;
  padding: clamp(1.1rem,2.7vw,2.45rem);
  color: #f4fbff;
  border: 1px solid rgba(172,241,242,.28);
  border-radius: 29px;
  background: radial-gradient(ellipse at 12% 92%,rgba(20,191,176,.4),transparent 43%),linear-gradient(126deg,#209eaa 0%,#1b738d 42%,#173653 100%);
  box-shadow: 0 24px 60px rgba(11,52,75,.22);
}
.portal-feature-grid { position:absolute; inset:0; z-index:-1; opacity:.22; pointer-events:none; background-image:linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px); background-size:42px 42px; mask-image:linear-gradient(135deg,#000,transparent 83%); }
.portal-identity-row { display:flex; align-items:center; gap:.75rem; position:relative; }
.portal-mark { display:grid; place-items:center; width:48px; height:48px; flex:0 0 auto; color:#dffbff; border:1px solid rgba(255,255,255,.34); border-radius:15px; background:rgba(5,25,44,.26); font-size:1.25rem; }
.portal-identity-row>div:nth-child(2) { display:grid; gap:.14rem; }
.portal-identity-row strong { font:900 1.16rem var(--font-mono,monospace); letter-spacing:.09em; }
.portal-identity-row span:not(.portal-platform-tag) { color:rgba(239,250,255,.78); font:700 .64rem var(--font-mono,monospace); letter-spacing:.04em; }
.portal-platform-tag { display:inline-flex; align-items:center; gap:.4rem; margin-inline-start:auto; padding:.48rem .7rem; color:#f5ffff; background:rgba(4,29,49,.2); border:1px solid rgba(255,255,255,.23); border-radius:999px; font-size:.73rem; font-weight:700; }
.portal-platform-tag i { color:#9ff3e1; }
.portal-feature-copy { max-width:760px; margin:clamp(1.45rem,3.5vw,2.4rem) 0 1.2rem; }
.portal-eyebrow { display:inline-flex; gap:.42rem; align-items:center; margin-bottom:.6rem; color:#c6fff1; font-size:.84rem; font-weight:800; }
.portal-eyebrow i { color:#92f6d8; }
.portal-feature-copy h1 { max-width:740px; margin:0; color:#f4fbff; font-size:clamp(1.8rem,3.1vw,3.05rem); line-height:1.32; letter-spacing:-.025em; }
.portal-feature-copy h1 em { color:#c8fff0; font-style:normal; }
.portal-feature-copy p { max-width:690px; margin:.6rem 0 .85rem; color:rgba(240,248,255,.86); font-size:clamp(.88rem,1.12vw,1rem); line-height:1.8; }
.portal-open-status { display:inline-flex; align-items:center; gap:.48rem; color:#e7fbff; font-size:.77rem; font-weight:700; }
.portal-status-dot { width:9px; height:9px; flex:0 0 auto; border-radius:50%; background:#66edbd; box-shadow:0 0 0 4px rgba(102,237,189,.15); }
.portal-destination-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.55rem; position:relative; }
.portal-destination-card { display:flex; min-width:0; min-height:74px; align-items:center; gap:.68rem; padding:.72rem .78rem; color:#f5fbff; text-decoration:none; border:1px solid rgba(232,251,255,.17); border-radius:15px; background:rgba(8,35,58,.24); transition:background .2s ease,border-color .2s ease; }
.portal-destination-card:hover,.portal-destination-card:focus-visible { color:#fff; background:rgba(8,35,58,.4); border-color:rgba(198,255,240,.55); }
.portal-destination-card>i:first-child { display:grid; place-items:center; width:36px; height:36px; flex:0 0 auto; border-radius:11px; color:#e8ffff; background:rgba(223,250,255,.17); }
.portal-destination-card>span { display:grid; min-width:0; gap:.22rem; }
.portal-destination-card b { overflow:hidden; font-size:.83rem; text-overflow:ellipsis; white-space:nowrap; }
.portal-destination-card small { overflow:hidden; color:rgba(228,241,250,.78); font-size:.65rem; text-overflow:ellipsis; white-space:nowrap; }
.portal-destination-card .portal-card-arrow { margin-inline-start:auto; color:rgba(221,245,251,.46); font-size:.76rem; }
.portal-pulse-line { height:30px; margin:1rem 0 .5rem; opacity:.8; }
.portal-pulse-line svg { display:block; width:100%; height:100%; overflow:visible; }
.portal-pulse-line path { fill:none; stroke:#d7ffff; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:18 7 45 4; animation:portalPulseFlow 9s linear infinite; filter:drop-shadow(0 0 4px rgba(255,255,255,.42)); }
@keyframes portalPulseFlow { to { stroke-dashoffset:-210px; } }
.portal-stats-row { display:flex; align-items:center; gap:clamp(.6rem,1.5vw,1.3rem); flex-wrap:wrap; color:rgba(242,250,255,.86); font-size:.72rem; }
.portal-stats-row span { display:inline-flex; align-items:baseline; gap:.3rem; }
.portal-stats-row b { color:#fff; font-size:1.05rem; }
.portal-stats-row a { margin-inline-start:auto; color:#e7ffff; font-weight:800; text-decoration:none; }
.portal-stats-row a:hover { color:#bdf9e7; }
.portal-welcome-card { display:flex; min-width:0; flex-direction:column; padding:clamp(1rem,1.8vw,1.4rem); color:#eaf3fb; border:1px solid rgba(149,190,222,.17); border-radius:25px; background:linear-gradient(150deg,#111e31,#0d1727 80%); box-shadow:0 20px 48px rgba(11,26,43,.23); }
.portal-welcome-art { position:relative; min-height:195px; margin:-.2rem -.2rem 1.05rem; overflow:hidden; border-radius:17px; background:radial-gradient(ellipse at 46% 54%,color-mix(in srgb,var(--ce-teal) 18%,transparent),transparent 72%),var(--bg-surface-subtle); }
.portal-welcome-art img { display:block; width:100%; height:205px; object-fit:cover; object-position:50% 42%; opacity:1; filter:saturate(.96) brightness(.98); -webkit-mask-image:radial-gradient(ellipse at 50% 45%,#000 68%,rgba(0,0,0,.88) 86%,transparent 100%); mask-image:radial-gradient(ellipse at 50% 45%,#000 68%,rgba(0,0,0,.88) 86%,transparent 100%); }
.portal-image-wash { position:absolute; inset:0; pointer-events:none; background:linear-gradient(0deg,var(--bg-surface-subtle) 0%,color-mix(in srgb,var(--bg-surface-subtle) 48%,transparent) 24%,transparent 62%); }
.portal-image-chip { position:absolute; right:.72rem; bottom:.7rem; display:inline-flex; align-items:center; gap:.42rem; padding:.42rem .65rem; color:#eafaff; border:1px solid rgba(255,255,255,.18); border-radius:10px; background:rgba(8,21,36,.7); backdrop-filter:blur(10px); font-size:.69rem; font-weight:700; }
.portal-image-chip i { color:#5bd3cf; }
.portal-welcome-kicker { display:flex; align-items:center; gap:.55rem; color:#8edcf3; font-size:.78rem; font-weight:800; }
.portal-welcome-card h2 { margin:.5rem 0 .38rem; color:#f5f9ff; font-size:clamp(1.3rem,1.8vw,1.7rem); line-height:1.4; }
.portal-welcome-card>p { margin:0; color:#b8c7d9; font-size:.82rem; line-height:1.75; }
.portal-enter-button { display:flex; min-height:46px; align-items:center; justify-content:space-between; gap:.6rem; margin-top:1rem; padding:.65rem .9rem; color:#062238; border-radius:12px; background:linear-gradient(100deg,#37b5e4,#2ec8bd); font-size:.88rem; font-weight:900; text-decoration:none; transition:filter .2s ease; }
.portal-enter-button:hover { color:#062238; filter:brightness(1.08); }
.portal-secondary-link { align-self:flex-start; margin-top:.65rem; color:#c0dbea; font-size:.75rem; font-weight:700; text-decoration:none; }
.portal-secondary-link:hover { color:#fff; }
.portal-preferences { display:grid; grid-template-columns:1fr auto; align-items:center; gap:.6rem; margin-top:auto; padding-top:1rem; }
.portal-preferences>span { grid-column:1/-1; color:#9eb0c3; font-size:.68rem; font-weight:700; }
.portal-mode-button { display:inline-flex; align-items:center; gap:.42rem; min-height:36px; padding:.4rem .65rem; color:#e3edf6; border:1px solid rgba(183,213,240,.2); border-radius:10px; background:rgba(255,255,255,.045); font:700 .71rem var(--font-arabic,system-ui,sans-serif); cursor:pointer; }
.portal-mode-button:hover { border-color:rgba(89,209,203,.48); background:rgba(89,209,203,.12); }
.portal-mode-button i { color:#67d9d0; }
.portal-swatches { display:flex; gap:.35rem; }
.portal-swatches button { width:23px; height:23px; border:2px solid rgba(255,255,255,.78); border-radius:50%; background:var(--swatch); cursor:pointer; box-shadow:0 2px 7px rgba(0,0,0,.22); }
.portal-swatches button:hover { outline:2px solid var(--swatch); outline-offset:2px; }
.portal-safe-note { display:flex; align-items:center; gap:.42rem; margin-top:.85rem; padding-top:.72rem; color:#9caec1; border-top:1px solid rgba(180,211,238,.16); font-size:.67rem; }
.portal-safe-note i { color:#4dcdaa; }

/* English pages reverse reading direction and keep the welcome design aligned. */
.site-language-en { direction:ltr; }
.site-language-en [dir="rtl"] { direction:ltr !important; }
.site-language-en .subpage-back-nav i { transform:rotate(180deg); }
.site-language-toggle { min-height:38px; min-width:54px; padding:.35rem .72rem; color:var(--text-main,#12243a); border:1px solid var(--border-default,#d6e0e9); border-radius:11px; background:var(--bg-surface,#fff); font:700 .8rem var(--font-arabic,system-ui,sans-serif); cursor:pointer; transition:background .2s ease,color .2s ease; }
.site-language-toggle:hover { color:#fff; background:#087e83; border-color:#087e83; }
.navbar-actions .site-language-toggle { flex:0 0 auto; }
body>.site-language-toggle { position:fixed; z-index:1050; top:14px; left:14px; box-shadow:0 5px 18px rgba(6,20,37,.2); }

@media (max-width:1100px) {
  .portal-welcome-frame { grid-template-columns:minmax(0,1.2fr) minmax(260px,.84fr); }
  .portal-destination-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .portal-feature-panel { min-height:650px; }
}
@media (max-width:760px) {
  .portal-welcome-frame { grid-template-columns:minmax(0,1fr); max-width:700px; }
  .portal-feature-panel { min-height:auto; padding:clamp(1rem,4vw,1.5rem); border-radius:23px; }
  .portal-welcome-card { order:2; display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1fr); column-gap:1rem; }
  .portal-welcome-art { grid-row:span 5; min-height:210px; margin:0; }
  .portal-feature-copy { margin-top:1.35rem; }
  .portal-feature-copy h1 { font-size:clamp(1.75rem,7vw,2.6rem); }
  .portal-preferences { margin-top:.8rem; }
}
@media (max-width:520px) {
  .portal-welcome-section { padding-top:.65rem; }
  .portal-welcome-frame { width:calc(100% - .8rem); gap:.65rem; }
  .portal-feature-panel { padding:.95rem; border-radius:19px; }
  .portal-mark { width:40px; height:40px; border-radius:12px; }
  .portal-identity-row { gap:.55rem; }
  .portal-identity-row strong { font-size:.98rem; }
  .portal-identity-row span:not(.portal-platform-tag) { font-size:.51rem; }
  .portal-platform-tag { max-width:45%; padding:.4rem .5rem; font-size:.58rem; }
  .portal-feature-copy { margin:1.1rem 0 .9rem; }
  .portal-feature-copy p { font-size:.84rem; }
  .portal-open-status { align-items:flex-start; font-size:.68rem; }
  .portal-destination-grid { gap:.4rem; }
  .portal-destination-card { min-height:67px; gap:.43rem; padding:.5rem; border-radius:12px; }
  .portal-destination-card>i:first-child { width:30px; height:30px; border-radius:9px; font-size:.82rem; }
  .portal-destination-card b { font-size:.7rem; }
  .portal-destination-card small { font-size:.56rem; }
  .portal-destination-card .portal-card-arrow { display:none; }
  .portal-pulse-line { height:21px; margin:.7rem 0 .4rem; }
  .portal-stats-row { gap:.5rem .75rem; font-size:.64rem; }
  .portal-stats-row a { flex-basis:100%; margin-inline-start:0; }
  .portal-welcome-card { display:flex; padding:.9rem; border-radius:18px; }
  .portal-welcome-art { min-height:160px; margin:0 0 .8rem; }
  .portal-welcome-art img { height:165px; }
}
@media (prefers-reduced-motion:reduce) {
  .portal-pulse-line path,.portal-destination-card,.portal-enter-button,.site-language-toggle { animation:none; transition:none; }
}

.portal-identity-row strong { font-size:clamp(.64rem,1vw,.92rem); letter-spacing:.015em; }
.portal-preferences { grid-template-columns:minmax(0,1fr); gap:.42rem; }
.portal-swatches { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.34rem; }
.portal-theme-btn { min-height:41px; }
.portal-swatches .portal-theme-btn { width:auto; height:auto; padding:.26rem .12rem; border-radius:9px; background:var(--bg-surface-subtle,#f1f5f8); box-shadow:none; }
.portal-theme-btn .theme-preview-dots { height:12px; }
@media(max-width:760px) { .portal-preferences { grid-column:1/-1; } }
