/* JO UEFN Developer Program — home section, join page, apply form, banner.
   Everything reads the site's theme tokens (--accent, --bg-*, --text-*, --border), so it follows every theme,
   and uses logical properties so Arabic (RTL) mirrors without a second stylesheet. Gold is reserved for the
   primary action and a few key details; everything else stays in the charcoal / grey scale. */

.dp-wrap{ max-width:1200px; margin-inline:auto; padding-inline:28px; box-sizing:border-box; }
.dp-icon{ width:20px; height:20px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
[dir="rtl"] .dp-arrow{ transform:scaleX(-1); }

/* -------------------------------------------------------------- buttons --- */
.dp-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px;
  padding:0 26px; border-radius:12px; border:1px solid transparent; font:inherit; font-weight:700; font-size:15px;
  text-decoration:none; cursor:pointer; white-space:nowrap;
  transition:background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.dp-btn-primary{ background:var(--accent); color:var(--on-accent); }
.dp-btn-primary:hover{ background:var(--accent-2); transform:translateY(-1px); box-shadow:0 10px 28px -10px rgba(var(--accent-rgb),.6); }
.dp-btn-primary:active{ transform:translateY(0); }
.dp-btn-ghost{ background:transparent; color:var(--text-0); border-color:var(--border-hi); }
.dp-btn-ghost:hover{ border-color:var(--accent); color:var(--accent); }
.dp-btn[disabled], .dp-btn[aria-disabled="true"]{ opacity:.6; cursor:not-allowed; transform:none; box-shadow:none; }
.dp-btn:focus-visible, .dp-link:focus-visible, .dp-faq summary:focus-visible, .dp-chip input:focus-visible + span{
  outline:2px solid var(--accent); outline-offset:3px;
}
.dp-link{
  display:inline-flex; align-items:center; gap:8px; color:var(--text-1); text-decoration:none; font-weight:600; font-size:15px;
  padding:6px 2px; transition:color .2s ease;
}
.dp-link .dp-arrow{ width:18px; height:18px; transition:transform .2s ease; }
.dp-link:hover{ color:var(--text-0); }
.dp-link:hover .dp-arrow{ transform:translateX(3px); }
[dir="rtl"] .dp-link:hover .dp-arrow{ transform:scaleX(-1) translateX(3px); }
.dp-spinner{ width:16px; height:16px; border-radius:50%; border:2px solid currentColor; border-inline-end-color:transparent; animation:dp-spin .7s linear infinite; }
@keyframes dp-spin{ to{ transform:rotate(360deg); } }

/* ----------------------------------------------------- text blocks (shared) */
.dp-eyebrow{
  display:inline-flex; align-items:center; gap:10px; font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--accent);
}
[dir="rtl"] .dp-eyebrow{ letter-spacing:0; font-size:14px; }
.dp-eyebrow::before{ content:""; width:22px; height:1px; background:currentColor; }
.dp-title{ font-family:var(--font-display); font-size:clamp(34px,5vw,56px); line-height:1.08; margin:16px 0 0; color:var(--text-0); letter-spacing:.2px; }
[dir="rtl"] .dp-title{ font-size:clamp(30px,4vw,48px); line-height:1.35; letter-spacing:0; }
.dp-lead{ font-size:17px; line-height:1.75; color:var(--text-1); margin:18px 0 0; max-width:540px; }
.dp-actions{ display:flex; align-items:center; flex-wrap:wrap; gap:14px 22px; margin-top:30px; }
.dp-note{ margin:16px 0 0; font-size:13px; color:var(--text-2); }

/* ---------------------------------------------------------- home section --- */
.dp-home{ margin:64px auto 24px; }
.dp-home-grid{ display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:64px; align-items:center; }
.dp-home-copy{ position:relative; z-index:1; }

/* Sample profile preview. Illustrative only: no real people, ratings, sales or earnings. */
.dp-stage{ position:relative; isolation:isolate; padding:34px 30px 54px; }
.dp-stage::before{
  content:""; position:absolute; inset:-4% -8%; z-index:-1; pointer-events:none;
  background:
    radial-gradient(55% 55% at 62% 40%, rgba(var(--accent-rgb),.16), transparent 72%),
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 34px 34px;
  -webkit-mask-image:radial-gradient(closest-side, #000 35%, transparent 100%);
          mask-image:radial-gradient(closest-side, #000 35%, transparent 100%);
  opacity:.55;
}
.dp-profile{
  position:relative; background:var(--bg-2); border:1px solid var(--border); border-radius:18px; padding:24px;
  box-shadow:0 28px 60px -28px rgba(0,0,0,.65);
}
.dp-profile-head{ display:flex; align-items:center; gap:14px; }
.dp-avatar{
  width:54px; height:54px; border-radius:50%; background:var(--bg-3); border:1px solid var(--border-hi);
  display:grid; place-items:center; color:var(--text-2); flex:0 0 auto;
}
.dp-avatar .dp-icon{ width:26px; height:26px; }
.dp-profile-id{ min-width:0; flex:1 1 auto; }
.dp-profile-name{ font-family:var(--font-display); font-size:21px; line-height:1.2; color:var(--text-0); }
.dp-profile-role{ font-size:13px; color:var(--text-1); margin-top:3px; }
.dp-sample{
  flex:0 0 auto; align-self:flex-start; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--text-2); border:1px dashed var(--border-hi); border-radius:999px; padding:3px 10px;
}
[dir="rtl"] .dp-sample{ letter-spacing:0; font-size:12px; }
.dp-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.dp-tagchip{ font-size:12px; color:var(--text-1); border:1px solid var(--border-hi); border-radius:999px; padding:4px 12px; }
.dp-works-label{ margin:22px 0 10px; font-size:12px; color:var(--text-2); letter-spacing:.06em; text-transform:uppercase; }
[dir="rtl"] .dp-works-label{ letter-spacing:0; font-size:13px; }
.dp-works{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.dp-work{
  aspect-ratio:4/3; border-radius:12px; border:1px solid var(--border); background:var(--bg-3); position:relative; overflow:hidden;
  display:grid; place-items:center; color:var(--text-2);
}
.dp-work::before{ content:""; position:absolute; inset:0; background:linear-gradient(145deg, rgba(var(--accent-rgb),.10), transparent 60%); }
.dp-work .dp-icon{ width:30px; height:30px; position:relative; }
.dp-work:first-child{ color:var(--accent); }

.dp-codecard{
  position:absolute; inset-inline-start:-6px; bottom:6px; width:min(330px,68%);
  background:var(--bg-1); border:1px solid var(--border-hi); border-radius:14px; padding:14px 16px;
  box-shadow:0 22px 44px -18px rgba(0,0,0,.7);
}
.dp-codecard-head{ display:flex; align-items:center; gap:8px; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-2); margin-bottom:8px; }
.dp-codecard-head .dp-icon{ width:15px; height:15px; color:var(--accent); }
.dp-codecard pre{ margin:0; direction:ltr; text-align:left; font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; color:var(--text-1); white-space:pre; overflow:hidden; }
.dp-codecard .k{ color:var(--accent); }
.dp-mapchip{
  position:absolute; inset-inline-end:-4px; top:-4px; display:flex; align-items:center; gap:10px;
  background:var(--bg-1); border:1px solid var(--border-hi); border-radius:12px; padding:10px 14px; font-size:13px; font-weight:600; color:var(--text-0);
  box-shadow:0 18px 36px -16px rgba(0,0,0,.7);
}
.dp-mapchip .dp-icon{ color:var(--accent); }

/* ------------------------------------------------------------ join page --- */
.dp-page{ padding-bottom:20px; }
.dp-hero{ padding:72px 0 48px; }
.dp-section{ padding:72px 0 0; }
.dp-section-title{ font-family:var(--font-display); font-size:clamp(26px,3.4vw,36px); margin:0 0 8px; color:var(--text-0); }
[dir="rtl"] .dp-section-title{ line-height:1.4; }
.dp-section-sub{ color:var(--text-1); margin:0 0 36px; max-width:560px; line-height:1.7; }

.dp-benefits{ display:grid; grid-template-columns:repeat(3,1fr); }
.dp-benefit{ padding:6px 30px; }
.dp-benefit + .dp-benefit{ border-inline-start:1px solid var(--border); }
.dp-benefit:first-child{ padding-inline-start:0; }
.dp-benefit:last-child{ padding-inline-end:0; }
.dp-benefit-icon{ width:46px; height:46px; border-radius:12px; border:1px solid var(--border-hi); display:grid; place-items:center; color:var(--accent); margin-bottom:18px; }
.dp-benefit h3{ margin:0 0 8px; font-size:18px; color:var(--text-0); }
.dp-benefit p{ margin:0; color:var(--text-1); line-height:1.7; font-size:15px; }

.dp-steps{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,1fr); gap:0 28px; counter-reset:dp-step; }
.dp-step{ position:relative; padding-top:0; }
.dp-step-n{
  position:relative; z-index:1; width:44px; height:44px; border-radius:50%; background:var(--bg-0); border:1px solid var(--accent); color:var(--accent);
  display:grid; place-items:center; font-family:var(--font-display); font-weight:700; font-size:18px;
}
.dp-step:not(:last-child)::after{
  content:""; position:absolute; top:22px; inset-inline-start:56px; inset-inline-end:-16px; height:1px; background:var(--border-hi);
}
.dp-step h3{ margin:18px 0 6px; font-size:18px; color:var(--text-0); }
.dp-step p{ margin:0; color:var(--text-1); line-height:1.7; font-size:15px; max-width:300px; }

.dp-reqs{ display:grid; grid-template-columns:1fr 1fr; gap:48px; }
.dp-reqs h3{ margin:0 0 14px; font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--text-2); font-weight:700; }
[dir="rtl"] .dp-reqs h3{ letter-spacing:0; font-size:14px; }
.dp-reqs ul{ list-style:none; margin:0; padding:0; }
.dp-reqs li{ display:flex; gap:12px; align-items:flex-start; padding:12px 0; border-top:1px solid var(--border); color:var(--text-0); line-height:1.6; font-size:15px; }
.dp-reqs li:last-child{ border-bottom:1px solid var(--border); }
.dp-reqs li .dp-icon{ width:18px; height:18px; margin-top:3px; color:var(--accent); }
.dp-reqs .opt li{ color:var(--text-1); }
.dp-reqs .opt li .dp-icon{ color:var(--text-2); }

.dp-faq{ max-width:780px; }
.dp-faq details{ border-top:1px solid var(--border); }
.dp-faq details:last-child{ border-bottom:1px solid var(--border); }
.dp-faq summary{
  list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:20px 2px; font-weight:600; font-size:16px; color:var(--text-0); transition:color .2s ease;
}
.dp-faq summary::-webkit-details-marker{ display:none; }
.dp-faq summary:hover{ color:var(--accent); }
.dp-faq summary .dp-icon{ width:18px; height:18px; color:var(--text-2); transition:transform .2s ease; }
.dp-faq details[open] summary .dp-icon{ transform:rotate(180deg); }
.dp-faq details p{ margin:0; padding:0 2px 22px; color:var(--text-1); line-height:1.75; max-width:640px; }

.dp-final{ margin-top:88px; padding:64px 0; text-align:center; border-top:1px solid var(--border); position:relative; isolation:isolate; }
.dp-final::before{ content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(45% 80% at 50% 0%, rgba(var(--accent-rgb),.10), transparent 75%); pointer-events:none; }
.dp-final h2{ font-family:var(--font-display); font-size:clamp(28px,4vw,42px); margin:0; color:var(--text-0); }
[dir="rtl"] .dp-final h2{ line-height:1.4; }
.dp-final .dp-actions{ justify-content:center; }

/* ------------------------------------------------------- developers banner */
.dp-banner{
  display:flex; align-items:center; justify-content:space-between; gap:20px 28px; flex-wrap:wrap;
  max-width:1200px; margin:22px auto 0; padding:20px 26px; box-sizing:border-box;
  background:var(--bg-2); border:1px solid var(--border); border-radius:16px; position:relative; overflow:hidden;
  width:calc(100% - 56px);
}
.dp-banner::before{ content:""; position:absolute; inset-block:0; inset-inline-start:0; width:3px; background:var(--accent); }
.dp-banner h2{ margin:0; font-family:var(--font-display); font-size:24px; color:var(--text-0); }
[dir="rtl"] .dp-banner h2{ line-height:1.4; }
.dp-banner p{ margin:4px 0 0; color:var(--text-1); font-size:15px; }
.dp-banner .dp-btn{ min-height:44px; padding:0 22px; }

/* ----------------------------------------------------------- apply page --- */
.dp-apply{ max-width:760px; margin:0 auto; padding:48px 24px 80px; box-sizing:border-box; }
.dp-apply-head h1{ font-family:var(--font-display); font-size:clamp(30px,4.4vw,42px); margin:14px 0 0; color:var(--text-0); line-height:1.15; }
[dir="rtl"] .dp-apply-head h1{ line-height:1.4; }
.dp-apply-head p{ color:var(--text-1); line-height:1.7; margin:12px 0 0; max-width:560px; }

.dp-status-card{ margin-top:34px; border:1px solid var(--border); border-radius:18px; background:var(--bg-2); padding:30px; }
.dp-status-pill{
  display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:700; border-radius:999px; padding:5px 14px;
  border:1px solid var(--border-hi); color:var(--text-1);
}
.dp-status-pill.pending, .dp-status-pill.more_info_required{ color:var(--accent); border-color:rgba(var(--accent-rgb),.5); background:rgba(var(--accent-rgb),.08); }
.dp-status-pill.approved{ color:var(--success); border-color:rgba(61,255,160,.4); }
.dp-status-pill.rejected{ color:var(--accent-danger); border-color:rgba(255,92,122,.45); }
.dp-status-card h2{ font-family:var(--font-display); font-size:26px; margin:16px 0 8px; color:var(--text-0); }
.dp-status-card p{ color:var(--text-1); line-height:1.7; margin:0; }
.dp-admin-note{ margin-top:18px; padding:14px 16px; border-inline-start:2px solid var(--accent); background:var(--bg-1); border-radius:0 10px 10px 0; color:var(--text-0); line-height:1.7; white-space:pre-wrap; }
[dir="rtl"] .dp-admin-note{ border-radius:10px 0 0 10px; }
.dp-admin-note small{ display:block; color:var(--text-2); font-size:12px; margin-bottom:4px; }

.dp-track{ list-style:none; margin:28px 0 0; padding:0; display:grid; gap:0; }
.dp-track li{ position:relative; display:flex; gap:16px; padding-bottom:22px; }
.dp-track li:last-child{ padding-bottom:0; }
.dp-track li:not(:last-child)::before{ content:""; position:absolute; inset-inline-start:15px; top:32px; bottom:2px; width:1px; background:var(--border-hi); }
.dp-track-dot{ width:32px; height:32px; border-radius:50%; border:1px solid var(--border-hi); display:grid; place-items:center; color:var(--text-2); flex:0 0 auto; background:var(--bg-2); }
.dp-track-dot .dp-icon{ width:16px; height:16px; }
.dp-track li.done .dp-track-dot{ background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
.dp-track li.now .dp-track-dot{ border-color:var(--accent); color:var(--accent); box-shadow:0 0 0 4px rgba(var(--accent-rgb),.14); }
.dp-track b{ display:block; color:var(--text-0); font-size:15px; }
.dp-track span{ color:var(--text-1); font-size:14px; line-height:1.6; }
.dp-track li.todo b{ color:var(--text-1); font-weight:600; }

.dp-gate{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:40px; align-items:start; margin-top:34px; }
.dp-gate-panel{ border:1px solid var(--border); border-radius:18px; background:var(--bg-2); padding:26px; }
.dp-gate-panel h2{ font-family:var(--font-display); margin:0 0 6px; font-size:22px; color:var(--text-0); }
.dp-gate-panel .form-panel{ background:transparent; border:0; padding:0; max-width:none; }

/* form */
.dp-form{ margin-top:38px; }
.dp-form fieldset{ border:0; padding:0; margin:0 0 42px; min-inline-size:0; }
.dp-form legend{ padding:0; font-family:var(--font-display); font-size:22px; color:var(--text-0); width:100%; }
.dp-legend-sub{ margin:4px 0 0; color:var(--text-2); font-size:14px; }
.dp-field{ margin-top:22px; }
.dp-label{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; font-weight:600; font-size:15px; color:var(--text-0); margin-bottom:6px; }
.dp-tag{ font-size:12px; font-weight:600; color:var(--text-2); }
.dp-tag.req{ color:var(--accent); }
.dp-help{ margin:0 0 8px; color:var(--text-2); font-size:13px; line-height:1.55; }
.dp-input, .dp-textarea{
  width:100%; box-sizing:border-box; background:var(--bg-1); color:var(--text-0); border:1px solid var(--border); border-radius:12px;
  padding:13px 15px; font:inherit; font-size:15px; line-height:1.55; transition:border-color .2s ease, box-shadow .2s ease;
}
.dp-textarea{ resize:vertical; min-height:108px; }
.dp-input:hover, .dp-textarea:hover{ border-color:var(--border-hi); }
.dp-input:focus, .dp-textarea:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(var(--accent-rgb),.18); }
.dp-input[aria-invalid="true"], .dp-textarea[aria-invalid="true"]{ border-color:var(--accent-danger); }
.dp-input[aria-invalid="true"]:focus, .dp-textarea[aria-invalid="true"]:focus{ box-shadow:0 0 0 3px rgba(255,92,122,.18); }
.dp-error{ margin:7px 0 0; font-size:13px; color:var(--accent-danger); display:flex; gap:6px; align-items:center; }
.dp-error[hidden]{ display:none; }
.dp-chips-pick{ display:flex; flex-wrap:wrap; gap:10px; }
.dp-chip{ position:relative; cursor:pointer; }
.dp-chip input{ position:absolute; opacity:0; inset:0; margin:0; cursor:pointer; }
.dp-chip span{ display:inline-flex; align-items:center; padding:9px 18px; border:1px solid var(--border-hi); border-radius:999px; color:var(--text-1); font-size:14px; font-weight:600; transition:background-color .2s ease, border-color .2s ease, color .2s ease; }
.dp-chip:hover span{ border-color:var(--text-2); color:var(--text-0); }
.dp-chip input:checked + span{ border-color:var(--accent); color:var(--accent); background:rgba(var(--accent-rgb),.10); }

.dp-drop{ display:flex; align-items:center; gap:14px; border:1px dashed var(--border-hi); border-radius:12px; padding:16px 18px; cursor:pointer; color:var(--text-1); transition:border-color .2s ease, background-color .2s ease; }
.dp-drop:hover{ border-color:var(--accent); background:rgba(var(--accent-rgb),.05); }
.dp-drop input{ position:absolute; width:1px; height:1px; opacity:0; }
.dp-drop:focus-within{ border-color:var(--accent); box-shadow:0 0 0 3px rgba(var(--accent-rgb),.18); }
.dp-thumbs{ display:grid; grid-template-columns:repeat(auto-fill,minmax(96px,1fr)); gap:10px; margin-top:12px; }
.dp-thumbs:empty{ display:none; }
.dp-thumb{ position:relative; aspect-ratio:1; border-radius:10px; overflow:hidden; border:1px solid var(--border); background:var(--bg-1); }
.dp-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.dp-thumb button{
  position:absolute; top:6px; inset-inline-end:6px; width:26px; height:26px; border-radius:50%; border:0; cursor:pointer;
  background:rgba(0,0,0,.65); color:#fff; font-size:15px; line-height:1; display:grid; place-items:center; transition:background-color .2s ease;
}
.dp-thumb button:hover{ background:var(--accent-danger); }

.dp-submit-row{ display:flex; align-items:center; flex-wrap:wrap; gap:16px 22px; padding-top:6px; }
.dp-form-error{ margin:0 0 22px; padding:14px 16px; border:1px solid rgba(255,92,122,.45); border-radius:12px; background:rgba(255,92,122,.08); color:var(--text-0); font-size:14px; line-height:1.6; }
.dp-form-error[hidden]{ display:none; }
.dp-skeleton{ height:220px; border-radius:18px; background:linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)); background-size:200% 100%; animation:dp-shimmer 1.4s linear infinite; margin-top:34px; }
@keyframes dp-shimmer{ to{ background-position:-200% 0; } }

/* ------------------------------------------------------------- responsive */
@media (max-width:980px){
  .dp-home-grid{ grid-template-columns:1fr; gap:44px; }
  .dp-gate{ grid-template-columns:1fr; }
  .dp-reqs{ grid-template-columns:1fr; gap:36px; }
  .dp-benefits{ grid-template-columns:1fr; gap:0; }
  .dp-benefit, .dp-benefit:first-child, .dp-benefit:last-child{ padding:26px 0; }
  .dp-benefit + .dp-benefit{ border-inline-start:0; border-top:1px solid var(--border); }
}
@media (max-width:720px){
  .dp-wrap{ padding-inline:20px; }
  .dp-home{ margin-top:44px; }
  .dp-hero{ padding:48px 0 28px; }
  .dp-section{ padding-top:56px; }
  .dp-actions .dp-btn{ width:100%; }
  .dp-stage{ padding:12px 0 0; }
  .dp-stage::before{ inset:-6% -20px; opacity:.4; }
  .dp-codecard, .dp-mapchip{ display:none; }
  .dp-profile{ padding:20px; }
  .dp-steps{ grid-template-columns:1fr; gap:0; }
  .dp-step{ padding-bottom:28px; padding-inline-start:60px; }
  .dp-step:last-child{ padding-bottom:0; }
  .dp-step-n{ position:absolute; inset-inline-start:0; top:0; }
  .dp-step:not(:last-child)::after{ top:44px; bottom:-0px; inset-inline-start:21px; inset-inline-end:auto; width:1px; height:auto; }
  .dp-step h3{ margin-top:8px; }
  .dp-banner{ width:calc(100% - 40px); padding:20px; }
  .dp-banner .dp-btn{ width:100%; }
  .dp-apply{ padding:32px 20px 64px; }
  .dp-status-card{ padding:22px; }
  .dp-submit-row .dp-btn{ width:100%; }
}
@media (prefers-reduced-motion:reduce){
  .dp-btn, .dp-link, .dp-link .dp-arrow, .dp-input, .dp-textarea, .dp-chip span, .dp-drop, .dp-faq summary, .dp-faq summary .dp-icon{ transition:none; }
  .dp-btn-primary:hover{ transform:none; }
  .dp-spinner{ animation:none; border-inline-end-color:currentColor; opacity:.5; }
  .dp-skeleton{ animation:none; }
}
