/* ============================================================
   Tiranga Yuva Samiti — Frontend CSS
   Version: 2.0.0
   ============================================================ */

/* ── Reset & Base ────────────────────────────────────────── */
#tys-wrapper,
#tym-verification-container {
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}
#tys-wrapper *,
#tym-verification-container * {
  box-sizing: border-box;
}

/* ── Wrapper & App Box ───────────────────────────────────── */
#tys-wrapper {
  background: #ffffff;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 30px 30px;
  min-height: 100vh;
  color: #333;
  padding-bottom: 80px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
#tys-wrapper .app-box {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Typography ──────────────────────────────────────────── */
#tys-wrapper h2 {
  color: #000080;
  margin: 0 0 8px 0;
  text-align: center;
  font-weight: 900;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Oswald', sans-serif;
}
#tys-wrapper p.desc {
  color: #138808;
  margin-bottom: 40px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Auth / Form Box ─────────────────────────────────────── */
#tys-wrapper .tys-auth {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 15px 35px rgba(0, 0, 128, 0.08);
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  max-width: 750px;
  position: relative;
  overflow: hidden;
}
/* Tiranga stripe top border */
#tys-wrapper .tys-auth::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 8px;
  background: linear-gradient(to right, #FF9933 33.3%, #f1f5f9 33.3%, #f1f5f9 66.6%, #138808 66.6%);
  border-bottom: 2px solid #000080;
}

/* ── Auth Head ────────────────────────────────────────────── */
#tys-wrapper .auth-head { text-align: center; margin-bottom: 10px; }
#tys-wrapper .auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000080;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
}
#tys-wrapper .auth-title {
  font-size: 24px;
  font-weight: 800;
  color: #000080;
  margin-bottom: 6px;
}
#tys-wrapper .auth-sub {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

/* ── Grid Layouts ─────────────────────────────────────────── */
#tys-wrapper .auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}
#tys-wrapper .auth-grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* ── Form Fields ─────────────────────────────────────────── */
#tys-wrapper .auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
#tys-wrapper .auth-label {
  font-size: 12px;
  font-weight: 800;
  color: #000080;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-left: 2px;
}
#tys-wrapper .auth-label .req { color: #e74c3c; }
#tys-wrapper .auth-input-wrap { position: relative; width: 100%; }
#tys-wrapper .input-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: #FF9933;
  font-size: 18px;
  transition: color 0.3s;
  pointer-events: none;
}
#tys-wrapper .secure-input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  color: #000080;
  background: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  transition: all 0.3s ease;
  appearance: none;
}
#tys-wrapper .secure-input::placeholder { color: #94a3b8; font-weight: 500; }
#tys-wrapper .secure-input:focus {
  outline: none;
  border-color: #138808;
  background: #f8fafc;
  box-shadow: 0 0 0 4px rgba(19, 136, 8, 0.1);
}
#tys-wrapper select.secure-input { padding-left: 48px; cursor: pointer; }
#tys-wrapper .auth-hint { font-size: 11px; color: #64748b; font-weight: 600; margin-left: 2px; }

/* ── Photo Upload ─────────────────────────────────────────── */
#tys-wrapper .auth-field--photo { grid-column: 1 / -1; }
#tys-wrapper .photo-upload-wrap {
  position: relative;
  cursor: pointer;
}
#tys-wrapper .photo-upload-wrap input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}
#tys-wrapper .photo-preview {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 100px;
  justify-content: center;
  background: #f8fafc;
}
#tys-wrapper .photo-preview i { font-size: 28px; color: #FF9933; }
#tys-wrapper .photo-preview span { font-weight: 700; color: #000080; font-size: 14px; }
#tys-wrapper .photo-preview small { font-size: 11px; }
#tys-wrapper .photo-upload-wrap:hover .photo-preview {
  border-color: #138808;
  background: #f0fdf4;
}
#tys-wrapper .photo-preview--has-image {
  border-color: #138808;
  background: #f0fdf4;
}
#tys-wrapper .photo-preview--has-image img {
  max-height: 120px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid #138808;
}

/* ── Fee Box ─────────────────────────────────────────────── */
#tys-wrapper .tys-fee-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, #000080 0%, #002347 100%);
  border-radius: 10px;
  padding: 18px 24px;
  color: white;
}
#tys-wrapper .fee-icon {
  width: 48px; height: 48px;
  background: #FF9933;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
#tys-wrapper .fee-label { font-size: 12px; font-weight: 700; color: #FF9933; text-transform: uppercase; letter-spacing: 1px; }
#tys-wrapper .fee-amount { font-size: 28px; font-weight: 900; line-height: 1.1; }
#tys-wrapper .fee-note { font-size: 12px; color: rgba(255,255,255,0.7); margin-left: auto; max-width: 200px; text-align: right; }

/* ── Buttons ─────────────────────────────────────────────── */
#tys-wrapper .btn-verify {
  background: #FF9933;
  color: #ffffff;
  border: none;
  padding: 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(255, 153, 51, 0.3);
  font-family: 'Montserrat', sans-serif;
}
#tys-wrapper .btn-verify:hover {
  background: #138808;
  box-shadow: 0 8px 20px rgba(19, 136, 8, 0.3);
  transform: translateY(-2px);
}
#tys-wrapper .btn-verify:active { transform: scale(0.98); }
#tys-wrapper .btn-verify:disabled { background: #94a3b8; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Status Message ──────────────────────────────────────── */
#tys-wrapper .tys-status-msg {
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  padding: 12px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
}
#tys-wrapper .tys-status-msg--success { background: #f0fdf4; border-color: #86efac; color: #138808; }
#tys-wrapper .tys-status-msg--error   { background: #fff1f2; border-color: #fca5a5; color: #e74c3c; }

/* ── Notice ──────────────────────────────────────────────── */
#tys-wrapper .tys-notice {
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}
#tys-wrapper .tys-notice--warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
#tys-wrapper .tys-notice--info    { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; }

/* ── Dashboard Grid ──────────────────────────────────────── */
#tys-wrapper .tys-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1000px;
  margin-bottom: 10px;
}
#tys-wrapper .tys-dash-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0,0,128,0.05);
}
#tys-wrapper .dash-card-icon { font-size: 28px; flex-shrink: 0; }
#tys-wrapper .dash-card-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
  margin-bottom: 4px;
}
#tys-wrapper .dash-card-value {
  font-size: 16px;
  font-weight: 800;
  color: #333;
}

/* ── Login Prompt ────────────────────────────────────────── */
#tys-wrapper .tys-login-prompt {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  width: 100%;
}
#tys-wrapper .tys-login-box {
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 50px 40px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 15px 35px rgba(0,0,128,0.08);
  max-width: 420px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
#tys-wrapper .tys-login-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 8px;
  background: linear-gradient(to right, #FF9933 33.3%, #f1f5f9 33.3%, #f1f5f9 66.6%, #138808 66.6%);
}
#tys-wrapper .tys-login-icon { font-size: 48px; color: #FF9933; margin-bottom: 15px; }
#tys-wrapper .tys-login-box h2 { font-size: 22px; margin-bottom: 10px; }
#tys-wrapper .tys-login-box p  { color: #64748b; margin-bottom: 20px; font-size: 14px; }

/* ── ID Card Wrapper ─────────────────────────────────────── */
#tys-wrapper #grid-area {
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
  width: 100%;
  margin-top: 40px;
}
#tys-wrapper .member-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 15px 30px rgba(0, 0, 128, 0.05);
  animation: tys-slideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex-wrap: wrap;
  width: 100%;
  max-width: 1000px;
}
@keyframes tys-slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);    }
}
#tys-wrapper .preview-col { display: flex; flex-direction: column; align-items: center; gap: 15px; }
#tys-wrapper .preview-label { font-size: 12px; color: #000080; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; }
#tys-wrapper .action-buttons { display: flex; flex-direction: column; gap: 15px; justify-content: center; }
#tys-wrapper .action-btn {
  color: white;
  border: none;
  padding: 20px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 128, 0.2);
  transition: all 0.3s;
  min-width: 180px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}
#tys-wrapper .btn-print    { background: #000080; }
#tys-wrapper .btn-download { background: #138808; }
#tys-wrapper .btn-print:hover    { background: #FF9933; transform: translateY(-2px); }
#tys-wrapper .btn-download:hover { background: #0e6306; transform: translateY(-2px); }
#tys-wrapper .btn-print:active,
#tys-wrapper .btn-download:active { transform: scale(0.95); }

/* ── ID Card (54mm × 85.6mm CR80) ───────────────────────── */
#tys-wrapper .id-card-wrapper {
  width: 54mm;
  height: 85.6mm;
  position: relative;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
  background: transparent;
  border-radius: 3.18mm;
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}
#tys-wrapper .id-card {
  width: 54mm;
  height: 85.6mm;
  background: #fff;
  position: relative;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
  color: #333;
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  box-sizing: border-box;
  border-radius: 3.18mm;
}
#tys-wrapper .id-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
  z-index: 20;
}

/* Front Header */
#tys-wrapper .v-header {
  height: 18%;
  background: #002347;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  padding: 0 2mm 0 3mm;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  border-bottom: 2px solid #FF9933;
}
#tys-wrapper .v-header-content { display: flex; align-items: center; justify-content: flex-start; width: 100%; }
#tys-wrapper .v-header-logo    { width: 8.5mm; height: auto; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3)); margin-right: 1.5mm; flex-shrink: 0; }
#tys-wrapper .v-header-text    { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
#tys-wrapper .v-id-label       { font-size: 4pt; color: #FF9933; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5px; }
#tys-wrapper .v-org-name       { font-size: 8.5pt; font-weight: 900; color: white; text-transform: uppercase; margin: 0; line-height: 1; font-family: 'Oswald', sans-serif; letter-spacing: 0.5px; white-space: nowrap; }
#tys-wrapper .v-org-sub        { font-size: 3.2pt; font-weight: 600; color: #fff; text-transform: uppercase; margin-top: 1.5px; line-height: 1.1; }

/* Front Body */
#tys-wrapper .v-body {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2mm;
  background: #ffffff;
  padding-bottom: 5mm;
  overflow: hidden;
}
#tys-wrapper .watermark-overlay {
  position: absolute;
  top: 48%; left: 50%;
  transform: translate(-50%, -50%);
  width: 35mm;
  opacity: 0.10;
  z-index: 0;
  pointer-events: none;
  filter: grayscale(100%);
}
#tys-wrapper .v-photo-frame {
  width: 20mm; height: 24mm;
  background: white;
  border-radius: 4px;
  position: relative;
  z-index: 5;
  margin-bottom: 1.5mm;
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  overflow: hidden;
}
#tys-wrapper .v-user-photo { width: 100%; height: 100%; object-fit: cover; padding: 1px; border-radius: 3px; }
#tys-wrapper .v-name-block { text-align: center; margin-bottom: 1.5mm; z-index: 5; width: 95%; position: relative; }
#tys-wrapper .v-name-text  { font-size: 10pt; font-weight: 900; text-transform: uppercase; line-height: 1.1; margin-bottom: 1px; color: #002347; }
#tys-wrapper .v-role-badge { background: #FF9933; color: white; font-size: 5pt; font-weight: 700; padding: 1.5px 8px; border-radius: 0; display: inline-block; text-transform: uppercase; letter-spacing: 1px; clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%); }
#tys-wrapper .v-details-table { width: 90%; z-index: 5; margin-bottom: auto; position: relative; }
#tys-wrapper .v-row          { display: flex; align-items: center; margin-bottom: 1px; border-bottom: 1px solid #eee; padding: 1px 0; }
#tys-wrapper .v-row:last-child { border: none; }
#tys-wrapper .v-lbl { width: 40%; font-weight: 700; color: #666; font-size: 5pt; text-transform: uppercase; letter-spacing: 0.2px; }
#tys-wrapper .v-val { width: 60%; font-weight: 800; color: #000; text-align: right; font-size: 6pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tys-wrapper .v-codes-row   { display: flex; justify-content: center; align-items: center; width: 95%; margin-top: auto; margin-bottom: 1mm; gap: 3mm; z-index: 5; position: relative; }
#tys-wrapper .v-qr-side     { width: 9mm; height: 9mm; background: white; padding: 1px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid #eee; }
#tys-wrapper .v-qr-side img { width: 100%; height: 100%; }
#tys-wrapper .v-barcode-side { height: 9mm; flex: 1; display: flex; align-items: center; justify-content: center; }
#tys-wrapper .v-barcode-side svg { width: 100%; height: 100%; }
#tys-wrapper .v-footer { position: absolute; bottom: 0; left: 0; height: 5mm; background: #002347; width: 100%; display: flex; align-items: center; justify-content: center; color: #FF9933; font-size: 5pt; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; z-index: 5; border-top: 1px solid #FF9933; }

/* Back Side */
#tys-wrapper .vb-container    { display: flex; flex-direction: column; height: 100%; width: 100%; position: relative; }
#tys-wrapper .vb-header       { height: 12%; background: #002347; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 7.5pt; text-transform: uppercase; letter-spacing: 1px; z-index: 2; border-bottom: 2px solid #FF9933; }
#tys-wrapper .vb-body         { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0 3mm 3mm 3mm; text-align: center; position: relative; background: #fff; }
#tys-wrapper .vb-terms        { width: 100%; margin-top: 2mm; margin-bottom: 2mm; }
#tys-wrapper .vb-terms-title  { font-size: 4pt; font-weight: 900; color: #002347; text-transform: uppercase; text-align: center; text-decoration: underline; margin-bottom: 1px; }
#tys-wrapper .vb-terms-text   { font-size: 4pt; color: #444; text-align: center; line-height: 1.1; font-weight: 500; }
#tys-wrapper .vb-logo-main    { width: 14mm; height: auto; margin-top: 0; }
#tys-wrapper .vb-ngo-title    { font-size: 8pt; font-weight: 900; color: #002347; text-transform: uppercase; text-align: center; margin-top: 0.5mm; margin-bottom: 3mm; width: 90%; }
#tys-wrapper .vb-qr-label     { font-size: 4.5pt; font-weight: 800; color: #FF9933; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5px; }
#tys-wrapper .vb-qr-container { width: 13mm; height: 13mm; margin-bottom: 3mm; border: 1px solid #ccc; padding: 1px; background: white; }
#tys-wrapper .vb-qr-container img { width: 100%; height: 100%; }
#tys-wrapper .vb-info-block   { width: 100%; text-align: left; margin-top: 0; }
#tys-wrapper .vb-row-item     { display: flex; gap: 2mm; margin-bottom: 1.5mm; align-items: flex-start; }
#tys-wrapper .vb-icon-box     { color: #FF9933; width: 3mm; font-size: 6pt; margin-top: 1px; }
#tys-wrapper .vb-text-val     { font-size: 5pt; color: #444; font-weight: 600; line-height: 1.2; text-align: left; }
#tys-wrapper .vb-sign-section { width: 100%; display: flex; flex-direction: column; align-items: flex-end; margin-top: auto; margin-bottom: 3.5mm; padding-right: 1mm; }
#tys-wrapper .vb-stamp        { width: 14mm; opacity: 0.8; mix-blend-mode: multiply; transform: rotate(-10deg); margin-bottom: 1px; }
#tys-wrapper .vb-sign-label   { font-size: 4pt; font-weight: 800; color: #002347; text-transform: uppercase; border-top: 1px solid #333; padding-top: 1px; }
#tys-wrapper .vb-footer       { position: absolute; bottom: 0; left: 0; height: 5mm; width: 100%; background: #138808; display: flex; align-items: center; justify-content: center; color: white; font-size: 4.5pt; font-weight: 600; text-transform: uppercase; }

/* ── Verification Page ───────────────────────────────────── */
#tym-verification-container {
  max-width: 450px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  border: 1px solid #e0e0e0;
}
.tym-header {
  background: linear-gradient(135deg, #ff9933 0%, #ffffff 50%, #138808 100%);
  padding: 30px 20px 25px 20px;
  color: #333;
}
.tym-header h2 { margin: 0; font-size: 1.4rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #000; text-shadow: 1px 1px 2px rgba(255,255,255,0.8); }
.tym-header-sub { margin: 5px 0 0; font-size: 12px; font-weight: 600; color: #000080; text-transform: uppercase; letter-spacing: 0.5px; }

#manual-search { padding: 30px 25px; }
.tym-search-icon { font-size: 36px; color: #FF9933; margin-bottom: 10px; }
.tym-search-title { font-size: 1.1rem; font-weight: 800; color: #000080; margin: 0 0 6px; }
.tym-search-sub   { font-size: 13px; color: #64748b; margin: 0 0 20px; }
.tym-search-grid  { margin-bottom: 20px; }
.tym-search-field { text-align: left; }
.tym-search-field label { display: block; font-size: 11px; font-weight: 800; color: #000080; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; }
.tym-search-input-wrap { position: relative; }
.tym-search-input-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #FF9933; font-size: 16px; }
.tym-search-input-wrap input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #000080;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s;
}
.tym-search-input-wrap input:focus { outline: none; border-color: #138808; box-shadow: 0 0 0 3px rgba(19,136,8,0.1); }
.tym-verify-btn {
  background: #FF9933;
  color: white;
  border: none;
  padding: 16px;
  width: 100%;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
  font-family: 'Montserrat', sans-serif;
}
.tym-verify-btn:hover { background: #138808; transform: translateY(-1px); }

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff9933;
  border-radius: 50%;
  width: 36px; height: 36px;
  animation: tys-spin 0.8s linear infinite;
  margin: 25px auto;
}
@keyframes tys-spin { 0%{ transform:rotate(0deg); } 100%{ transform:rotate(360deg); } }

.tym-photo-wrapper { margin: 20px auto 0; display: inline-block; position: relative; }
.tym-photo { width: 120px; height: 120px; border-radius: 50%; border: 4px solid #fff; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: block; }
.tym-status-row { margin: 12px 0 4px; }
.tym-status { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; }
.status-verified { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-failed   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.tym-name { font-size: 1.3rem; font-weight: 800; color: #333; margin: 4px 0; }
.tym-designation { color: #666; font-weight: 500; margin-bottom: 15px; font-size: 0.95rem; }
.tym-details { padding: 0 20px 20px; }
.tym-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; background: #f9f9f9; padding: 15px; border-radius: 10px; }
.tym-field-label { font-size: 0.7rem; color: #888; text-transform: uppercase; margin-bottom: 3px; font-weight: 700; letter-spacing: 0.5px; }
.tym-field-value { font-size: 0.9rem; font-weight: 700; color: #333; word-break: break-word; }
.tym-reset-btn { background: #000080; color: white; border: none; padding: 12px 24px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 13px; margin: 0 0 20px; display: inline-flex; align-items: center; gap: 8px; font-family: 'Montserrat', sans-serif; transition: background 0.3s; }
.tym-reset-btn:hover { background: #FF9933; }

/* ── Responsive ─────────────────────────────────────────── */

/* Widen form box on large screens */
#tys-wrapper .tys-auth {
  max-width: 1000px;
}
#tys-wrapper .tys-registration-form {
  max-width: 1100px;
}

/* 3-col grid stays wider */
#tys-wrapper .auth-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Tablet — 1200px */
@media (max-width: 1200px) {
  #tys-wrapper .app-box { padding: 30px 20px; }
}

/* Tablet — 960px */
@media (max-width: 960px) {
  #tys-wrapper .tys-auth         { padding: 35px 30px; }
  #tys-wrapper .auth-grid--3     { grid-template-columns: 1fr 1fr; }
  #tys-wrapper .tys-dashboard-grid { grid-template-columns: 1fr 1fr; }
  #tys-wrapper .member-row       { padding: 30px 20px; gap: 30px; }
}

/* Mobile — 700px */
@media (max-width: 700px) {
  #tys-wrapper .app-box          { padding: 20px 12px; }
  #tys-wrapper .tys-auth         { padding: 24px 16px; max-width: 100%; border-radius: 10px; }
  #tys-wrapper .tys-registration-form { max-width: 100%; }
  #tys-wrapper .auth-grid        { grid-template-columns: 1fr; gap: 18px; }
  #tys-wrapper .auth-grid--3     { grid-template-columns: 1fr; gap: 18px; }
  #tys-wrapper h2                { font-size: 22px; }
  #tys-wrapper p.desc            { font-size: 13px; margin-bottom: 24px; }
  #tys-wrapper .auth-badge       { font-size: 10px; padding: 5px 12px; }
  #tys-wrapper .auth-title       { font-size: 20px; }
  #tys-wrapper .auth-sub         { font-size: 13px; }
  #tys-wrapper .secure-input     { font-size: 14px; padding: 14px 14px 14px 44px; }
  #tys-wrapper .input-icon       { font-size: 16px; left: 14px; }
  #tys-wrapper .tys-fee-box      { flex-direction: column; text-align: center; padding: 16px; gap: 10px; }
  #tys-wrapper .fee-note         { margin: 0 auto; text-align: center; max-width: 100%; }
  #tys-wrapper .fee-amount       { font-size: 22px; }
  #tys-wrapper .btn-verify       { font-size: 14px; padding: 16px; gap: 8px; }
  #tys-wrapper .tys-dashboard-grid { grid-template-columns: 1fr 1fr; gap: 12px; max-width: 100%; }
  #tys-wrapper .tys-dash-card    { padding: 16px 12px; gap: 10px; }
  #tys-wrapper .dash-card-icon   { font-size: 22px; }
  #tys-wrapper .dash-card-value  { font-size: 14px; }
  #tys-wrapper .member-row       { flex-direction: column; align-items: center; padding: 20px 12px; gap: 24px; max-width: 100%; }
  #tys-wrapper .preview-col      { width: 100%; align-items: center; }
  #tys-wrapper .action-buttons   { flex-direction: row; flex-wrap: wrap; justify-content: center; width: 100%; }
  #tys-wrapper .action-btn       { min-width: 130px; padding: 14px 18px; font-size: 14px; }
  .tym-grid                      { grid-template-columns: 1fr; }
}

/* Small mobile — 480px */
@media (max-width: 480px) {
  #tys-wrapper .app-box          { padding: 16px 10px; }
  #tys-wrapper .tys-auth         { padding: 20px 14px; }
  #tys-wrapper .auth-grid        { gap: 14px; }
  #tys-wrapper .auth-grid--3     { gap: 14px; }
  #tys-wrapper .tys-dashboard-grid { grid-template-columns: 1fr; }
  #tys-wrapper .id-card-wrapper  { transform: scale(0.85); transform-origin: center top; }
  #tys-wrapper .action-btn       { min-width: 110px; padding: 12px 14px; font-size: 13px; }
  #tys-wrapper .fee-amount       { font-size: 20px; }
  #tys-wrapper .tys-login-box    { padding: 35px 20px; }
}

/* Very small — 360px */
@media (max-width: 360px) {
  #tys-wrapper .id-card-wrapper  { transform: scale(0.75); transform-origin: center top; }
  #tys-wrapper .action-buttons   { flex-direction: column; align-items: center; }
  #tys-wrapper .action-btn       { width: 100%; min-width: unset; }
}

/* Admin meta-box add member grid */
.tys-add-member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.tys-add-member-grid .tys-settings-section:last-child {
  grid-column: 1 / -1;
}
@media (max-width: 900px) {
  .tys-add-member-grid { grid-template-columns: 1fr; }
  .tys-add-member-grid .tys-settings-section:last-child { grid-column: auto; }
}

/* Required asterisk */
.tys-req { color: #e74c3c; }

