/* ========== MEMBER PORTAL ========== */
.member-body {
  background: var(--background);
}

.member-layout {
  display: flex;
  min-height: 100vh;
}

.member-sidebar {
  width: 260px;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.member-sidebar-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.member-sidebar-header img {
  height: 36px;
}

.member-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary);
}

.demo-member-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--gold-light);
  color: #92600a;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  margin-left: auto;
}

.member-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem;
}

.member-nav-section {
  margin-bottom: 1rem;
}

.member-nav-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 0 0.75rem;
  margin-bottom: 0.375rem;
}

.member-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  margin-bottom: 2px;
}

.member-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.member-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.member-link .icon {
  width: 1.125rem;
  height: 1.125rem;
  opacity: 0.8;
}

.member-sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.member-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.member-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.member-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.member-welcome h1 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.member-welcome p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

.member-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.member-content {
  flex: 1;
  padding: 1.5rem;
}

/* Member info strip */
.member-info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.member-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.member-info-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.member-info-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark);
}

/* Service cards grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-icon.green { background: var(--primary-light); }
.service-icon.gold { background: var(--gold-light); }
.service-icon.blue { background: #dbeafe; }
.service-icon.orange { background: #fef3c7; }
.service-icon.purple { background: #f3e8ff; }

.service-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.service-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 1rem;
}

/* ID Card */
.id-card {
  max-width: 420px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  color: white;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.id-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: rgba(212, 160, 23, 0.15);
  border-radius: 50%;
}

.id-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.id-card-header img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.id-card-org {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.id-card-body {
  position: relative;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.id-photo {
  width: 80px;
  height: 96px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.id-details {
  flex: 1;
}

.id-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.id-row {
  font-size: 0.8125rem;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.id-row strong {
  opacity: 1;
}

.id-qr {
  width: 64px;
  height: 64px;
  background: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  color: var(--dark);
  font-size: 0.625rem;
  text-align: center;
  padding: 4px;
}

.id-status {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.2);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
}

/* Certificate preview */
.certificate-preview {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  position: relative;
}

.certificate-preview::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  pointer-events: none;
}

.cert-logo {
  height: 56px;
  margin: 0 auto 1rem;
}

.cert-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.cert-subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.cert-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.cert-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  font-family: var(--font-heading);
  margin: 0.75rem 0;
}

.cert-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.cert-signatures {
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
}

.cert-sig {
  text-align: center;
}

.cert-sig-line {
  width: 140px;
  border-top: 1px solid var(--border);
  margin: 0 auto 0.5rem;
  padding-top: 0.5rem;
}

.cert-sig-role {
  font-size: 0.75rem;
  color: var(--muted);
}

/* =========================================================
   Opportunity / Scholarship Cards
   ========================================================= */

.hub-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.hub-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.hub-card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hub-card-org {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hub-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hub-card-desc {
  font-size: 0.875rem;
  color: var(--text);
  flex: 1;
  margin-bottom: 1rem;
}

/* =========================================================
   Career Opportunities Page
   ========================================================= */

.opportunities-page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.opportunities-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.opportunities-heading h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--dark);
}

.opportunities-heading p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Filters */

.filter-bar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px 180px;
  gap: 0.75rem;
  align-items: center;

  width: 100%;
  padding: 1rem;

  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);

  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box .search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  padding-left: 2.65rem;
}

.filter-bar select {
  width: 100%;
  min-height: 44px;
  cursor: pointer;
}

/* Section heading */

.opportunity-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.opportunity-section-heading h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

.opportunity-section-heading p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.opportunity-count {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}

/* Opportunity grid */

.opp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  align-items: stretch;
}

/* Opportunity card */

.opp-grid .opportunity-card {
  min-width: 0;
  min-height: 292px;
  padding: 1.35rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.opp-grid .opportunity-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.opportunity-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.opportunity-card-top .badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
}

.opportunity-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--success);
  font-size: 0.6875rem;
  font-weight: 600;
}

.opportunity-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.opp-grid .opportunity-card .hub-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.opp-grid .opportunity-card .hub-card-org {
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.15rem;
}

.opp-grid .opportunity-card .hub-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.85rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.opp-grid .opportunity-card .hub-card-meta span {
  min-width: 0;
  padding-left: 0.8rem;
  position: relative;
}

.opp-grid .opportunity-card .hub-card-meta span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}

.opp-grid .opportunity-card .hub-card-meta span:last-child {
  color: var(--text);
  font-weight: 500;
}

.opportunity-button {
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Opportunity-specific badge colors */

.opp-grid .badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.opp-grid .badge-info {
  background: #dbeafe;
  color: #1d4ed8;
}

/* =========================================================
   Opportunity Page Responsive
   ========================================================= */

@media (max-width: 1200px) {
  .opp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar {
    grid-template-columns: minmax(240px, 1fr) 190px 170px;
  }
}

@media (max-width: 1024px) {
  .member-content {
    padding: 1.5rem;
  }

  .member-header {
    padding: 0 1.5rem;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .search-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .member-content {
    padding: 1.25rem;
  }

  .member-header {
    height: 64px;
    padding: 0 1.25rem;
  }

  .opportunities-heading {
    margin-bottom: 1rem;
  }

  .opportunities-heading h2 {
    font-size: 1.2rem;
  }

  .opportunities-heading p {
    font-size: 0.75rem;
  }

  .filter-bar {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .search-box {
    grid-column: auto;
  }

  .opportunity-section-heading {
    align-items: flex-start;
  }

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

  .opp-grid .opportunity-card {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .member-content {
    padding: 1rem 0.75rem 2rem;
  }

  .member-header {
    padding: 0 1rem;
  }

  .member-welcome h1 {
    font-size: 1rem;
  }

  .member-welcome p {
    font-size: 0.7rem;
  }

  .demo-banner {
    margin-bottom: 1rem;
  }

  .opportunities-heading h2 {
    font-size: 1.05rem;
  }

  .opportunities-heading p {
    font-size: 0.7rem;
  }

  .opportunity-section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .opp-grid .opportunity-card {
    padding: 1.1rem;
  }

  .opp-grid .opportunity-card .hub-card-meta {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .opportunity-button {
    min-height: 42px;
  }
}

/* Network profile cards */

.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.network-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  text-align: center;
  transition: all var(--transition);
}

.network-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.network-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 0.75rem;
}

.network-name {
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.network-role {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.network-location {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Mobile */
@media (max-width: 1024px) {
  .member-sidebar {
    transform: translateX(-100%);
  }
  .member-sidebar.open {
    transform: translateX(0);
  }
  .member-main {
    margin-left: 0;
  }
}

/* Benefits section (public) */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: all var(--transition);
}

.benefit-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.benefit-num {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.benefit-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.benefit-text {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Journey steps */
.journey-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.journey-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  text-align: center;
  min-width: 120px;
}

.journey-step-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.journey-step-text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dark);
}

.journey-arrow {
  color: var(--gold);
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .journey-arrow {
    display: none;
  }
  .journey-steps {
    flex-direction: column;
  }
}

/* Value checklist */
.value-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.value-item svg {
  color: var(--success);
  flex-shrink: 0;
}

/* =========================================================
   Mobile Sidebar Overlay
   ========================================================= */

.sidebar-overlay {
  display: none;
}

@media (max-width: 1024px) {
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(15, 23, 42, 0.4);
  }

  .sidebar-overlay.active {
    display: block;
  }

  .sidebar-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    font-size: 1.1rem;
  }
}



/* =========================================================
   STGA MEMBERSHIP ID PAGE
   ========================================================= */

.id-page {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.id-page-heading {
  margin-bottom: 1.5rem;
}

.id-page-heading h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
}

.id-page-heading p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}


/* =========================================================
   ID CARD
   ========================================================= */

.stga-id-card {
  position: relative;

  width: 100%;
  max-width: 760px;
  min-height: 420px;

  margin: 0 auto;

  overflow: hidden;

  color: #ffffff;

  border-radius: 20px;

  background:
    linear-gradient(
      135deg,
      var(--primary-dark) 0%,
      var(--primary) 55%,
      #166534 100%
    );

  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.18);

  isolation: isolate;
}


/* Decorative pattern */

.id-card-pattern {
  position: absolute;
  inset: 0;

  opacity: 0.09;

  background-image:
    linear-gradient(
      135deg,
      transparent 0 48%,
      rgba(255,255,255,0.4) 49%,
      transparent 50%
    );

  background-size: 28px 28px;

  pointer-events: none;
  z-index: -1;
}


/* Decorative glow */

.id-card-glow {
  position: absolute;

  width: 360px;
  height: 360px;

  right: -170px;
  top: -190px;

  border-radius: 50%;

  background: rgba(212, 160, 23, 0.22);

  pointer-events: none;
}


/* =========================================================
   CARD HEADER
   ========================================================= */

.stga-id-header {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;

  padding: 1.5rem 1.75rem 1.25rem;

  border-bottom: 1px solid rgba(255,255,255,0.16);
}


.stga-id-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;

  min-width: 0;
}


.stga-logo-wrap {
  width: 50px;
  height: 50px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 7px;

  border-radius: 12px;

  background: rgba(255,255,255,0.96);
}


.stga-logo-wrap img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}


.stga-brand-text {
  min-width: 0;
}


.stga-brand-name {
  font-family: var(--font-heading);

  font-size: 1.25rem;
  font-weight: 700;

  letter-spacing: 0.04em;

  line-height: 1.2;
}


.stga-brand-full {
  margin-top: 0.2rem;

  max-width: 360px;

  font-size: 0.67rem;
  line-height: 1.35;

  color: rgba(255,255,255,0.76);
}


.stga-id-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  flex-shrink: 0;

  padding: 0.4rem 0.7rem;

  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;

  background: rgba(255,255,255,0.1);

  font-size: 0.65rem;
  font-weight: 700;

  letter-spacing: 0.04em;
}


.status-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #86efac;

  box-shadow:
    0 0 0 3px rgba(134,239,172,0.15);
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.stga-id-content {
  position: relative;

  display: grid;

  grid-template-columns: 130px minmax(0, 1fr) 92px;

  align-items: center;

  gap: 1.5rem;

  padding: 2rem 1.75rem;
}


/* =========================================================
   MEMBER PHOTO
   ========================================================= */

.stga-member-photo {
  width: 130px;
  height: 158px;

  padding: 5px;

  border-radius: 12px;

  background: rgba(255,255,255,0.16);

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.15);
}


.photo-placeholder {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 0.5rem;

  border-radius: 8px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.16),
      rgba(255,255,255,0.06)
    );

  border: 1px dashed rgba(255,255,255,0.4);

  color: rgba(255,255,255,0.72);
}


.photo-placeholder svg {
  width: 48px;
  height: 48px;
}


.photo-placeholder span {
  font-size: 0.58rem;
  font-weight: 600;

  letter-spacing: 0.12em;
}


/* =========================================================
   MEMBER INFORMATION
   ========================================================= */

.stga-member-info {
  min-width: 0;
}


.stga-member-name {
  font-family: var(--font-heading);

  font-size: 1.7rem;
  font-weight: 700;

  line-height: 1.25;

  word-break: break-word;
}


.stga-member-role {
  margin-top: 0.3rem;
  margin-bottom: 1.25rem;

  color: rgba(255,255,255,0.68);

  font-size: 0.65rem;
  font-weight: 600;

  letter-spacing: 0.12em;
}


.stga-member-details {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 0.85rem 1.25rem;
}


.id-detail {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 0.2rem;
}


.id-detail-label {
  color: rgba(255,255,255,0.58);

  font-size: 0.6rem;
  font-weight: 500;

  text-transform: uppercase;
  letter-spacing: 0.05em;
}


.id-detail strong {
  min-width: 0;

  color: #ffffff;

  font-size: 0.76rem;
  font-weight: 600;

  overflow-wrap: anywhere;
}


/* =========================================================
   QR PLACEHOLDER
   ========================================================= */

.stga-id-qr {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 0.5rem;
}


.qr-placeholder {
  position: relative;

  width: 82px;
  height: 82px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  border-radius: 8px;

  background: #ffffff;

  color: #111827;
}


.qr-grid {
  position: absolute;
  inset: 9px;

  opacity: 0.9;

  background:
    repeating-linear-gradient(
      0deg,
      #111827 0 3px,
      transparent 3px 7px
    ),
    repeating-linear-gradient(
      90deg,
      #111827 0 3px,
      transparent 3px 7px
    );

  mix-blend-mode: multiply;
}


.qr-placeholder span {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 27px;
  height: 27px;

  border: 2px solid #111827;

  background: #ffffff;

  font-size: 0.48rem;
  font-weight: 800;

  letter-spacing: 0.03em;
}


.stga-id-qr small {
  color: rgba(255,255,255,0.65);

  font-size: 0.56rem;
  text-align: center;
}


/* =========================================================
   CARD FOOTER
   ========================================================= */

.stga-id-footer {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;

  padding: 0.85rem 1.75rem;

  border-top: 1px solid rgba(255,255,255,0.15);

  background: rgba(0,0,0,0.08);

  color: rgba(255,255,255,0.62);

  font-size: 0.58rem;
  font-weight: 500;
}


.stga-id-footer span:last-child {
  font-weight: 600;
  letter-spacing: 0.06em;
}


/* =========================================================
   ACTION BUTTONS
   ========================================================= */

.id-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 0.75rem;

  margin: 1.25rem auto 0;
}


.id-card-actions .btn {
  min-width: 150px;
}


/* =========================================================
   INFORMATION NOTE
   ========================================================= */

.id-card-note {
  display: flex;
  align-items: flex-start;

  gap: 0.75rem;

  max-width: 760px;

  margin: 1.5rem auto 0;
  padding: 1rem 1.1rem;

  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  background: var(--white);
}


.id-note-icon {
  width: 32px;
  height: 32px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;

  background: var(--primary-light);

  color: var(--primary);
}


.id-note-icon svg {
  width: 17px;
  height: 17px;
}


.id-card-note strong {
  display: block;

  margin-bottom: 0.2rem;

  color: var(--dark);

  font-size: 0.78rem;
}


.id-card-note p {
  margin: 0;

  color: var(--muted);

  font-size: 0.72rem;
  line-height: 1.5;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

  .id-page {
    max-width: 620px;
  }

  .stga-id-card {
    min-height: auto;

    border-radius: 16px;
  }

  .stga-id-header {
    padding: 1.25rem;
  }

  .stga-id-content {
    grid-template-columns: 100px minmax(0, 1fr);

    gap: 1rem;

    padding: 1.5rem 1.25rem;
  }

  .stga-member-photo {
    width: 100px;
    height: 125px;
  }

  .stga-member-name {
    font-size: 1.35rem;
  }

  .stga-id-qr {
    grid-column: 1 / -1;

    flex-direction: row;
    justify-content: flex-end;

    margin-top: -0.25rem;
  }

  .stga-id-qr small {
    display: none;
  }

  .qr-placeholder {
    width: 68px;
    height: 68px;
  }

  .stga-id-footer {
    padding: 0.75rem 1.25rem;
  }
}


@media (max-width: 520px) {

  .id-page-heading h2 {
    font-size: 1.15rem;
  }

  .id-page-heading p {
    font-size: 0.72rem;
  }

  .stga-id-header {
    align-items: flex-start;

    padding: 1rem;
  }

  .stga-id-brand {
    gap: 0.6rem;
  }

  .stga-logo-wrap {
    width: 42px;
    height: 42px;

    padding: 6px;
  }

  .stga-brand-name {
    font-size: 1rem;
  }

  .stga-brand-full {
    max-width: 190px;

    font-size: 0.55rem;
  }

  .stga-id-status {
    padding: 0.3rem 0.5rem;

    font-size: 0.55rem;
  }

  .stga-id-content {
    grid-template-columns: 82px minmax(0, 1fr);

    gap: 0.85rem;

    padding: 1.25rem 1rem;
  }

  .stga-member-photo {
    width: 82px;
    height: 105px;
  }

  .photo-placeholder svg {
    width: 36px;
    height: 36px;
  }

  .stga-member-name {
    font-size: 1.05rem;
  }

  .stga-member-role {
    margin-bottom: 0.85rem;

    font-size: 0.55rem;
  }

  .stga-member-details {
    grid-template-columns: 1fr;

    gap: 0.55rem;
  }

  .id-detail-label {
    font-size: 0.52rem;
  }

  .id-detail strong {
    font-size: 0.67rem;
  }

  .stga-id-qr {
    justify-content: flex-end;
  }

  .stga-id-footer {
    flex-wrap: wrap;

    justify-content: center;

    padding: 0.7rem 1rem;

    font-size: 0.5rem;
  }

  .id-card-actions {
    flex-direction: column;

    width: 100%;

    margin-top: 1rem;
  }

  .id-card-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .id-card-note {
    padding: 0.85rem;
  }
}
