/* My account (parent registrations) */
.regcard{background:var(--surface);border:3px solid var(--rc);border-radius:24px;padding:16px;display:flex;flex-direction:column;gap:10px}
.rc-top{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}
.rc-prog{background:var(--rc);color:#fff;border-radius:999px;padding:4px 12px;font-weight:600;font-size:.82rem}
.rc-ref{font-variant-numeric:tabular-nums;font-weight:600;color:var(--muted);font-size:.85rem;letter-spacing:.04em}
.regcard h3{font-size:1.5rem;color:var(--ink)}
.rc-file{display:flex;gap:8px;align-items:center;background:var(--bg);border:2px solid var(--line);border-radius:12px;padding:9px 12px;font:500 .9rem var(--f-body);color:var(--ink);cursor:pointer;text-align:left}
.rc-file b{color:var(--purple);font-weight:600}
.rc-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.rc-grid div{background:var(--bg);border-radius:14px;padding:8px 10px;min-width:0}
.rc-grid small{display:block;color:var(--muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.06em}
.rc-grid b{font-weight:600;font-size:.92rem}
.rc-times{display:flex;flex-direction:column;gap:4px;font-size:.92rem;color:var(--muted)}
.rc-times span{display:flex;align-items:center;gap:8px}
.rc-status{display:flex;gap:8px;align-items:center;background:#FCE3A6;color:#4B2E5A;border-radius:12px;padding:9px 12px;font-weight:500;font-size:.88rem}
.hello{display:flex;justify-content:space-between;align-items:flex-start;background:var(--s-sky);border-radius:24px;padding:18px 18px 16px;overflow:hidden}
.hello .hand{font-size:1.9rem;margin:0}
.hello h1{font-size:2.4rem;margin-top:2px;word-break:break-word}
.hello-sub{color:var(--ink);opacity:.8;font-size:.9rem;margin-top:4px}
.hello-lan{width:64px;margin:-18px 0 0 8px;flex:none}
.dash{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.dash div{background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:12px 8px;text-align:center;display:flex;flex-direction:column;gap:2px;min-width:0}
.dash b{font-family:var(--f-head);font-weight:800;font-size:1.9rem;line-height:1;color:var(--purple);font-variant-numeric:tabular-nums}
.dash .dash-day{font-size:1.15rem;line-height:1.3}
.dash span{font-size:.78rem;color:var(--muted);line-height:1.2}
.sec-head{display:flex;align-items:center;gap:10px;margin-top:6px}
.sec-head h2{font-size:1.5rem}
.sec-head .count{background:var(--p2-soft);color:var(--ink);border-radius:999px;padding:2px 10px;font-weight:600;font-size:.85rem}
.season{display:flex;flex-direction:column;gap:8px}
.season-t{display:flex;align-items:center;gap:6px;font-weight:600;color:var(--purple);font-size:.92rem}
.pastcard{display:flex;gap:12px;align-items:center;background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:12px 14px}
.pc-ic{width:40px;height:40px;border-radius:12px;background:#FDE3A0;color:#4B2E5A;display:grid;place-items:center;flex:none}
.pastcard div{display:flex;flex-direction:column;min-width:0}
.pastcard b{font-weight:600}
.pastcard [lang="ar"]{font-size:1rem;text-align:start}
.pastcard small{color:var(--muted);font-size:.84rem}
.empty-past{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;background:var(--surface);border:2px dashed var(--line);border-radius:18px;padding:18px;color:var(--muted)}
.empty-past .icon{width:28px;height:28px;color:var(--yellow)}
.acct{display:flex;flex-direction:column;gap:12px;background:var(--surface);border:2px solid var(--line);border-radius:20px;padding:14px}
.acct-head{display:flex;gap:12px;align-items:center}
.acct-head > div{flex:1;min-width:0}
.acct-name{font-size:1.1rem}
.acct-av{width:48px;height:48px;border-radius:50%;background:var(--purple);color:#FFF8EC;display:grid;place-items:center;font:800 1.4rem var(--f-head);flex:none}
.acct small{display:block;color:var(--muted);font-size:.8rem}
.acct b{font-weight:600;word-break:break-all}
.rc-status.rc-wait{background:#FDE3E0;color:#6B1F14;align-items:flex-start}
.rc-status.rc-ready{background:#DDEBCF;color:#22301A;align-items:flex-start}
.rc-status span b{font-weight:700}
.rc-status svg{flex:none}
/* Previous programs: tap the arrow to open */
.prev-box{border:2px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden}
.prev-box summary{list-style:none;display:flex;align-items:center;gap:10px;padding:14px 16px;cursor:pointer}
.prev-box summary::-webkit-details-marker{display:none}
.prev-box summary h2{margin:0;font-size:1.25rem}
.prev-arrow{margin-left:auto;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--p2-soft);color:var(--purple);transition:transform .25s}
.prev-arrow svg{width:20px;height:20px}
.prev-box[open] .prev-arrow{transform:rotate(180deg)}
.prev-body{display:flex;flex-direction:column;gap:12px;padding:0 14px 14px}
.dash{grid-template-columns:repeat(2,1fr)}
.acct-rows{display:flex;flex-direction:column;border-top:2px dashed var(--line);padding-top:6px}
.acct-row{display:grid;grid-template-columns:20px 1fr auto;gap:10px;align-items:center;padding:8px 2px;border-bottom:1px solid var(--line)}
.acct-row:last-child{border-bottom:0}
.acct-row svg{width:18px;height:18px;color:var(--purple)}
.acct-row span{color:var(--muted);font-size:.9rem}
.acct-row b{font-weight:600;text-align:right;word-break:break-all;font-size:.95rem}
.ro{margin:0;padding:13px 14px;border:2px dashed var(--line);border-radius:16px;color:var(--ink);word-break:break-all}
.ro small{display:block;color:var(--muted);font-size:.8rem}
.dash.dash4{grid-template-columns:repeat(2,1fr)}
.empty-kids{display:flex;align-items:center;gap:12px;border:2px dashed var(--line);border-radius:18px;padding:16px;color:var(--muted)}
.empty-kids svg{width:28px;height:28px;flex:none;color:var(--purple)}.empty-kids p{margin:0}
.acct-note{display:flex;gap:8px;align-items:center;margin:0;color:var(--muted);font-size:.82rem}
.acct-note svg{width:16px;height:16px;flex:none}
.help-card{display:flex;gap:12px;align-items:center;background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:14px}
.help-card > svg{width:26px;height:26px;color:var(--purple);flex:none}
.help-card div{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.help-card span{color:var(--muted);font-size:.88rem}
.dash{grid-template-columns:repeat(2,1fr)}
.push-card{display:flex;gap:12px;align-items:center;background:#FFF8EC;border:2px solid #FCC856;color:#3D2A00;border-radius:18px;padding:14px}
.push-card.on{background:#DDEBCF;border-color:#9AB678;color:#22301A}.push-card.off{background:var(--surface);border-color:var(--line);color:var(--ink)}
.push-card > svg{width:26px;height:26px;flex:none}
.push-card div{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.push-card span{font-size:.88rem;opacity:.9}
.msgs{display:flex;flex-direction:column;gap:8px}
.msg{display:flex;gap:12px;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:12px 14px}
.msg.unread{border-color:var(--purple);box-shadow:inset 4px 0 0 var(--purple)}
.msg-ic{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--p2-soft);color:var(--purple)}
.msg-ic svg{width:18px;height:18px}
.msg div{min-width:0;flex:1}.msg b{display:block}.msg p{margin:2px 0 4px;font-size:.95rem;overflow-wrap:anywhere}.msg small{color:var(--muted);font-size:.78rem}
.count.new{background:var(--purple);color:#FFF8EC}
.rc-exit{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--p2-soft);border:2px solid var(--purple);border-radius:16px;padding:12px 14px;color:var(--ink);cursor:pointer;font:inherit}
.rc-exit > svg:first-child{width:28px;height:28px;color:var(--purple);flex:none}.rc-exit > svg:last-child{width:18px;height:18px;flex:none}
.rc-exit span{flex:1;display:flex;flex-direction:column}.rc-exit small{color:var(--muted)}
#tabs a{position:relative}
#tabs .badge{position:absolute;top:4px;right:calc(50% - 22px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#D2604E;color:#fff;font:700 .7rem/18px var(--f-body);text-align:center}
.shop-card{text-decoration:none;color:var(--ink)}.shop-card .act-btn{flex:none}

/* My details: tap to open */
details.acct > summary{list-style:none;cursor:pointer}
details.acct > summary::-webkit-details-marker{display:none}
.acct-hint{display:block;color:var(--muted);font-size:.78rem;margin-top:2px}
details.acct[open] .acct-hint{display:none}
.fold-arrow{flex:none;width:40px;height:40px;border-radius:50%;background:var(--bg);border:2px solid var(--line);display:grid;place-items:center;color:var(--purple)}
.fold-arrow .icon{width:22px;height:22px;transition:transform .2s}
details.acct[open] .fold-arrow .icon{transform:rotate(180deg)}
.acct-edit{margin-top:2px}
