/* The student's account, details, reminders, consents and his ijaza (student/account.js) in the navy design. Cards,
   fields, rows, chips, notes and the dialog come from apply.css and student.css; this adds his navy card, the details
   list, the switches, the delete styles, his standing line and the ijaza as a certificate. */

/* who he is: the page's one navy card */
.card.ac-me { position: relative; overflow: hidden; gap: 0; padding: 18px; border: 0; background: var(--grad); color: var(--on-accent); box-shadow: var(--shadow-navy); }
.ac-dots { position: absolute; top: 16px; left: 16px; width: 46px; height: 30px; opacity: .28; background-image: radial-gradient(#FFFFFF 1.3px, transparent 1.6px); background-size: 8px 8px; pointer-events: none; }
.ac-id { display: flex; align-items: center; gap: 14px; }
.ac-photo { flex: none; width: 68px; height: 68px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 2px #E9C77D; }
.ac-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.4; }
.ac-who b { font-size: 21px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.ac-who small { font-size: var(--text-md); font-weight: 500; color: rgba(255, 255, 255, .8); overflow-wrap: anywhere; }
.ac-who bdi { font-weight: 700; color: var(--on-accent); }
.ac-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ac-tags .chip { background: rgba(255, 255, 255, .14); color: var(--on-accent); }
/* his photo (the real side), at the foot of the card */
.ac-photo-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }
.ac-photo-row p { flex: 1; margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.btn.ac-pick { flex: none; height: 44px; background: var(--surface); box-shadow: none; color: var(--brand); cursor: pointer; }
.ac-pick:focus-within { outline: 2px solid var(--on-accent); outline-offset: 2px; }
/* his standing with the sheikh, under his card */
.ac-status { align-items: center; min-height: 44px; text-decoration: none; line-height: 1.5; }
.ac-status svg { margin-top: 0; }
.ac-go { margin-inline-start: auto; display: grid; }

/* بياناتي: a row each, the time where he is under his country */
.ac-card .card-head { margin-bottom: -6px; }
.ac-edit { min-height: 44px; padding-inline: 4px; gap: 4px; }
.ac-dl { margin: 0; display: flex; flex-direction: column; }
.ac-dl > div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 4px 12px; padding: 12px 0; }
.ac-dl > div + div { border-top: 1px solid var(--line); }
.ac-dl dt { font-size: var(--text-md); font-weight: 500; line-height: 1.5; color: var(--ink-3); }
.ac-dl dd { margin: 0; font-size: var(--text-base); font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.ac-dl dd.ac-now { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; margin-top: 6px; padding: 9px 12px; border-radius: var(--radius-md); background: var(--navy-wash); color: var(--brand); font-size: 13.5px; font-weight: 500; line-height: 1.45; }
.ac-now svg { flex: none; }

/* on/off rows (reminders) */
.ac-toggles { display: flex; flex-direction: column; margin-top: -4px; }
.ac-toggle { min-height: 56px; cursor: pointer; transition: background-color 150ms ease-out; }
.ac-toggle + .ac-toggle { border-top: 1px solid var(--line); }
.ac-toggle .rt b { font-size: 15.5px; font-weight: 700; }
.ac-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--radius-sm); }
.ac-switch { flex: none; position: relative; width: 46px; height: 28px; border-radius: var(--radius-pill); background: var(--fill-2); transition: background-color 200ms ease; }
.ac-switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(16, 27, 58, .25); transition: transform 200ms var(--ease); }
.ac-toggle[aria-pressed="true"] .ac-switch { background: var(--navy-2); }
.ac-toggle[aria-pressed="true"] .ac-switch::after { transform: translateX(-18px); }   /* RTL: "on" slides toward the end (left) */

/* the voice consent */
.ac-consent { display: flex; align-items: flex-start; gap: 12px; }
.ac-consent .rt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.5; }
.ac-consent b { font-size: 15.5px; font-weight: 700; }
.ac-consent small { font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.btn.ac-soft { background: var(--brand-soft); box-shadow: none; color: var(--brand); }
.btn.wide.ac-soft { height: 44px; }

/* the links, and leaving or deleting the account */
.card.ac-links { gap: 0; padding: 0; overflow: hidden; }
.ac-link { min-height: 60px; padding: 12px 16px; transition: background-color 150ms ease-out; }
.ac-link .rt b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ac-link .re { color: #A3ABC0; }
.ac-link:active { background: var(--navy-wash); }
.ac-out { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.btn.ac-delete { height: 44px; border-color: transparent; background: transparent; box-shadow: none; color: var(--danger); font-size: 14.5px; }
.btn.ac-danger { background: var(--danger); border-color: var(--danger); box-shadow: none; color: var(--on-accent); }
.btn.ac-danger:disabled { background: var(--fill-2); border-color: transparent; color: #8E96AE; }

/* the profile form */
.fld input.ac-ro { background: transparent; border-style: dashed; color: var(--ink-3); }   /* his to read, not to change */
.ac-seg { grid-template-columns: 1fr 1fr; }
.ac-seg button:last-child { grid-column: 1 / -1; }

/* إجازتي before the ijaza: what it rests on, step by step, and the rule */
.card.ac-ahead { gap: 6px; }
.ac-ahead > h2 { margin-bottom: 4px; }
.ac-steps { list-style: none; margin: 0; padding: 0; }
.ac-steps li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 8px 0 14px; }
.ac-steps li::before { content: ""; position: absolute; top: 36px; bottom: -6px; right: 12px; width: 2px; border-radius: 2px; background: var(--fill-2); }
.ac-steps li:last-child::before { display: none; }
.ac-steps i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--ink-3); box-shadow: inset 0 0 0 1.5px #D3D9E6; font-size: 12.5px; font-weight: 800; font-style: normal; }
.ac-steps .ac-now i { background: var(--grad); color: var(--on-accent); box-shadow: 0 0 0 4px var(--brand-soft); }
.ac-steps b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.4; color: var(--ink-2); }
.ac-steps .ac-now b { color: var(--ink); }
.ac-steps span { display: block; margin-top: 2px; font-size: var(--text-md); line-height: 1.55; color: var(--ink-2); }
.ac-rule { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-edge); font-size: 14.5px; line-height: 1.75; color: #5E4415; }
.ac-rule small { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--gold-ink); }

/* the ijaza as a certificate: the sheikh's, or a preview of it */
.ac-preview { display: flex; flex-direction: column; gap: 12px; }
.ac-prev-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 4px -2px; }
.ac-prev-h h2 { margin: 0; font-size: var(--text-lg); font-weight: 700; }
.ac-cert { padding: 8px; border-radius: 24px; background: #FFFDF8; box-shadow: var(--shadow), 0 0 0 1px rgba(185, 138, 52, .18); }
.ac-frame { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px 16px; border-radius: 18px; text-align: center;
  box-shadow: inset 0 0 0 1px var(--gold-edge), inset 0 0 0 4px #FFFDF8, inset 0 0 0 5px rgba(228, 203, 147, .55); }
.ac-seal { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: var(--on-accent); background: linear-gradient(135deg, #D2AE62, #9A7530); box-shadow: 0 0 0 5px var(--gold), 0 12px 22px -12px rgba(154, 117, 48, .8); }
.ac-congrats { margin: 10px 0 0; font-size: var(--text-md); font-weight: 700; color: var(--gold-ink); }
.ac-frame h2, .ac-frame h3 { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.3; }
.ac-what { font-size: 15.5px; font-weight: 700; line-height: 1.45; color: var(--brand); }
.ac-date { font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.ac-ij-note { width: 100%; margin: 8px 0 2px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--fill); font-size: var(--text-md); line-height: 1.7; color: var(--ink); text-align: start; white-space: pre-line; }
.ac-ij-note.ac-blank { color: var(--ink-3); }
.row.ac-ij-file { min-height: 0; margin-top: 4px; padding: 10px 12px 10px 10px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-align: start; }
.ac-ij-file .ri { width: 38px; height: 38px; border-radius: 11px; }
.ac-ij-file .rt b { font-size: 14.5px; }
.ac-ij-file .rt small { font-size: var(--text-sm); }
.ac-ij-file .btn { flex: none; height: 36px; padding: 0 14px; font-size: 13.5px; }
.ac-fname { overflow-wrap: anywhere; }
.ac-cap { margin: -2px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.ac-cap svg, .ac-prior svg { flex: none; }
.ac-prior { display: flex; align-items: center; gap: 6px; }
/* the ijaza image the sheikh uploaded, fitted to the phone */
.ac-ij-img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; border-radius: var(--radius-md); border: 1px solid var(--gold-edge); background: var(--ground); }
.ac-ij-cap { margin: 0; font-size: var(--text-sm); color: var(--ink-2); text-align: center; word-break: break-all; }
/* a stand-in for the ijaza file (the real one opens in the app) */
.ac-paper { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 24px 20px; border: 1px solid var(--gold-edge); border-radius: var(--radius-md); background: #FFFDF8; }
.ac-paper-mark { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #D2AE62, #9A7530); color: var(--on-accent); display: grid; place-items: center; }
.ac-paper i { display: block; width: 100%; height: 8px; border-radius: var(--radius-xs); background: var(--line); }
.ac-paper i.short { width: 62%; }
.ac-paper-name { font-size: var(--text-md); color: var(--ink-2); overflow-wrap: anywhere; text-align: center; }

@media (hover: hover) and (pointer: fine) {
  .ac-link:hover { background: var(--navy-wash); }
  .btn.ac-soft:not(:disabled):hover { background: #DDE3F4; }
  .btn.ac-delete:hover { background: var(--danger-bg); }
}
@media (prefers-reduced-motion: reduce) { .ac-switch, .ac-switch::after { transition: none; } }
