/* Member ID card: professional design, screen + print */
.idcard { --c: #0f766e; position: relative; width: 100%; max-width: 360px; margin: 0 auto; background: #fff; color: #0f172a; border-radius: 18px; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 18px 40px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .08); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; page-break-inside: avoid; break-inside: avoid; }
.idcard::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 100% 0, rgba(15, 118, 110, .07), transparent 55%), repeating-linear-gradient(135deg, rgba(15, 23, 42, .025) 0 2px, transparent 2px 9px); }
.idc-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; color: #fff; background: linear-gradient(120deg, var(--c), #0b1220); box-shadow: inset 0 -3px 0 #d4a72c; }
.idc-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.idc-seal { flex: 0 0 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; }
.idc-brand b { display: block; font-size: 13px; letter-spacing: .2px; }
.idc-brand small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .8px; opacity: .8; }
.idc-role { flex: none; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.1px; color: var(--c); background: #fff; padding: 4px 10px; border-radius: 99px; }
.idc-main { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 16px 14px; }
.idc-photo { flex: 0 0 96px; width: 96px; height: 118px; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #e2e8f0, #cbd5e1); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--c), 0 6px 14px rgba(15, 23, 42, .18); display: flex; align-items: center; justify-content: center; }
.idc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idc-init { font-size: 40px; font-weight: 800; color: #334155; }
.idc-info { min-width: 0; flex: 1; }
.idc-info h3 { margin: 2px 0 4px; font-size: 17px; font-weight: 800; line-height: 1.15; letter-spacing: -.2px; overflow-wrap: anywhere; }
.idc-pad { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--c); }
.idc-dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.idc-dl dt { font-size: 9px; text-transform: uppercase; letter-spacing: .8px; color: #64748b; }
.idc-dl dd { margin: 1px 0 0; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.idc-foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 16px; background: #f8fafc; border-top: 1px solid #e2e8f0; font-size: 9.5px; line-height: 1.3; color: #64748b; }
.idc-bars { flex: none; width: 64px; height: 18px; background: repeating-linear-gradient(90deg, #0f172a 0 2px, transparent 2px 4px, #0f172a 4px 5px, transparent 5px 8px); opacity: .75; }
.idcard.compact { max-width: none; box-shadow: none; }
.idcard.compact .idc-photo { flex-basis: 72px; width: 72px; height: 92px; }
.idcard.compact .idc-info h3 { font-size: 15px; }
.idcard.compact .idc-main { padding: 12px; }
.idc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
@media (max-width: 380px) { .idc-photo { flex-basis: 84px; width: 84px; height: 104px; } .idc-info h3 { font-size: 15px; } }
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { background: #fff !important; }
  .noprint { display: none !important; }
  .idc-grid { grid-template-columns: repeat(2, 1fr); }
  .idcard { box-shadow: none; }
}
