/* Design System: HSG International Foundation */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --font-primary: 'Outfit', sans-serif;
  --font-headers: 'Montserrat', sans-serif;
  
  --bg-dark: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  
  --brand-blue: #0C55A0;
  --brand-green: #4FA83D;
  
  /* Theme variables mapped for compatibility */
  --gold-primary: #0C55A0;
  --gold-light: #5ba3eb;
  --gold-dark: #4FA83D;
  --gold-gradient: linear-gradient(135deg, #0C55A0 0%, #4FA83D 100%);
  --gold-btn-gradient: linear-gradient(135deg, #0a4e94 0%, #0C55A0 50%, #4FA83D 100%);
  
  --text-white: #1e293b;
  --text-slate: #475569;
  --text-muted: #64748b;
  --border-slate: rgba(12, 85, 160, 0.12);
  
  --success: #4FA83D;
  --success-bg: rgba(79, 168, 61, 0.1);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  margin: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(12, 85, 160, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(79, 168, 61, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  background-attachment: fixed;
}

/* Glassmorphic Container */
.container {
  width: 100%;
  max-width: 650px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-slate);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-headers);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  text-align: center;
}

.header-logo svg {
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(191, 149, 63, 0.3));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.header-logo h1 {
  font-size: 26px;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.header-logo p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-slate);
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* Forms styling */
.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid rgba(12, 85, 160, 0.18);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  color: #0f172a;
  font-family: var(--font-primary);
  outline: none;
}

.form-control::placeholder {
  color: rgba(12, 85, 160, 0.45);
}

.form-control:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(12, 85, 160, 0.12);
  background: #ffffff;
}

/* File Upload custom input */
.file-upload-wrapper {
  position: relative;
  width: 100%;
  border: 2px dashed rgba(12, 85, 160, 0.2);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  color: #475569;
}

.file-upload-wrapper:hover {
  border-color: var(--gold-primary);
  background: rgba(12, 85, 160, 0.05);
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  margin-bottom: 12px;
  color: var(--gold-primary);
}

.upload-text {
  font-size: 14px;
  color: var(--text-slate);
}

.upload-preview-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
}

.upload-preview {
  width: 100px;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  display: none;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  font-family: var(--font-headers);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--gold-btn-gradient);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(12, 85, 160, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a4e94 0%, #0C55A0 50%, #4FA83D 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 85, 160, 0.3);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: #f1f5f9;
  border: 1px solid rgba(12, 85, 160, 0.18);
  color: #1e293b;
  box-shadow: none;
}

.btn-secondary:hover {
  background: #e2e8f0;
  border-color: rgba(12, 85, 160, 0.3);
  box-shadow: 0 4px 12px rgba(12, 85, 160, 0.08);
  color: #0f172a;
}

/* Alert Notification Banner */
.alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  border: 1px solid transparent;
}

.alert-success {
  background: var(--success-bg);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.alert-error {
  background: var(--error-bg);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--error);
}

/* Payment Simulated Screen */
.payment-info {
  text-align: center;
  margin-bottom: 30px;
}

.payment-price {
  font-size: 48px;
  font-weight: 800;
  font-family: var(--font-headers);
  color: var(--text-white);
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.payment-price span {
  font-size: 24px;
  color: var(--gold-primary);
  font-weight: 600;
}

/* Success Card details */
.success-header {
  text-align: center;
  margin-bottom: 30px;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--success-bg);
  border: 2px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  margin: 0 auto 20px auto;
  font-size: 36px;
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.success-details {
  background: #f8fafc;
  border: 1px solid rgba(12, 85, 160, 0.15);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
}

.success-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(12, 85, 160, 0.1);
}

.success-row:last-child {
  border-bottom: none;
}

.success-label {
  color: #475569;
  font-size: 14px;
  font-weight: 500;
}

.success-value {
  font-weight: 600;
  color: #0f172a;
  font-size: 14px;
  text-align: right;
}

.success-id-value {
  color: var(--brand-blue);
  font-weight: 700;
}

/* Card Preview Panel */
.card-preview-box {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.digital-card {
  width: 100%;
  aspect-ratio: 1.666;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.download-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 100%;
}

/* Admin Dashboard layout */
.admin-container {
  max-width: 1200px;
}

.admin-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.admin-title-area h1 {
  font-size: 28px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.admin-controls {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.search-input-wrapper {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.filter-and-actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-select {
  min-width: 180px;
  height: 44px;
  background: #ffffff;
  border: 1.5px solid var(--border-slate);
  border-radius: 12px;
  padding: 0 18px;
  color: #0f172a;
  font-family: var(--font-primary);
  outline: none;
  cursor: pointer;
}

/* Table styling for Admin dashboard */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-slate);
  border-radius: 16px;
  background: #ffffff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.admin-table th {
  background: #f1f5f9;
  padding: 16px 20px;
  font-family: var(--font-headers);
  font-weight: 600;
  color: var(--text-slate);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--border-slate);
  font-size: 12px;
}

.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  color: var(--text-slate);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: #f8fafc;
  color: var(--gold-primary);
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-failed {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* User Profile Row */
.user-profile-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
}

.user-name-info {
  display: flex;
  flex-direction: column;
}

.user-name-info .name {
  font-weight: 600;
  color: var(--text-white);
}

.user-name-info .id {
  font-size: 11px;
  color: var(--gold-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Actions Menu */
.actions-cell {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-slate);
  color: var(--text-slate);
  cursor: pointer;
  text-decoration: none;
}

.btn-icon:hover {
  background: var(--gold-primary);
  color: #0f172a;
  border-color: var(--gold-primary);
}

.btn-icon-danger:hover {
  background: var(--error);
  color: var(--text-white);
  border-color: var(--error);
}

/* Admin Dashboard Stats Summary Row */
.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: #f8fafc;
  border: 1px solid rgba(12, 85, 160, 0.12);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 12px rgba(12, 85, 160, 0.03);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(12, 85, 160, 0.08);
  border: 1px solid rgba(12, 85, 160, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  font-size: 20px;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 12px;
  color: var(--text-slate);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
}

/* Login box for admin */
.admin-login-box {
  max-width: 400px;
  margin: 0 auto;
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 13, 22, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  overflow-y: auto;
}

.modal-content {
  background: #ffffff;
  border: 1.5px solid var(--border-slate);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 40px rgba(12, 85, 160, 0.12);
  margin: auto;
}

/* Action Dropdown Menu */
.dropdown-container {
  position: relative;
  display: inline-block;
}

.three-dots-btn {
  background: none;
  border: none;
  color: var(--brand-blue);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.three-dots-btn:hover {
  background: rgba(12, 85, 160, 0.08);
}

.action-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #ffffff;
  border: 1px solid rgba(12, 85, 160, 0.15);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(12, 85, 160, 0.12);
  z-index: 100;
  min-width: 180px;
  overflow: hidden;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.action-dropdown.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(12, 85, 160, 0.05);
  color: var(--brand-blue);
}

.dropdown-item-danger {
  color: #ef4444;
}

.dropdown-item-danger:hover {
  background: rgba(239, 68, 68, 0.05);
  color: #ef4444;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-slate);
  font-size: 24px;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-white);
}

/* Loading spinner */
.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  gap: 15px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-slate);
  border-top: 4px solid var(--gold-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Fullscreen / Modal Loading Backdrop Overlay & Animations */
.loading-overlay-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loading-overlay-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 35px 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  border: 1.5px solid rgba(12, 85, 160, 0.2);
  animation: overlayPopIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.loading-overlay-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
}

@keyframes overlayPopIn {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.loading-overlay-title {
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 18px;
  color: var(--brand-blue);
  margin-top: 4px;
}

.loading-overlay-sub {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  font-weight: 500;
}

/* Button Loading State Spinner */
.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

/* Verification Card (Public Scan Page) */
.verified-stamp {
  border: 3px dashed var(--success);
  color: var(--success);
  padding: 10px 20px;
  font-size: 22px;
  font-family: var(--font-headers);
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 8px;
  display: inline-block;
  transform: rotate(-5deg);
  margin-top: 20px;
  animation: stamp-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes stamp-pop {
  0% { transform: scale(3) rotate(-15deg); opacity: 0; }
  100% { transform: scale(1) rotate(-5deg); opacity: 1; }
}

/* Responsive queries */
@media (max-width: 600px) {
  body {
    padding: 20px 10px;
  }
  .container {
    padding: 25px 20px;
  }
  .download-group {
    grid-template-columns: 1fr;
  }
  .admin-header-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-controls {
    flex-direction: column;
    width: 100%;
  }
  .search-input-wrapper {
    width: 100%;
  }
  .filter-select {
    width: 100%;
  }
}

/* Custom Outlined Print Button Styling & Hover Interactivity */
#details-print-btn, #print-btn {
  width: 100%;
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(12, 85, 160, 0.05);
  transition: all 0.3s ease;
}

#details-print-btn {
  margin-top: 15px;
}

#print-btn {
  margin-top: 10px;
}

#details-print-btn:hover, #print-btn:hover {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(12, 85, 160, 0.15);
}

/* Navigation Header (Full-width 100%, matching footer & increased height) */
.main-header {
  width: 100%;
  margin: 0 0 35px 0;
  background: #ffffff;
  border-bottom: 1.5px solid var(--border-slate);
  box-shadow: 0 4px 20px rgba(12, 85, 160, 0.06);
  padding: 18px 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  border: 1.5px solid var(--brand-blue);
  padding: 2px;
  background: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 17px;
  color: var(--brand-blue);
}

.brand-sub {
  font-size: 11.5px;
  color: var(--brand-green);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item {
  text-decoration: none;
  color: var(--text-slate);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-item:hover, .nav-item.active {
  color: var(--brand-blue);
  background: rgba(12, 85, 160, 0.06);
}

.nav-item.nav-btn {
  background: var(--gold-gradient);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 20px;
}

.nav-item.nav-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Hamburger Toggle Button (Hidden on desktop) */
.hamburger-btn {
  display: none;
  background: transparent;
  border: 1.5px solid var(--border-slate);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  transition: all 0.25s ease;
}

.hamburger-btn:hover {
  background: rgba(12, 85, 160, 0.08);
  border-color: var(--brand-blue);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: var(--brand-blue);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Admin Dashboard Three-Dot Menu */
.admin-menu-wrapper {
  position: relative;
  display: inline-block;
}

.admin-dots-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #ffffff;
  border: 1.5px solid var(--border-slate);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(12, 85, 160, 0.15);
  z-index: 1000;
  min-width: 210px;
  padding: 6px;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.admin-dots-dropdown.show {
  display: block;
}

/* Site Footer (Full-width, zero bottom margin) */
.site-footer {
  width: 100%;
  margin-top: 60px;
  margin-bottom: 0;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 0;
  overflow: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 45px 24px 35px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
}

.footer-title {
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
}

.footer-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-headers);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
}

.footer-heading::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--brand-green);
  margin-top: 6px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-contact-item {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #090d16;
  padding: 18px 24px;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #94a3b8;
}

/* Import Button Custom Brand Styling & Hover Effect */
#import-btn {
  border: 1.5px solid var(--brand-blue) !important;
  color: var(--brand-blue) !important;
  background: #ffffff !important;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#import-btn:hover {
  background: var(--brand-blue) !important;
  color: #ffffff !important;
  border-color: var(--brand-blue) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(12, 85, 160, 0.25);
}

.powered-by a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.powered-by a:hover {
  text-decoration: underline;
}

/* About Us Page Layout */
.main-content-container {
  max-width: 900px;
}

.page-banner {
  width: 100%;
  max-width: 900px;
  background: var(--gold-gradient);
  color: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(12, 85, 160, 0.2);
}

.page-banner h1 {
  font-size: 28px;
  margin-bottom: 8px;
  color: #ffffff;
}

.page-banner p {
  font-size: 15px;
  opacity: 0.95;
}

.about-card {
  margin-bottom: 30px;
}

.about-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--brand-blue);
  background: rgba(12, 85, 160, 0.08);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.badge-gold {
  color: #b45309;
  background: #fef3c7;
}

.section-title {
  font-size: 22px;
  color: var(--brand-blue);
  margin-bottom: 16px;
}

.about-lead {
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 15px;
}

.about-text {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.value-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  border-color: var(--brand-blue);
}

.value-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.value-item h3 {
  font-size: 17px;
  color: var(--brand-blue);
  margin-bottom: 10px;
}

.value-item p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #64748b;
}

/* Fee Explanation List */
.fee-explanation-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid rgba(12, 85, 160, 0.2);
}

.fee-reasons-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.reason-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.reason-number {
  background: var(--gold-gradient);
  color: #ffffff;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.reason-content h4 {
  font-size: 16px;
  color: #1e293b;
  margin-bottom: 6px;
}

.reason-content p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #64748b;
}

/* Admin Import Modal & Dropzone */
.import-modal-content {
  max-width: 750px !important;
}

.dropzone {
  border: 2px dashed var(--brand-blue);
  background: rgba(12, 85, 160, 0.03);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.dropzone:hover, .dropzone.dragover {
  background: rgba(12, 85, 160, 0.08);
  border-color: var(--brand-green);
}

.dropzone-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.preview-table-container {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-top: 15px;
  margin-bottom: 20px;
}

/* Member Profile Details Card Styling */
.profile-details-grid {
  background: #f8fafc;
  border: 1px solid rgba(12, 85, 160, 0.15);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
}

.profile-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(12, 85, 160, 0.1);
}

.profile-details-row:last-child {
  border-bottom: none;
}

.profile-details-label {
  color: #475569;
  font-size: 14px;
  font-weight: 500;
}

.profile-details-value {
  font-weight: 600;
  color: #0f172a;
  font-size: 14px;
  text-align: right;
}

/* Base Body Responsiveness Safeguards */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ==========================================
   COMPREHENSIVE RESPONSIVE BREAKPOINTS
   ========================================== */

/* --- TABLET BREAKPOINT (769px to 1024px) --- */
@media (max-width: 1024px) {
  .header-inner {
    padding: 0 20px;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-col.brand-col {
    grid-column: 1 / -1;
  }
  .container {
    width: 90%;
    max-width: 720px;
    padding: 32px 28px;
  }
  .main-content-container, .page-banner {
    max-width: 90%;
  }
  .stats-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- MOBILE & TABLET BREAKPOINT (max-width: 900px) --- */
@media (max-width: 900px) {
  body {
    padding: 0;
  }
  .main-header {
    margin-bottom: 24px;
    padding: 14px 0;
  }
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
  }
  .hamburger-btn {
    display: flex;
  }
  .brand-link {
    justify-content: flex-start;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    padding-top: 14px;
    margin-top: 12px;
    border-top: 1px solid var(--border-slate);
  }
  .nav-links.show {
    display: flex;
    animation: dropdownFadeIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .nav-item {
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    font-size: 14px;
  }
  .container {
    width: 94%;
    padding: 24px 20px;
    border-radius: 18px;
    margin: 0 auto;
  }
  .admin-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .admin-controls {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .search-input-wrapper {
    width: 100% !important;
  }
  .filter-and-actions-row {
    display: flex;
    width: 100%;
    gap: 10px;
    align-items: center;
  }
  .filter-and-actions-row .filter-select {
    flex: 1;
    width: 100% !important;
    min-width: 0;
  }
  .admin-menu-wrapper {
    position: relative;
    flex-shrink: 0;
  }
  .download-group {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    padding: 35px 20px 24px;
  }
  .footer-brand {
    justify-content: center;
  }
  .footer-heading::after {
    margin: 6px auto 0 auto;
  }
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .page-banner {
    padding: 28px 20px;
    margin-bottom: 24px;
    border-radius: 16px;
  }
  .page-banner h1 {
    font-size: 22px;
  }
  .page-banner p {
    font-size: 14px;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* --- MOBILE PORTRAIT BREAKPOINT (max-width: 600px) --- */
@media (max-width: 600px) {
  .brand-logo {
    width: 44px;
    height: 44px;
  }
  .brand-name {
    font-size: 15px;
  }
  .brand-sub {
    font-size: 10.5px;
  }
  .header-logo h1 {
    font-size: 22px;
  }
  .header-logo p {
    font-size: 11px;
    letter-spacing: 2px;
  }
  .container {
    width: 95%;
    padding: 20px 16px;
    border-radius: 16px;
  }
  /* Prevent iOS Safari input auto-zoom by enforcing 16px font-size */
  .form-control, select.filter-select, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"] {
    font-size: 16px !important;
    padding: 12px 14px;
  }
  .form-group label {
    font-size: 12px;
  }
  .file-upload-wrapper {
    padding: 20px 14px;
  }
  .btn {
    padding: 14px 16px;
    font-size: 13.5px;
    letter-spacing: 1px;
  }
  .stats-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stat-card {
    padding: 14px 16px;
  }
  .success-details, .profile-details-grid {
    padding: 16px;
  }
  .success-row, .profile-details-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 0;
  }
  .success-value, .profile-details-value {
    text-align: left;
    width: 100%;
    word-break: break-word;
  }
  .reason-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  .reason-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 14px;
  }
  .gateway-selector-grid {
    flex-direction: column !important;
  }
  .admin-table th, .admin-table td {
    padding: 12px 14px;
    font-size: 13px;
  }
  .user-profile-cell {
    gap: 8px;
  }
  .user-avatar {
    width: 36px;
    height: 36px;
  }
  .modal {
    padding: 20px 10px;
  }
  .modal-content {
    padding: 20px 16px;
    border-radius: 16px;
  }
}

/* --- EXTRA SMALL MOBILE BREAKPOINT (max-width: 380px) --- */
@media (max-width: 380px) {
  .container {
    width: 98%;
    padding: 16px 12px;
    border-radius: 12px;
  }
  .brand-name {
    font-size: 13.5px;
  }
  .brand-logo {
    width: 38px;
    height: 38px;
  }
  .nav-item {
    font-size: 12px;
    padding: 5px 8px;
  }
  .header-logo h1 {
    font-size: 19px;
  }
}
