/* ============================================================
   Navigo Nepal — Executive Member ID Card CSS (Refined & Perfected)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800;900&family=Outfit:wght@600;700;800;900&display=swap');

:root {
  --bg-page: #0F172A;
  --card-width: 350px;
  --card-height: 560px;
  --card-dark: #121418;
  --card-header-bg: #FFFFFF;
  --accent-blue: #2563EB;
  --accent-blue-hover: #1D4ED8;
  --accent-blue-light: #3B82F6;
  --accent-sky: #60A5FA;
  --accent-navy: #0A2342;
  --accent-emerald: #10B981;
  --text-white: #FFFFFF;
  --text-gray: #CBD5E1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-page);
  color: #F8FAFC;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- PORTAL HEADER --- */
.id-portal-header {
  background: #090D16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.id-header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.id-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.id-brand img {
  height: 42px;
  width: auto;
  border-radius: 6px;
}

.id-brand-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.id-brand-text p {
  font-size: 0.725rem;
  color: var(--accent-blue-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.id-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* BUTTONS */
.btn-nvg {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-nvg-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-nvg-primary:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-nvg-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-nvg-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.btn-nvg-outline {
  background: transparent;
  border-color: var(--accent-blue-light);
  color: var(--accent-blue-light);
}

.btn-nvg-outline:hover {
  background: rgba(59, 130, 246, 0.12);
  color: #FFFFFF;
}

/* --- MAIN & CONTROLS --- */
.id-portal-main {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  width: 100%;
  flex-grow: 1;
}

.id-controls-bar {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.id-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.id-search-box input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.id-search-box input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.id-search-box svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
}

.id-filter-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.filter-tab {
  padding: 0.5rem 1rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #94A3B8;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-tab.active {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.id-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem 2rem;
  justify-items: center;
}

/* ============================================================
   CARD 3D FLIP CONTAINER & EXACT REFERENCE STYLING
   ============================================================ */
.card-wrapper {
  perspective: 1000px;
  width: 100%;
  max-width: var(--card-width);
  height: var(--card-height);
  position: relative;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-wrapper.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-dark);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-back {
  transform: rotateY(180deg);
  background: #11141A;
}

/* --- CARD FRONT LAYOUT --- */

/* Top White Header Area */
.ref-header-top {
  background: #FFFFFF;
  height: 110px;
  padding: 0.85rem 1rem 0 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.65rem;
  position: relative;
  z-index: 2;
}

.ref-header-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  margin-top: 2px;
}

.ref-header-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #0F172A;
  font-size: 1.15rem;
  line-height: 1.15;
  text-align: left;
  letter-spacing: -0.01em;
}

.ref-header-brand span {
  display: block;
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Geometric Wing Accents Section */
.ref-wings-container {
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 3;
  pointer-events: none;
}

.ref-wing-left {
  position: absolute;
  left: 0;
  top: 0;
  width: 95px;
  height: 60px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  clip-path: polygon(0 0, 100% 35%, 0 100%);
}

.ref-wing-right {
  position: absolute;
  right: 0;
  top: 0;
  width: 95px;
  height: 60px;
  background: linear-gradient(135deg, #0A2342 0%, #1E293B 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 35%);
}

/* Center Circular Avatar Frame - No Text Overlap */
.ref-avatar-container {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.ref-avatar-ring {
  width: 135px;
  height: 135px;
  border-radius: 50%;
  background: #FFFFFF;
  padding: 5px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-avatar-img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #1E293B;
  border: 3px solid #121418;
}

.ref-avatar-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Card Dark Body Content */
.ref-body-content {
  margin-top: 90px;
  padding: 0 1.25rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  text-align: center;
}

.ref-member-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.ref-designation-badge {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 1.1rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* Key-Value Details List with Full Un-truncated Emails */
.ref-info-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

.ref-info-row {
  display: flex;
  align-items: flex-start;
  font-size: 0.825rem;
  font-family: 'Inter', sans-serif;
}

.ref-info-key {
  width: 60px;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
}

.ref-info-colon {
  width: 16px;
  color: #94A3B8;
  font-weight: 700;
  text-align: center;
  flex-shrink: 0;
}

.ref-info-val {
  font-weight: 500;
  color: #F1F5F9;
  flex: 1;
  word-break: break-word;
  white-space: normal;
  font-size: 0.8rem;
  line-height: 1.3;
}

/* Middle Member Profile QR Code Container (Borderless, White modules on dark background) */
.ref-middle-qr-container {
  margin: 0.35rem 0 0.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.ref-middle-qr-box {
  width: 75px;
  height: 75px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.ref-middle-qr-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.ref-qr-subtext {
  font-size: 0.65rem;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Card Footer Box (Single-line Web & Mail) */
.ref-card-footer-box {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.45rem 0.4rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.ref-footer-inline {
  font-size: 0.675rem;
  font-weight: 500;
  color: #E2E8F0;
  letter-spacing: 0.01em;
}

.ref-footer-label {
  font-weight: 700;
  color: var(--accent-sky);
  text-transform: lowercase;
}

.ref-footer-link-text {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
}

.ref-footer-link-text:hover {
  text-decoration: underline;
}

.ref-footer-val-text {
  color: #CBD5E1;
  font-weight: 500;
}

/* --- CARD BACK LAYOUT --- */
.ref-back-header {
  background: #FFFFFF;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}

.ref-back-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  text-align: center;
}

.ref-back-terms {
  font-size: 0.675rem;
  color: #94A3B8;
  line-height: 1.45;
  text-align: justify;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ref-back-qr-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 1rem 0;
}

.ref-back-qr {
  width: 90px;
  height: 90px;
  background: #FFFFFF;
  padding: 5px;
  border-radius: 8px;
}

.ref-back-qr img {
  width: 100%;
  height: 100%;
}

.ref-back-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ref-sign-text {
  font-family: cursive;
  font-size: 1.2rem;
  color: var(--accent-blue-light);
  transform: rotate(-5deg);
}

.ref-sign-line {
  width: 100px;
  height: 1px;
  background: #94A3B8;
  margin: 4px 0;
}

.ref-sign-title {
  font-size: 0.6rem;
  color: #94A3B8;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* CARD ACTION BUTTONS BELOW CARD */
.card-action-bar {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  width: var(--card-width);
}

.btn-card-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-card-action:hover {
  background: var(--accent-blue);
  color: #FFFFFF;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* MODAL FOR NEW CARD GENERATOR */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #11141A;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  color: #F8FAFC;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.modal-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 1.5rem;
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #CBD5E1;
}

.form-group input,
.form-group select {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 0.875rem;
  outline: none;
}

/* FOOTER */
.id-portal-footer {
  background: #090D16;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #94A3B8;
  margin-top: 3rem;
}

.id-footer-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.id-footer-link {
  color: var(--accent-blue-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.id-footer-link:hover {
  color: #FFFFFF;
  transform: translateY(-1px);
}

.id-footer-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

/* ============================================================
   A4 LANDSCAPE PRINTING RULES & SCREEN PREVIEW (10 CARDS PER A4 SHEET)
   ============================================================ */

/* A4 Landscape Page Configuration */
@page {
  size: A4 landscape;
  margin: 4mm 5mm;
}

/* Screen Preview Styles for A4 Landscape Sheet */
.print-options-banner {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.print-options-info h3 {
  font-size: 1rem;
  color: #60A5FA;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 0.2rem;
}

.print-options-info p {
  font-size: 0.8rem;
  color: #CBD5E1;
}

.print-options-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.select-nvg {
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.a4-preview-wrapper {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  margin: 1.5rem 0 3rem 0;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.a4-preview-wrapper.active {
  display: flex;
}

.a4-sheet-page {
  width: 297mm;
  min-width: 297mm;
  height: 210mm;
  background: #0B0E14;
  border: 2px dashed rgba(37, 99, 235, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 5mm 6mm;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.a4-sheet-header-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.a4-sheet-header-label span {
  color: #60A5FA;
}

.a4-landscape-grid {
  display: grid;
  grid-template-columns: repeat(5, 54mm);
  grid-template-rows: repeat(2, 86.4mm);
  gap: 8mm 3.8mm;
  justify-content: center;
  align-content: center;
  margin: auto 0;
}

/* Scaled Print Cell Container */
.print-card-cell {
  width: 54mm;
  height: 86.4mm;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-sizing: border-box;
  background: #121418;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.print-card-cell .card-wrapper {
  width: 350px !important;
  height: 560px !important;
  transform: scale(0.58315) !important;
  transform-origin: top left !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.print-card-cell .card-inner {
  transform: none !important;
  box-shadow: none !important;
  border-radius: 16px !important;
}

.print-card-cell .card-face {
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
}

.print-card-cell .card-face.card-front {
  display: flex !important;
  transform: none !important;
}

.print-card-cell .card-face.card-back {
  display: flex !important;
  transform: none !important;
}

.print-card-cell.show-back .card-face.card-front {
  display: none !important;
}

/* PRINT ENGINE STYLES */
@media print {
  *,
  *::before,
  *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  html, body {
    background: #FFFFFF !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    -webkit-font-smoothing: antialiased;
  }

  /* Hide interactive portal header, controls, footers, buttons */
  .id-portal-header,
  .id-controls-bar,
  .print-options-banner,
  .card-action-bar,
  .id-portal-footer,
  .modal-overlay,
  .a4-sheet-header-label,
  #printAllBtn,
  #addCardBtn {
    display: none !important;
  }

  .id-portal-main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* When printing batch A4 sheets, hide standard single grid */
  body.print-sheets-mode .id-cards-grid {
    display: none !important;
  }

  body.print-sheets-mode .a4-preview-wrapper {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .a4-sheet-page {
    width: 287mm !important;
    height: 200mm !important;
    min-width: 287mm !important;
    background: #FFFFFF !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 2mm 0 !important;
    page-break-after: always !important;
    break-after: page !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .a4-sheet-page:last-child {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  .a4-landscape-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 54mm) !important;
    grid-template-rows: repeat(2, 86.4mm) !important;
    gap: 10mm 4.2mm !important;
    justify-content: center !important;
    align-content: center !important;
    margin: 0 auto !important;
  }

  .print-card-cell {
    width: 54mm !important;
    height: 86.4mm !important;
    box-shadow: none !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .print-card-cell .card-wrapper {
    width: 350px !important;
    height: 560px !important;
    transform: scale(0.58315) !important;
    transform-origin: top left !important;
  }

  .print-card-cell .ref-header-top {
    background: #FFFFFF !important;
  }

  .print-card-cell .card-face.card-front {
    background: #121418 !important;
    color: #FFFFFF !important;
  }

  .print-card-cell .card-face.card-back {
    background: #11141A !important;
    color: #FFFFFF !important;
  }

  .print-card-cell .ref-wing-left {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  }

  .print-card-cell .ref-wing-right {
    background: linear-gradient(135deg, #0A2342 0%, #1E293B 100%) !important;
  }

  .print-card-cell .ref-designation-badge {
    background: #2563EB !important;
    color: #FFFFFF !important;
  }

  .print-card-cell .ref-avatar-ring {
    background: #FFFFFF !important;
  }

  .print-card-cell .ref-card-footer-box {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  .print-card-cell .ref-footer-label {
    color: #3B82F6 !important;
  }
}