/* ==========================================================================
   ग्रामीण पत्रकार एसोसिएशन, उत्तर प्रदेश (जिला आगरा)
   आधिकारिक पोर्टल और सदस्य प्रबंधन प्रणाली - मुख्य स्टाइलशीट
   ========================================================================== */

:root {
  --navy: #102a43;
  --navy2: #183b56;
  --red: #b4232f;
  --red2: #d83a46;
  --ink: #17212b;
  --muted: #637381;
  --line: #dbe2e8;
  --bg: #f3f6f8;
  --white: #ffffff;
  --green: #176b4d;
  --green-light: #e5f6ed;
  --gold: #b7791f;
  --gold-light: #fff3d9;
  --shadow: 0 8px 28px rgba(16, 42, 67, 0.08);
  --shadow-sm: 0 2px 8px rgba(16, 42, 67, 0.05);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Noto Sans Devanagari", "Mangal", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font: inherit;
}

button, a {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ----------------- Top Header & Branding ----------------- */
.topline {
  height: 5px;
  background: linear-gradient(90deg, var(--red) 0 33%, var(--white) 33% 66%, var(--navy) 66%);
}

header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 25;
}

.head-inner {
  max-width: 1220px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.brand {
  flex: 1;
  min-width: 0;
}

.brand h1 {
  font-size: clamp(16px, 2.3vw, 23px);
  line-height: 1.3;
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.brand p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ----------------- Buttons ----------------- */
.btn {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 16px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.15s ease;
  font-size: 14px;
}

.btn-primary {
  background: var(--red);
  color: white;
}

.btn-primary:hover {
  background: #941c26;
}

.btn-dark {
  background: var(--navy);
  color: white;
}

.btn-dark:hover {
  background: var(--navy2);
}

#btnLookupOldMember {
  background: var(--navy);
}

#btnLookupOldMember:hover {
  background: var(--navy2);
}

.btn-light {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy);
}

.btn-light:hover {
  background: #f8fafc;
  border-color: #c0ccd8;
}

.btn-success {
  background: var(--green);
  color: white;
}

.btn-success:hover {
  background: #11523a;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ----------------- Navigation ----------------- */
.nav-wrap {
  background: var(--navy);
  color: white;
  border-bottom: 2px solid #0b1f33;
}

.nav {
  max-width: 1220px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  gap: 5px;
  overflow-x: auto;
}

.nav button {
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: #e5edf3;
  padding: 13px 18px;
  border-bottom: 3px solid transparent;
  font-weight: 650;
  font-size: 15px;
  transition: all 0.15s ease;
}

.nav button.active,
.nav button:hover {
  border-bottom-color: #ef6670;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* ----------------- Main Layout ----------------- */
.container {
  max-width: 1220px;
  margin: 24px auto;
  padding: 0 20px;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 16px;
}

.section-title h2 {
  margin: 0;
  font-size: 24px;
  color: var(--navy);
}

.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ----------------- Panels & Cards ----------------- */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.feature-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fce8e9;
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ----------------- Form Elements ----------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.span-2 {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: #344b5d;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  padding: 11px 13px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #376b8b;
  box-shadow: 0 0 0 3px rgba(55, 107, 139, 0.15);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.field small {
  font-size: 11.5px;
  color: var(--muted);
}

.upload-box {
  border: 1px dashed #aebdc9;
  padding: 14px;
  border-radius: 10px;
  background: #fafcfd;
}

.preview-img {
  max-width: 140px;
  max-height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 8px;
  border: 1px solid var(--line);
}

/* ----------------- Alerts & Notices ----------------- */
.notice {
  background: #fff8e8;
  border: 1px solid #f0d9a4;
  color: #6c4c12;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}

.info {
  background: #eef6fb;
  border: 1px solid #c8dce9;
  color: #234b63;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}

.danger {
  background: #fff0f0;
  border: 1px solid #efc2c5;
  color: #8c2029;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}

.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 13.5px;
}

.empty {
  border: 1px dashed #c8d2dc;
  background: #fafcfd;
  border-radius: 12px;
  text-align: center;
  padding: 38px 20px;
  color: var(--muted);
}

.empty strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 5px;
}

/* ----------------- Dashboard Layout & Stats ----------------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.dash-stat {
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  transition: transform 0.15s ease;
}

.dash-stat:hover {
  transform: translateY(-2px);
}

.dash-stat span {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.dash-stat b {
  display: block;
  font-size: 26px;
  color: var(--navy);
  margin-top: 4px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.tabs button {
  background: #f4f7f9;
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.15s ease;
}

.tabs button.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.role-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: #eef2f5;
  color: var(--navy);
}

.tehsil-badge {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* ----------------- Tables ----------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--white);
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: #4c6070;
  background: #f7fafc;
  white-space: nowrap;
  font-weight: 700;
}

tr:hover td {
  background: #fafbfc;
}

.status {
  font-size: 11.5px;
  border-radius: 30px;
  padding: 4px 9px;
  background: #eef2f5;
  color: #506170;
  white-space: nowrap;
  font-weight: 650;
  display: inline-block;
}

.status.pending {
  background: var(--gold-light);
  color: #855a08;
}

.status.approved {
  background: var(--green-light);
  color: var(--green);
}

.status.rejected {
  background: #fde8e8;
  color: #9b252c;
}

.status.verified {
  background: #dbeafe;
  color: #1e40af;
}

/* ----------------- Modals & Toast ----------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 21, 33, 0.65);
  backdrop-filter: blur(2px);
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal {
  background: var(--white);
  border-radius: 14px;
  padding: 24px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.modal h2, .modal h3 {
  margin-top: 0;
  color: var(--navy);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 60;
  max-width: 90vw;
  font-size: 14px;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

/* ----------------- Footer ----------------- */
.footer {
  margin-top: 48px;
  background: #0b2030;
  color: #d2dfe8;
  padding: 36px 20px;
}

.footer-inner {
  max-width: 1220px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer strong {
  color: white;
  font-size: 15px;
}

.footer p {
  font-size: 12.5px;
  color: #aebdca;
  margin: 6px 0;
}

/* ----------------- Responsive Media Queries ----------------- */
@media (max-width: 850px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .head-inner {
    padding: 10px 12px;
    gap: 10px;
  }
  .logo {
    width: 44px;
    height: 44px;
  }
  .brand p {
    font-size: 10px;
  }
  .head-actions .btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  .container {
    padding: 0 12px;
    margin: 16px auto;
  }
  .grid, .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .panel {
    padding: 16px;
  }
  .section-title h2 {
    font-size: 20px;
  }
  .nav {
    padding: 0 8px;
  }
  .nav button {
    padding: 12px 12px;
    font-size: 14px;
  }
}

/* ----------------- Role-Based Navigation & Management UI ----------------- */
.dash-role-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.nav-section-block {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}

.nav-section-header {
  margin-bottom: 8px;
}

.nav-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.tabs-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dash-nav-btn {
  background: var(--white);
  border: 1px solid #cbd5df;
  padding: 9px 15px;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dash-nav-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.dash-nav-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 2px 6px rgba(16, 42, 67, 0.2);
}

.badge-count {
  background: var(--red);
  color: var(--white);
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}

.badge-count.zero {
  background: #94a3b8;
}

.filter-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 18px;
}

.filter-grid-common {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.filter-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.proposal-banner {
  padding: 14px 18px;
  border-radius: 9px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.proposal-banner.draft {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.proposal-banner.pending {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
}

.proposal-banner.returned {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

.proposal-banner.approved {
  background: #dcfce7;
  border: 1px solid #22c55e;
  color: #166534;
}

.proposal-banner.rejected {
  background: #fde8e8;
  border: 1px solid #dc2626;
  color: #991b1b;
}

/* ----------------- Print Styles ----------------- */
@media print {
  header, .nav-wrap, .footer, .tabs, .dash-role-nav, .filter-box, .btn, #loginTop, #installBtn, .head-actions {
    display: none !important;
  }
  body, .container, .panel {
    background: white !important;
    color: black !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
  .table-wrap {
    border: 1px solid #333 !important;
  }
  th, td {
    border-bottom: 1px solid #333 !important;
  }
}

/* =====================================================================
   मास्टर पहचान-पत्र (GPA Agra Master ID Card) UI एवं प्रिंट शैलियाँ
   ===================================================================== */
.id-card-modal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.id-card-tabs-bar {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.id-card-tab-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.id-card-tab-btn.active {
  background: #0f348c;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 52, 140, 0.25);
}

.id-cards-display-area {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  padding: 8px 0;
  width: 100%;
}

/* स्क्रीन पर 55mm x 85mm का आनुपातिक प्रीव्यू (Scaling ~1.5x of physical 55x85mm for desktop clarity) */
.gpa-id-card-visual {
  width: 320px;
  height: 494.5px; /* 320 / 55 * 85 = 494.5px */
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 2px 5px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

/* 1. लाल प्रेस बैनर */
.gpa-id-card-visual .card-press-banner {
  background: #ff1a1a;
  color: #ffffff;
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 3px;
  text-align: center;
  padding: 6px 0;
  line-height: 1;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* 2. फ्रंट हेडर */
.gpa-id-card-visual .card-front-head {
  padding: 6px 12px 0 12px;
  position: relative;
  flex-shrink: 0;
}

.gpa-id-card-visual .card-reg-no {
  position: absolute;
  top: 5px;
  right: 12px;
  font-size: 8.5px;
  font-weight: 700;
  color: #111;
  line-height: 1;
}

.gpa-id-card-visual .card-brand-flex {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.gpa-id-card-visual .card-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
}

.gpa-id-card-visual .card-brand-text {
  flex: 1;
}

.gpa-id-card-visual .card-org-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0d3b9e;
  line-height: 1.15;
  letter-spacing: -0.2px;
}

.gpa-id-card-visual .card-org-address {
  font-size: 7.2px;
  color: #222222;
  line-height: 1.2;
  margin-top: 2px;
  font-weight: 500;
}

/* 3. परिचयपत्र संख्या पंक्ति */
.gpa-id-card-visual .card-num-line {
  text-align: center;
  font-size: 12.5px;
  color: #000;
  font-weight: 600;
  margin: 6px 0 5px 0;
  line-height: 1;
  flex-shrink: 0;
}
.gpa-id-card-visual .card-num-line strong {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
}

/* 4. फोटो व स्टाम्प */
.gpa-id-card-visual .card-photo-wrapper {
  position: relative;
  width: 148px;
  height: 192px;
  margin: 0 auto;
  flex-shrink: 0;
}

.gpa-id-card-visual .card-photo-box {
  width: 100%;
  height: 100%;
  border: 1.5px solid #111;
  border-radius: 6px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gpa-id-card-visual .card-member-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.gpa-id-card-visual .card-stamp-img {
  position: absolute;
  width: 95px;
  height: 95px;
  right: -30px;
  bottom: -20px;
  object-fit: contain;
  transform: rotate(-15deg);
  pointer-events: none;
  opacity: 0.92;
  z-index: 5;
  mix-blend-mode: multiply;
}

/* 5. सदस्य नाम (लाल, बोल्ड) */
.gpa-id-card-visual .card-member-name {
  text-align: center;
  color: #e60000;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 6px;
  margin-bottom: 4px;
  padding: 0 10px;
  flex-shrink: 0;
}

/* 6. सदस्य विवरण तालिका */
.gpa-id-card-visual .card-info-table {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 2.5px;
  flex-grow: 1;
}

.gpa-id-card-visual .card-info-row {
  display: flex;
  align-items: baseline;
  font-size: 10px;
  line-height: 1.25;
  color: #000;
}

.gpa-id-card-visual .card-info-lbl {
  width: 65px;
  font-weight: 700;
  flex-shrink: 0;
  color: #000;
  text-align: justify;
  text-align-last: justify;
  padding-right: 6px;
}

.gpa-id-card-visual .card-info-val {
  flex: 1;
  font-weight: 600;
  color: #111;
  word-break: break-word;
}

.gpa-id-card-visual .card-info-val.mono {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 10.5px;
}

/* 7. डार्क-ब्लू फुटर */
.gpa-id-card-visual .card-navy-foot {
  width: 100%;
  height: 26px;
  background: #1b2a6b;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 6px;
  flex-shrink: 0;
  margin-top: auto;
}

/* ==================== BACK SIDE ==================== */
.gpa-id-card-visual .card-back-title {
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #0d3b9e;
  margin-top: 5px;
  line-height: 1.1;
}

.gpa-id-card-visual .card-back-rule-line {
  width: 170px;
  height: 1px;
  background: #0d3b9e;
  margin: 3px auto 5px auto;
}

.gpa-id-card-visual .card-rules-list {
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 1.8px;
  flex-shrink: 0;
}

.gpa-id-card-visual .card-rule-row {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  line-height: 1.12;
}

.gpa-id-card-visual .card-rule-badge {
  background: #ff1a1a;
  color: #ffffff;
  font-size: 7px;
  font-weight: 800;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-family: 'Roboto Mono', sans-serif;
}

.gpa-id-card-visual .card-rule-text {
  font-size: 7.2px;
  color: #111;
  font-weight: 500;
  line-height: 1.12;
}

.gpa-id-card-visual .card-contact-section {
  text-align: center;
  margin-top: 6px;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.gpa-id-card-visual .card-contact-pill {
  display: inline-block;
  background: #ff1a1a;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 14px;
  border-radius: 10px;
  line-height: 1.15;
}

.gpa-id-card-visual .card-contact-line1 {
  font-size: 7.8px;
  font-weight: 600;
  color: #111;
  margin-top: 2px;
}

.gpa-id-card-visual .card-contact-line2 {
  font-size: 7.8px;
  font-weight: 600;
  color: #111;
  margin-top: 1px;
}
.gpa-id-card-visual .card-contact-line2 strong {
  color: #0d3b9e;
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
}

.gpa-id-card-visual .card-back-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 12px 6px 12px;
  flex-grow: 1;
}

.gpa-id-card-visual .card-qr-box {
  width: 82px;
  height: 82px;
  border: 1px dashed #64748b;
  padding: 3px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gpa-id-card-visual .card-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.gpa-id-card-visual .card-qr-caption {
  font-size: 6.5px;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
  text-align: center;
}

.gpa-id-card-visual .card-sign-block {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 140px;
}

.gpa-id-card-visual .card-sign-img {
  max-width: 105px;
  max-height: 35px;
  object-fit: contain;
  margin-bottom: -2px;
}

.gpa-id-card-visual .card-sign-name {
  color: #0d3b9e;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.1;
}

.gpa-id-card-visual .card-sign-role {
  font-size: 8.5px;
  font-weight: 700;
  color: #000;
  line-height: 1.1;
  margin-top: 1px;
}

.gpa-id-card-visual .card-sign-org {
  font-size: 7.8px;
  font-weight: 600;
  color: #111;
  line-height: 1.1;
}

.gpa-id-card-visual .card-sign-sub {
  font-size: 7.2px;
  font-weight: 500;
  color: #333;
  line-height: 1.1;
}


