body { background: #eef2f6; min-height: 100vh; display: flex; flex-direction: column; }
.v-bg { position: absolute; inset: 0 0 auto 0; height: 210px; z-index: -1;
  background: radial-gradient(800px 300px at 85% -10%, #6b4b96 0%, transparent 70%),
              radial-gradient(600px 300px at 0% 0%, rgba(163,140,185,.45) 0%, transparent 70%),
              linear-gradient(180deg, #36145e 0%, #3f1a6b 100%); }
.v-bg::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; }
.v-top { color: #fff; }
.v-top-in { max-width: 920px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.v-brand:hover { text-decoration: none; }
.v-brand span:first-child { color: #d6c6ea; }
.v-brand strong { display: block; font-size: 16px; }
.v-brand small { color: #c7b8dc; font-size: 12px; }
.v-user { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.v-user .btn { color: #fff; border-color: rgba(255,255,255,.25); }
.v-user .btn:hover { background: rgba(255,255,255,.1); }
.v-main { flex: 1; width: 100%; max-width: 920px; margin: 0 auto; padding: 10px 20px 120px; }
.v-foot { text-align: center; font-size: 12.5px; color: var(--muted); padding: 20px; }

/* ---------- الدخول ---------- */
.auth-card { max-width: 460px; margin: 4vh auto 0; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; animation: rise .25s ease; }
.auth-head { padding: 30px 30px 6px; text-align: center; }
.auth-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: var(--primary-50); color: var(--primary); }
.auth-head h1 { font-size: 22px; }
.auth-head p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.auth-body { padding: 22px 30px 30px; display: flex; flex-direction: column; gap: 16px; }
.id-input { height: 58px; font-size: 24px; letter-spacing: .25em; text-align: center !important; font-weight: 600; border-radius: 14px; }
.steps { display: flex; justify-content: center; gap: 8px; padding: 0 30px; }
.steps span { height: 4px; width: 46px; border-radius: 9px; background: var(--line); }
.steps span.on { background: var(--primary); }
.otp { display: flex; gap: 10px; justify-content: center; direction: ltr; }
.otp input { width: 50px; height: 60px; text-align: center; font-size: 26px; font-weight: 700; border: 1.5px solid var(--line); border-radius: 14px; font-family: var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.otp input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(54, 20, 94,.12); }
.otp.err input { border-color: var(--danger); animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (max-width: 420px) { .otp { gap: 6px; } .otp input { width: 44px; height: 54px; font-size: 22px; } .auth-body, .auth-head { padding-left: 20px; padding-right: 20px; } }
.linkish { background: none; border: 0; color: var(--primary); font: 600 14px var(--font); cursor: pointer; padding: 0; }
.linkish:disabled { color: var(--muted); cursor: default; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12.5px; color: var(--muted); }

/* ---------- الاجتماعات ---------- */
.hello { color: #fff; margin: 14px 0 22px; }
.hello h1 { font-size: 26px; }
.hello p { color: #d9cdea; margin-top: 4px; }
.m-list { display: grid; gap: 14px; }
.m-card { background: #fff; border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); display: grid; gap: 12px; border: 1px solid transparent; transition: transform .15s, box-shadow .15s; }
.m-card.clickable { cursor: pointer; }
.m-card.clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.m-card.is-open { border-color: rgba(18,128,92,.25); }
.m-card h3 { font-size: 17.5px; }
.m-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 12px; }
.cd { display: inline-flex; gap: 6px; direction: rtl; }
.cd b { display: inline-grid; place-items: center; min-width: 40px; padding: 4px 6px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.cd b small { font-size: 10px; font-weight: 500; color: var(--muted); }

/* ---------- تفاصيل الاجتماع ---------- */
.back { display: inline-flex; gap: 6px; align-items: center; color: #e6ddf2; font-weight: 600; margin: 8px 0 14px; }
.back:hover { color: #fff; text-decoration: none; }
.m-hero { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 24px; display: grid; gap: 14px; margin-bottom: 16px; }
.m-hero h1 { font-size: 22px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.info-grid div { background: var(--surface-2); border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--muted); }
.info-grid b { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
@media (max-width: 640px) { .info-grid { grid-template-columns: 1fr; } }
details.doc { background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-bottom: 12px; }
details.doc summary { padding: 14px 18px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details.doc summary::after { content: '⌄'; color: var(--muted); transition: transform .2s; }
details.doc[open] summary::after { transform: rotate(180deg); }
details.doc .doc-b { padding: 0 18px 18px; white-space: pre-wrap; color: var(--ink-2); font-size: 14.5px; }
.files { display: grid; gap: 8px; padding: 0 18px 18px; }
.file { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.file:hover { background: var(--surface-2); text-decoration: none; }
.file .ext { width: 36px; height: 36px; border-radius: 9px; background: var(--danger-50); color: var(--danger); display: grid; place-items: center; font-size: 10.5px; font-weight: 700; }

.sec-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.sec-title h2 { font-size: 18px; }
.res { background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm); border: 1.5px solid var(--line); padding: 20px; margin-bottom: 14px; transition: border-color .2s; }
.res.answered { border-color: rgba(54, 20, 94,.35); }
.res-top { display: flex; gap: 14px; align-items: flex-start; }
.res-n { width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-weight: 700; }
.res h3 { font-size: 16px; font-weight: 600; line-height: 1.6; }
.res .det { color: var(--muted); font-size: 14px; margin-top: 4px; white-space: pre-wrap; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.choice { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 13px; border: 1.5px solid var(--line); background: #fff; font: 600 15px var(--font); color: var(--ink-2); cursor: pointer; transition: all .15s; }
.choice:hover:not(:disabled) { border-color: #c5cfdb; background: var(--surface-2); }
.choice .ci { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 1.5px solid currentColor; opacity: .7; }
.choice.approve.on { background: var(--success); border-color: var(--success); color: #fff; box-shadow: 0 8px 20px -8px rgba(18,128,92,.6); }
.choice.reject.on { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: 0 8px 20px -8px rgba(192,57,43,.6); }
.choice.abstain.on { background: #64748b; border-color: #64748b; color: #fff; box-shadow: 0 8px 20px -8px rgba(100,116,139,.6); }
.choice.on .ci { opacity: 1; background: rgba(255,255,255,.2); }
.choice:disabled { cursor: default; }
.choice:disabled:not(.on) { opacity: .45; }
@media (max-width: 520px) { .choice { height: 48px; font-size: 14px; } .choice .ci { display: none; } }
.res-result { margin-top: 14px; display: grid; gap: 8px; }

.submit-bar { position: fixed; bottom: 0; inset-inline: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }
.submit-in { max-width: 920px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.submit-in .progress { flex: 1; max-width: 260px; }

.receipt { max-width: 520px; margin: 4vh auto 0; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 34px 30px; text-align: center; animation: rise .3s ease; }
.check-anim { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: var(--success-50); display: grid; place-items: center; }
.check-anim svg { width: 46px; height: 46px; stroke: var(--success); stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 0; animation: draw .5s .15s ease backwards; }
@keyframes draw { from { stroke-dashoffset: 60; } }
.receipt-code { margin: 18px auto; padding: 14px; border: 2px dashed var(--line); border-radius: 14px; font-size: 24px; font-weight: 700; letter-spacing: .12em; direction: ltr; }
.summary { text-align: right; margin-top: 10px; display: grid; gap: 8px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--surface-2); border-radius: 10px; font-size: 14px; }
.ch-approve { color: var(--success); font-weight: 700; }
.ch-reject { color: var(--danger); font-weight: 700; }
.ch-abstain { color: #64748b; font-weight: 700; }
@media print { .v-top, .v-foot, .v-bg, .no-print { display: none !important; } .receipt { box-shadow: none; } }

/* ---------- هوية الجمعية ---------- */
.v-top { border-top: 8px solid #36145e; box-shadow: inset 0 5px 0 #a38cb9; }
.brand-logo { display: block; height: 42px; width: auto; }
.v-brand span:first-child { color: inherit; }
.v-foot a { color: var(--muted); font-weight: 500; }
.v-foot .links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.receipt { border-top: 6px solid #36145e; }
.receipt .org-print { display: none; }
@media print { .receipt .org-print { display: block; height: 60px; margin: 0 auto 18px; } }
