/* ===== Proton Academy — shared design tokens ===== */
:root{
  --red:#9D0508;
  --red-dark:#72050A;
  --red-deep:#3E0203;
  --gold:#F1AD00;
  --gold-light:#FFD65C;
  --cream:#FBF2DE;
  --ink:#241208;
  --ink-soft:#5A4632;
  --white:#FFFFFF;
  --shadow: 0 20px 50px -20px rgba(62,2,3,.45);
  --ease: cubic-bezier(.22,1,.36,1);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Tajawal', sans-serif;
  background:var(--white);
  color:var(--ink);
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer; border:none;}
ul{list-style:none;}
.wrap{max-width:1180px; margin:0 auto; padding:0 28px;}
h1,h2,h3{font-family:'Lalezar', sans-serif; font-weight:400; line-height:1.15;}
.eyebrow{
  font-family:'Tajawal',sans-serif; font-weight:800; font-size:.8rem;
  letter-spacing:.12em; color:var(--gold);
}
:focus-visible{outline:3px solid var(--gold-light); outline-offset:3px; border-radius:4px;}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}

/* ---------- ORBIT MOTIF (signature element) ---------- */
.orbit-badge{ position:relative; width:64px; height:64px; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.orbit-badge svg.ring-svg{position:absolute; inset:0; width:100%; height:100%;}
.orbit-badge svg.icon{ position:relative; width:26px; height:26px; z-index:1; color:var(--red-dark); }
.orbit-badge .ring{ fill:none; stroke:var(--gold); stroke-width:1.4; opacity:.55; }
.orbit-badge .ring2{ fill:none; stroke:var(--red); stroke-width:1.4; opacity:.35; }
.orbit-badge .num{ position:relative; font-family:'Lalezar',sans-serif; font-size:1.4rem; color:var(--red-dark); }
.spin-slow{ animation:spin 14s linear infinite; transform-origin:50% 50%; }
.spin-slow-rev{ animation:spinrev 10s linear infinite; transform-origin:50% 50%; }
@keyframes spin{ to{ transform:rotate(360deg); } }
@keyframes spinrev{ to{ transform:rotate(-360deg); } }

/* ---------- NAVBAR ---------- */
header.nav{ position:sticky; top:0; z-index:60; background:rgba(157,5,8,.94); backdrop-filter:blur(10px); border-bottom:1px solid rgba(241,173,0,.25); }
.nav-inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 28px; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ width:42px; height:42px; border-radius:10px; }
.brand span{ font-family:'Lalezar',sans-serif; font-size:1.4rem; color:var(--white); letter-spacing:.02em; }
.nav-actions{ display:flex; gap:10px; align-items:center; }

.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:11px 24px; border-radius:999px; font-weight:800; font-size:.95rem; transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease); white-space:nowrap; }
.btn-gold{ background:var(--gold); color:var(--red-deep); box-shadow:0 10px 24px -8px rgba(241,173,0,.6); }
.btn-gold:hover{ transform:translateY(-2px) scale(1.02); box-shadow:0 14px 30px -8px rgba(241,173,0,.75); background:var(--gold-light); }
.btn-ghost{ background:transparent; color:var(--white); border:1.5px solid rgba(255,255,255,.5); }
.btn-ghost:hover{ border-color:var(--gold); color:var(--gold); }
.btn-outline-red{ background:transparent; color:var(--red); border:1.5px solid var(--red); }
.btn-outline-red:hover{ background:var(--red); color:var(--white); }
.btn-sm{ padding:8px 16px; font-size:.82rem; }
.btn-danger{ background:#B00020; color:var(--white); }
.btn-danger:hover{ filter:brightness(1.1); }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

/* ---------- FORM FIELDS (shared by auth + admin forms) ---------- */
.field{ margin-bottom:16px; }
.field label{ display:block; font-weight:800; font-size:.88rem; margin-bottom:7px; color:var(--ink); }
.field input, .field select, .field textarea{ width:100%; padding:13px 14px; border-radius:12px; border:1.5px solid #E7DCC7; font-family:'Tajawal',sans-serif; font-size:.95rem; background:var(--cream); transition:border-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--gold); outline:none; }
.form-msg{ font-size:.85rem; font-weight:700; margin-top:10px; text-align:center; min-height:18px; }
.form-msg.error{ color:#B00020; }
.form-msg.ok{ color:#0A7A3D; }

/* ---------- Loading ---------- */
.spinner{ width:34px; height:34px; border-radius:50%; border:3px solid rgba(157,5,8,.15); border-top-color:var(--red); animation:sp .8s linear infinite; margin:40px auto; }
@keyframes sp{ to{ transform:rotate(360deg); } }
.center-msg{ text-align:center; color:var(--ink-soft); padding:60px 20px; }

/* ---------- FOOTER ---------- */
footer{ background:var(--red-deep); color:rgba(255,255,255,.85); padding:40px 0 22px; margin-top:60px; }
.footer-inner{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:24px; align-items:center; }
.footer-links{ display:flex; gap:22px; flex-wrap:wrap; }
.footer-links a{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:.9rem; }
.footer-links a:hover{ color:var(--gold); }
.footer-links svg{ width:18px; height:18px; }
.footer-bottom{ text-align:center; font-size:.82rem; color:rgba(255,255,255,.5); margin-top:22px; padding-top:18px; border-top:1px solid rgba(255,255,255,.12); }

@media (max-width:720px){
  .footer-inner{ flex-direction:column; align-items:flex-start; }
}
