/* الإصدار 9: اشتراكات المواد ومركز المادة والسبورة المتقدمة */
.subject-select-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:8px}.subject-select-card{display:flex;gap:10px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer;transition:.2s}.subject-select-card:hover{border-color:var(--primary);transform:translateY(-1px)}.subject-select-card input{width:20px;height:20px;accent-color:var(--primary)}.subject-select-card:has(input:checked){border-color:var(--primary);background:color-mix(in srgb,var(--primary) 8%,white)}.subject-select-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:var(--navy);color:#fff;font-size:19px}.subject-select-card span:last-child{display:grid;gap:2px}.subject-select-card small{color:var(--muted);font-size:10px}.auth-register-v9{width:min(720px,94vw)}
.v9-home-hero{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:28px;border-radius:24px;background:linear-gradient(135deg,var(--navy),color-mix(in srgb,var(--navy) 78%,var(--primary)));color:#fff;box-shadow:var(--shadow);margin-bottom:16px}.v9-home-hero h1{margin:4px 0 8px;font-size:clamp(28px,4vw,45px)}.v9-home-hero p{max-width:720px;color:rgba(255,255,255,.8)}.v9-home-progress{width:122px;height:122px;flex:0 0 122px;border-radius:50%;display:grid;place-items:center;text-align:center;background:radial-gradient(circle,#fff 54%,transparent 56%),conic-gradient(var(--gold) 68%,rgba(255,255,255,.14) 0);color:var(--navy)}.v9-home-progress strong{font-size:25px;display:block}.v9-home-progress span{font-size:10px;display:block}.v9-daily-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0 22px}.v9-daily-row button{display:flex;text-align:right;align-items:center;gap:11px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(12,37,55,.05);cursor:pointer}.v9-daily-row button>b{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#f4f7f9;color:var(--primary);font-size:20px}.v9-daily-row span{display:grid;gap:2px}.v9-daily-row small{color:var(--muted)}
.v9-subject-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.v9-subject-card{padding:20px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow);display:grid;gap:16px}.v9-subject-top{display:grid;grid-template-columns:auto 1fr auto;gap:13px;align-items:start}.v9-subject-top .subject-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:17px;background:var(--navy);color:var(--gold);font-size:27px}.v9-subject-top h3{margin:3px 0 4px;font-size:22px}.v9-subject-top p{margin:0;color:var(--muted)}.v9-subject-score{display:grid;text-align:center;padding:8px 10px;border-radius:13px;background:#f4f7f9}.v9-subject-score strong{font-size:20px;color:var(--primary)}.v9-subject-score small{font-size:10px;color:var(--muted)}.v9-subject-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.v9-subject-metrics span{display:grid;text-align:center;padding:8px;background:#f7f9fb;border-radius:10px;font-size:10px;color:var(--muted)}.v9-subject-metrics b{font-size:16px;color:var(--navy)}
.subject-everything{margin-top:28px;padding-top:10px}.subject-center-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:10px 0 18px}.subject-center-tabs a{padding:9px 13px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--navy);text-decoration:none;font-weight:800}.subject-center-tabs b{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;margin-inline-start:5px;border-radius:999px;background:var(--primary);color:#fff;font-size:10px}.subject-resource-section{scroll-margin-top:95px;margin:20px 0}.subject-resource-section>h3{margin-bottom:10px}.account-subject-tags{display:flex;gap:5px;flex-wrap:wrap}.student-subscription-editor .subject-select-grid{margin:15px 0}.accounts-admin .table td{vertical-align:top}

/* السبورة المتقدمة */
.whiteboard-modal-box{width:min(1220px,96vw);max-height:94vh;display:flex;flex-direction:column;overflow:hidden}.whiteboard-modal-box>.whiteboard-v9{min-height:0;display:flex;flex-direction:column;flex:1}.v9-board-toolbar{padding-bottom:10px;border-bottom:1px solid var(--line)}.board-toolbar-spacer{flex:1}.board-question-preview{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:10px 12px;margin:8px 0;border:1px solid var(--line);border-radius:13px;background:#f8fafb}.board-question-preview>div{display:grid;gap:3px;min-width:0}.board-question-preview strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:800px}.whiteboard-stage{min-height:0;flex:1;display:flex}.whiteboard-stage .whiteboard-wrap{flex:1;min-height:440px;height:min(62vh,720px);overflow:auto}.whiteboard-stage #whiteboardCanvas{width:100%;height:auto;min-height:100%;background:#fff}.whiteboard-modal-box.board-expanded{width:98vw;max-width:none;height:96vh;max-height:none}.whiteboard-modal-box.board-expanded .whiteboard-stage .whiteboard-wrap{height:auto;min-height:0}.whiteboard-modal-box.board-focus{position:fixed;inset:0;width:100vw;height:100vh;max-width:none;max-height:none;border-radius:0;margin:0;padding:14px;z-index:9999}.whiteboard-modal-box.board-focus .modal-top{padding-top:max(4px,env(safe-area-inset-top))}.whiteboard-modal-box.board-focus .whiteboard-stage .whiteboard-wrap{height:auto;min-height:0}.whiteboard-focus-active{overflow:hidden}.whiteboard-focus-active .topbar,.whiteboard-focus-active .mobile-bottom-nav,.whiteboard-focus-active .footer{visibility:hidden}.whiteboard-modal-box:fullscreen{width:100vw;height:100vh;max-width:none;max-height:none;border-radius:0;padding:14px;background:#fff}.whiteboard-modal-box:fullscreen .whiteboard-stage .whiteboard-wrap{height:auto;min-height:0}.board-help{padding-top:6px}
@media(max-width:800px){.subject-select-grid,.v9-subject-grid{grid-template-columns:1fr}.v9-home-hero{align-items:flex-start}.v9-home-progress{width:92px;height:92px;flex-basis:92px}.v9-daily-row{grid-template-columns:1fr}.v9-subject-metrics{grid-template-columns:repeat(2,1fr)}.v9-subject-top{grid-template-columns:auto 1fr}.v9-subject-score{grid-column:1/-1;grid-template-columns:auto auto;justify-content:center;gap:8px}.whiteboard-modal-box{width:100vw;max-height:100vh;border-radius:0}.board-question-preview{align-items:flex-start;flex-direction:column}.v9-board-toolbar{max-height:128px;overflow:auto}.whiteboard-stage .whiteboard-wrap{height:58vh;min-height:360px}}
@media(max-width:520px){.v9-home-hero{flex-direction:column}.v9-home-progress{align-self:flex-start}.v9-subject-top{grid-template-columns:1fr}.v9-subject-top .subject-icon{width:48px;height:48px}.whiteboard-stage .whiteboard-wrap{height:55vh}.subject-center-tabs a{flex:1;text-align:center}}
