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

/* ── Dark page base ── */
body {
  background: linear-gradient(145deg, #07071a 0%, #0d0b25 40%, #080f1e 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  color: #ffffff;
}

.container { position: relative; z-index: 1; }
/* ===== PROFILE PAGE — MODERNIZED & REDUCED ===== */

/* ─── CSS VARIABLES (single source of truth) ─── */
:root {
  --brand: #667eea;
  --brand-dark: #5563d8;
  --brand-qr: #6c47ff;
  --brand-qr-dark: #4f35d4;
  --green: #28a745;
  --green-dark: #218838;
  --red: #dc3545;
  --orange: #ff9800;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 2px 12px rgba(15,10,40,.05);
  --shadow-md: 0 5px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.15);
}

/* ─── WRAPPER ─── */
.user-dashboard { padding: 40px 0 50px; }

/* ─── PROFILE CARD ─── */
/* TO: */
.user-dashboard .profile-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(
    160deg,
    rgba(12,12,28,0.97) 0%,
    rgba(18,14,42,0.99) 100%
  );
  border: 1px solid rgba(91,61,245,0.20);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 16px 48px rgba(0,0,0,0.45),
    0 0 32px rgba(91,61,245,0.10);
  color: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.user-dashboard .profile-card::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(91,61,245,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.user-dashboard .profile-card::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(0,212,255,0.10) 0%, transparent 65%);
  pointer-events: none;
}

.user-dashboard .profile-card > * { position: relative; z-index: 1; }
.user-dashboard .profile-left { display: flex; gap: 20px; align-items: center; }

.user-dashboard .profile-img-box { position: relative; }
/* TO: */
.user-dashboard .profile-img {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 3px solid transparent;
  background:
    linear-gradient(#1a1035, #1a1035) padding-box,
    linear-gradient(135deg, #5b3df5, #00d4ff) border-box;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(91,61,245,0.35);
}
.user-dashboard .edit-pic-btn {
  position: absolute; bottom: 5px; right: 5px;
  background: linear-gradient(135deg, #5b3df5, #00d4ff);
  border: none; border-radius: 50%;
  padding: 6px; cursor: pointer; font-size: 12px;
  color: #fff;
  box-shadow: 0 3px 10px rgba(91,61,245,0.40);
  transition: transform 0.2s;
}
.user-dashboard .edit-pic-btn:hover { transform: scale(1.1); }
.user-dashboard .profile-info { display: flex; flex-direction: column; }

.user-dashboard .profile-badges {
  display: flex; align-items: center; gap: 10px; margin-top: 6px;
}
.user-dashboard .status {
  background: #00ff99; color: #000;
  padding: 4px 10px; border-radius: 20px; font-size: 12px;
}
/* TO: */
.user-dashboard .edit-profile-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  padding: 7px 16px; font-size: 12.5px;
  border-radius: 20px; font-weight: 600; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.2s, border-color 0.2s;
}
.user-dashboard .edit-profile-btn:hover {
  background: rgba(91,61,245,0.18);
  border-color: rgba(91,61,245,0.40);
}

/* ─── PLAN BADGE ─── */
.plan-info { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.plan-badge {
  padding: 6px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .6px;
}
.plan-badge.free  { background: #e0e0e0; color: #555; }
.plan-badge.basic { background: linear-gradient(135deg,#00c853,#64dd17); color: #fff; }
.plan-badge.pro   { background: linear-gradient(135deg,#6a5cff,#8f7bff); color: #fff; box-shadow: 0 4px 12px rgba(106,92,255,.4); }
.plan-badge.premium { background: linear-gradient(135deg,#ff9800,#ffb74d); color: #fff; }
.plan-expiry { font-size: 12px; color: rgba(255,255,255,.85); }
.plan-expiry::before { content: "•"; margin-right: 8px; color: rgba(255,255,255,.6); }

/* ─── STATS ─── */
.user-dashboard .stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 15px; margin: 20px 0;
}
/* TO: */
.user-dashboard .stat-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  padding: 22px 20px; border-radius: var(--radius-lg);
  text-align: center; cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  backdrop-filter: blur(12px);
}
.user-dashboard .stat-box:hover {
  transform: translateY(-5px);
  border-color: rgba(91,61,245,0.35);
  box-shadow: 0 16px 40px rgba(91,61,245,0.15);
}
.user-dashboard .stat-box h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px; font-weight: 800;
  background: linear-gradient(135deg, #ffffff 40%, #a5d8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.user-dashboard .stat-box p { color: rgba(255,255,255,0.70); font-weight: 600; font-size: 14px; }
.user-dashboard .stat-box small { color: rgba(255,255,255,0.35); font-size: 12px; }
.user-dashboard .pending-box h3 {
  background: linear-gradient(135deg, #fb923c, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── KYC ─── */
/* TO: */
.user-dashboard .kyc-section {
  margin: 15px 0 30px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(12px);
}
/* TO: */
.user-dashboard .kyc-row {
  display: grid;
  grid-template-columns: 150px 150px 1fr;
  align-items: center; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.user-dashboard .kyc-row:last-child { border-bottom: none; }
.user-dashboard .kyc-label { font-weight: 700; color: rgba(255,255,255,0.80); font-size: 14px; }
.user-dashboard .kyc-status { font-size: 14px; color: #fb923c; }
.user-dashboard .kyc-status .uploaded { color: #4ade80; font-weight: 600; }
.user-dashboard .kyc-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ─── SHARED BUTTON TOKENS ─── */
.user-dashboard .upload-btn,
.user-dashboard .download-btn {
  border: none; padding: 6px 14px;
  border-radius: var(--radius-sm); font-size: 13px;
  cursor: pointer; transition: background .2s; text-decoration: none;
  color: #fff;
}
.user-dashboard .upload-btn   { background: #5b6ef5; }
.user-dashboard .upload-btn:hover { background: #4457e6; }
.user-dashboard .download-btn { background: var(--green); }
.user-dashboard .download-btn:hover { background: var(--green-dark); }

/* ─── PAYMENT HISTORY ─── */
/* TO: */
.user-dashboard .invoice-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 25px; border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  margin-top: 20px;
}
.user-dashboard .invoice-box h3 {
  color: rgba(255,255,255,0.90);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; margin-bottom: 16px;
}
.payment-table { width: 100%; border-collapse: collapse; }
/* TO: */
.payment-table th,
.payment-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
  font-size: 13.5px;
}
.payment-table th {
  color: rgba(255,255,255,0.45);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.payment-table th:nth-child(n+3),
.payment-table td:nth-child(n+3) { text-align: center; }
.payment-table tr:hover td { background: rgba(91,61,245,0.06); }
.user-dashboard .paid    { color: green; font-weight: bold; }
.user-dashboard .pending { color: orange; font-weight: bold; }
.user-dashboard .no-doc {
  background: #e0e0e0; color: #777;
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 12px; display: inline-block; cursor: not-allowed;
}

/* ─── PAGINATION ─── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 20px; }
.pagination a {
  padding: 6px 14px; background: #2563eb; color: #fff;
  border-radius: var(--radius-sm); text-decoration: none; font-size: 14px;
}
.pagination a:hover { background: #1e40af; }
.pagination span { font-weight: 500; }

/* ─── TOAST ─── */
.user-dashboard .toast {
  position: fixed; bottom: 30px; right: 30px;
  background: var(--green); color: #fff;
  padding: 12px 20px; border-radius: var(--radius-md);
  display: none; font-weight: 600;
}

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  display: none; justify-content: center; align-items: center; z-index: 9999;
}

/* TO: */
.modal-box {
  background: linear-gradient(160deg, rgba(12,12,28,0.99) 0%, rgba(18,14,42,0.99) 100%);
  border: 1px solid rgba(91,61,245,0.25);
  width: 520px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  animation: pop .3s ease;
}
.modal-header {
  background: rgba(91,61,245,0.18);
  border-bottom: 1px solid rgba(91,61,245,0.20);
  color: #fff; padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { margin: 0; font-size: 17px; font-weight: 700; color: #fff; }
.modal-body {
  padding: 20px; max-height: 400px; overflow-y: auto;
  color: rgba(255,255,255,0.80);
}
.modal-body label { color: rgba(255,255,255,0.60); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.modal-body input,
.modal-body textarea,
.modal-body select {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.10);
  color: #ffffff; border-radius: 9px;
  padding: 10px 13px; font-size: 13.5px; outline: none;
  width: 100%; box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-body input:focus,
.modal-body textarea:focus,
.modal-body select:focus {
  border-color: rgba(91,61,245,0.65);
  box-shadow: 0 0 0 3px rgba(91,61,245,0.12);
}
.modal-body input::placeholder,
.modal-body textarea::placeholder { color: rgba(255,255,255,0.22); }
.modal-footer { padding: 15px; text-align: right; background: rgba(255,255,255,0.03); border-top: 1px solid rgba(255,255,255,0.07); }

@keyframes pop {
  from { transform: scale(.8); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

.modal-header h3 { margin: 0; font-size: 18px; }

.close-btn { cursor: pointer; font-size: 18px; }

.cancel-btn {
  background: #ccc; border: none; padding: 8px 16px;
  border-radius: 8px; margin-right: 10px; cursor: pointer; transition: .2s;
}
.cancel-btn:hover { background: #bdbdbd; }
.submit-btn {
  background: var(--brand); color: #fff; border: none;
  padding: 8px 18px; border-radius: 8px; cursor: pointer; transition: .2s;
}
.submit-btn:hover { background: var(--brand-dark); }

/* ─── MODAL TABLE ─── */
.modal-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.modal-table th,
.modal-table td { padding: 10px 12px; border-bottom: 1px solid #eee; text-align: left; font-size: 14px; vertical-align: top; }
.modal-table th { color: var(--brand); font-weight: 600; width: 120px; }

/* ─── MODAL BUTTONS ─── */
.modal-btn {
  background: #5b6ef5; color: #fff; border: none;
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 13px; cursor: pointer; transition: .2s; margin-right: 6px; margin-bottom: 8px;
}
.modal-btn:hover { background: #4457e6; }
.delete-btn {
  background: var(--red); color: #fff; border: none;
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 13px; cursor: pointer; transition: .2s;
}
.delete-btn:hover { background: #b52a37; }
.modal-success {
  margin-top: 15px; padding: 10px;
  background: #e6f9f0; color: var(--green);
  border-radius: 8px; font-size: 14px; display: none; font-weight: 500;
}

/* ─── MODAL FORM ─── */
.modal-body label {
  display: block; font-size: 13px; font-weight: 600;
  margin: 12px 0 5px; color: #444;
}
.modal-body input,
.modal-body textarea,
.modal-body select,
.modal-input, .modal-textarea, .modal-select {
  width: 100%; padding: 9px 12px; border-radius: 8px;
  border: 1px solid #dcdcdc; font-size: 14px;
  outline: none; box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
.modal-body input:focus,
.modal-body textarea:focus,
.modal-body select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(102,126,234,.15);
}
.modal-body textarea { resize: vertical; min-height: 70px; }
.modal-input, .modal-textarea, .modal-select { margin-bottom: 12px; }
.modal-form-row { display: flex; gap: 12px; margin-bottom: 5px; }
.modal-form-row > div { flex: 1; }

/* ─── SCAN COUNT ─── */
.qr-scans { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #666; }
.scan-count { font-weight: 600; color: #5b3df5; transition: .3s; }
.scan-count.updated { color: #00c853; transform: scale(1.1); }
.qr-usage-box { display: flex; flex-direction: column; align-items: flex-end; }
.usage-main { font-weight: 600; font-size: 13px; color: #5b3df5; }
.usage-sub { font-size: 11px; color: #999; }

/* ─── QR SECTION ─── */
/* TO: */
.qr-section-box {
  margin-top: 25px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(91,61,245,0.18);
  border-radius: var(--radius-xl); padding: 28px 28px 32px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(91,61,245,0.10);
}
.qr-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #f3f2f8;
}

.qr-header-meta { display: flex; align-items: center; gap: 12px; }
.qr-stat-badge {
  font-size: .72rem; font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; color: #8b87a8;
  background: #f8f7fc; border: 1px solid #eeecf8;
  padding: 5px 12px; border-radius: 99px;
}
.qr-generate-btn {
  font-size: .82rem; font-weight: 500; color: #fff;
  background: linear-gradient(135deg, var(--brand-qr), var(--brand-qr-dark));
  border: none; padding: 10px 20px; border-radius: var(--radius-md); cursor: pointer;
  box-shadow: 0 4px 14px rgba(108,71,255,.35);
  transition: transform .22s, box-shadow .22s, background .22s;
  display: inline-flex; align-items: center; gap: 6px;
}
.qr-generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108,71,255,.45);
  background: linear-gradient(135deg,#7c5aff,#5f42e8);
}

/* QR Grid */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 16px; }

/* QR Card */
/* TO: */
.qr-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(91,61,245,0.18);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  display: flex !important; flex-direction: column !important;
  transition: transform .24s, box-shadow .24s, border-color .24s;
  position: relative; cursor: default;
  animation: card-in .4s cubic-bezier(.4,0,.2,1) both;
}
.qr-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(91,61,245,0.20);
  border-color: rgba(91,61,245,0.40);
}
.qr-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 16px;
  background: linear-gradient(135deg,rgba(108,71,255,.03),transparent 60%);
  pointer-events: none; opacity: 0; transition: opacity .24s;
}
.qr-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(108,71,255,.13),0 4px 12px rgba(15,10,40,.07); border-color: #d4cef5; }
.qr-card:hover::before { opacity: 1; }
.qr-card:nth-child(1){animation-delay:.04s}.qr-card:nth-child(2){animation-delay:.08s}
.qr-card:nth-child(3){animation-delay:.12s}.qr-card:nth-child(4){animation-delay:.16s}
.qr-card:nth-child(5){animation-delay:.20s}.qr-card:nth-child(6){animation-delay:.24s}
@keyframes card-in { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

/* QR Image */
/* TO: */
.qr-img-wrap {
  background: rgba(91,61,245,0.08);
  border-bottom: 1px solid rgba(91,61,245,0.15);
  padding: 22px 22px 18px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.qr-type-chip {
  position: absolute; top: 12px; left: 12px;
  font-size: .62rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  color: var(--brand-qr); background: rgba(108,71,255,.1);
  border: 1px solid rgba(108,71,255,.18);
  padding: 3px 8px; border-radius: 99px;
}
.qr-img-wrap img {
  width: 110px; height: 110px; object-fit: contain;
  border-radius: 8px; box-shadow: 0 2px 12px rgba(15,10,40,.12),0 0 0 6px #fff;
}

/* QR Card Body */
.qr-card-body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; flex: 1;
}
.qr-meta-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
/* TO: */
.qr-meta-label { font-size: .72rem; color: rgba(255,255,255,0.40); }
.qr-expires { font-size: .7rem; color: rgba(255,255,255,0.38); margin-bottom: 12px; margin-top: 2px; text-align: left; }
.qr-expires span { color: #a78bfa; font-weight: 500; }
.qr-header h3 { margin: 0; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; color: rgba(255,255,255,0.92); }
.qr-card-divider { height: 1px; background: linear-gradient(to right,transparent,#edeaf8,transparent); margin: 12px 0; }

/* QR Status Area */
.qr-status-area {
  margin-top: auto;
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 4px;
}

/* QR Actions */
.qr-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 10px; }
.qr-actions .open-btn,
.qr-actions .download-btn,
.qr-actions .delete-btn {
  flex: 1; padding: 6px 8px; font-size: .75rem;
  border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; transition: .15s ease; border: 1px solid transparent;
}
.qr-actions .open-btn { background: #5b3df5; color: #fff; border-color: #5b3df5; }
.qr-actions .open-btn:hover { background: #4a2fd1; }
.qr-actions .download-btn { background: #f8fafc; color: #475569; border-color: #e2e8f0; }
.qr-actions .download-btn:hover { background: #eef2ff; color: #4f46e5; border-color: #c7d2fe; }
.qr-actions .download-btn.svg { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.qr-actions .download-btn.svg:hover { background: #dcfce7; color: #15803d; border-color: #86efac; }
.qr-actions .delete-btn { background: #ff4d4f; color: #fff; border-color: #ff4d4f; cursor: pointer; }
.qr-actions .delete-btn:hover { background: #d9363e; }

/* QR Status Pills */
.qr-card-body .active-status,
.qr-card-body .expired-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 600; letter-spacing: .03em;
  padding: 4px 12px; border-radius: 99px;
}
.qr-card-body .active-status { color: #14532d; background: #dcfce7; border: 1px solid #bbf7d0; }
.qr-card-body .active-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #16a34a; display: inline-block;
  animation: pulse-dot 2s infinite;
  box-shadow: 0 0 0 2px rgba(22,163,74,.2);
}
.qr-card-body .expired-status { color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; }
.qr-card-body .expired-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #ef4444; display: inline-block;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 2px rgba(22,163,74,.2); }
  50%      { box-shadow: 0 0 0 4px rgba(22,163,74,.1); }
}

/* QR payment table status overrides (scoped) */
.qr-card-body .paid   { color: #14532d; background: #dcfce7; border: 1px solid #bbf7d0; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; padding: 4px 10px; border-radius: 99px; }
.qr-card-body .pending{ color: #7c2d12; background: #fee2e2; border: 1px solid #fecaca; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; padding: 4px 10px; border-radius: 99px; }

/* QR Empty */
.qr-empty { grid-column: 1/-1; text-align: center; padding: 48px 20px; color: #a09dbc; font-size: .88rem; }
.qr-empty-icon { font-size: 2.5rem; margin-bottom: 10px; display: block; opacity: .4; }

/* QR Modal */
.qr-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(10,6,30,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  justify-content: center; align-items: center; z-index: 999;
}
/* TO: */
.qr-modal-content {
  background: linear-gradient(160deg, rgba(12,12,28,0.99) 0%, rgba(18,14,42,0.99) 100%);
  border: 1px solid rgba(91,61,245,0.28);
  padding: 32px; border-radius: var(--radius-xl);
  width: 440px; max-width: calc(100vw - 32px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset,
              0 24px 64px rgba(0,0,0,0.60),
              0 0 40px rgba(91,61,245,0.15);
  position: relative; overflow: hidden;
  animation: modal-in .28s cubic-bezier(.34,1.4,.64,1);
}

.qr-modal-content::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(91,61,245,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.qr-modal-content > * { position: relative; z-index: 1; }
frames modal-in { from{opacity:0;transform:scale(.93) translateY(12px)} to{opacity:1;transform:scale(1) translateY(0)} }
/* TO: */
.qr-modal-content h4 {
  font-size: 1.15rem; font-weight: 800;
  letter-spacing: -0.02em; margin: 0 0 20px;
  background: linear-gradient(135deg, #ffffff 40%, #a5d8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* TO: */
.qr-modal-content label {
  display: block; font-size: .72rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-bottom: 6px; margin-top: 14px;
}
/* TO: */
.qr-modal-content textarea,
.qr-modal-content select,
.qr-modal-content input[type="text"] {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  font-size: .88rem;
  color: #ffffff;
  background: rgba(255,255,255,0.05);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  resize: none; box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}
.qr-modal-content textarea::placeholder,
.qr-modal-content input[type="text"]::placeholder {
  color: rgba(255,255,255,0.22);
}
.qr-modal-content select option {
  background: #1a1035; color: #ffffff;
}
.qr-modal-content textarea:focus,
.qr-modal-content select:focus,
.qr-modal-content input[type="text"]:focus {
  border-color: rgba(91,61,245,0.65);
  background: rgba(91,61,245,0.07);
  box-shadow: 0 0 0 3px rgba(91,61,245,0.12);
}
.qr-modal-generate-btn {
  width: 100%; margin-top: 20px;
  font-size: .88rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--brand-qr), var(--brand-qr-dark));
  border: none; padding: 13px; border-radius: var(--radius-md); cursor: pointer;
  box-shadow: 0 4px 16px rgba(108,71,255,.35);
  transition: transform .22s, box-shadow .22s;
}
/* TO: */
.qr-modal-close-btn {
  width: 100%; margin-top: 10px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.40);
  border: 1.5px solid rgba(255,255,255,0.10);
  padding: 10px; border-radius: var(--radius-md);
  font-size: .82rem; font-weight: 500;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.qr-modal-close-btn:hover {
  background: rgba(220,38,127,0.10);
  color: rgba(255,150,150,0.90);
  border-color: rgba(220,38,127,0.30);
}

/* ─── UPGRADE BTN ─── */
.upgrade-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  color: #fff; background: linear-gradient(135deg, var(--brand-qr), var(--brand-qr-dark));
  border: none; border-radius: var(--radius-md); cursor: pointer;
  text-decoration: none; box-shadow: 0 4px 14px rgba(108,71,255,.4);
  transition: transform .22s, box-shadow .22s, background .22s;
  width: 100%; margin-top: 8px; overflow: hidden; position: relative;
}
.upgrade-btn::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.15),transparent);
  transition: left .4s ease;
}
.upgrade-btn:hover::before { left: 100%; }
.upgrade-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(108,71,255,.55); background: linear-gradient(135deg,#7c5aff,#5f42e8); }

/* ─── SWEETALERT OVERRIDES ─── */
.qr-swal-popup, .swal-premium { border-radius: 16px !important; padding: 25px !important; font-family: 'Segoe UI', sans-serif; }
.qr-swal-confirm, .swal-confirm-btn { border-radius: 8px !important; font-weight: 600 !important; padding: 10px 18px !important; }
.qr-swal-cancel, .swal-cancel-btn  { border-radius: 8px !important; font-weight: 500 !important; padding: 10px 18px !important; }

/* ─── RESPONSIVE ─── */
@media (max-width: 992px) {
  .user-dashboard .profile-card, .user-dashboard .profile-left { flex-direction: column; text-align: center; }
  .user-dashboard .profile-badges { justify-content: center; }
  .user-dashboard .kyc-row { grid-template-columns: 1fr; gap: 6px; }
  .user-dashboard .kyc-actions { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .pagination { flex-direction: column; align-items: center; gap: 12px; }
  .pagination a { min-width: 100px; text-align: center; }
  .pagination span { font-size: 14px; color: #555; }
}

@media (max-width: 640px) {
  .user-dashboard { padding: 20px 15px; }
  .user-dashboard .profile-card { padding: 20px; }
  .user-dashboard .profile-img { width: 80px; height: 80px; }
  .user-dashboard .stats { grid-template-columns: 1fr; }
  .user-dashboard .invoice-box table { display: block; overflow-x: auto; white-space: nowrap; }
  .user-dashboard .modal-box { width: 95%; }
  .modal-form-row { flex-direction: column; }
  .pagination { flex-direction: column; gap: 10px; }
}

/* ===== Affiliate Modal Premium ===== */
.af-modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(5,5,20,0.75);
  backdrop-filter: blur(6px);
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.af-modal-card{
  background: linear-gradient(160deg, #0c0c28, #14103a);
  padding:25px;
  border-radius:16px;
  width:320px;
  border:1px solid rgba(91,61,245,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  text-align:center;
}

.af-title{
  font-size:18px;
  margin-bottom:5px;
}

.af-sub{
  font-size:13px;
  color:rgba(255,255,255,0.6);
  margin-bottom:15px;
}

.af-input{
  width:100%;
  padding:10px;
  border-radius:10px;
  border:none;
  background:rgba(255,255,255,0.08);
  color:#fff;
  margin-bottom:15px;
}

.af-actions{
  display:flex;
  gap:10px;
  justify-content:center;
}

.af-btn{
  padding:8px 14px;
  border:none;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
}

.af-primary{
  background:linear-gradient(135deg,#6a5cff,#8f7bff);
  color:#fff;
}

.af-secondary{
  background:rgba(255,255,255,0.1);
  color:#fff;
}

.af-alert-success{
  background: linear-gradient(135deg,#28a745,#4ade80);
  padding:12px;
  border-radius:10px;
  margin-bottom:15px;
  text-align:center;
  font-weight:600;
}

.af-badge{
  background: linear-gradient(135deg,#6a5cff,#8f7bff);
  padding:5px 10px;
  border-radius:20px;
  font-size:12px;
  margin-left:10px;
}

.af-badge-float{
  position:absolute;
  top:-6px;
  right:-6px;
  background:linear-gradient(135deg,#6a5cff,#8f7bff);
  padding:3px 8px;
  font-size:10px;
  border-radius:12px;
  font-weight:600;
}

/* ===== Affiliate Dashboard ===== */
.af-dashboard{
  margin-top:40px 0 60px;
  width:100%;
  padding:20px;
  border-radius:16px;
  border:1px solid rgba(106,92,255,0.3);
  background: rgba(106,92,255,0.05);
}

.af-title-main{
  font-size:20px;
  margin-bottom:15px;
}

.af-grid{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:20px;
}

.af-card{
  background: linear-gradient(160deg, #0c0c28, #14103a);
  padding:20px;
  border-radius:16px;
  border:1px solid rgba(91,61,245,0.2);
}

.af-label{
  font-size:12px;
  color:rgba(255,255,255,0.6);
  margin-bottom:6px;
}

.af-link-box{
  display:flex;
  gap:10px;
}

.af-link-box input{
  flex:1;
  padding:10px;
  border-radius:8px;
  border:none;
  background:rgba(255,255,255,0.08);
  color:#fff;
  font-size:13px; 
  font-weight:500;
}

.af-link-box button{
  padding:8px 12px;
  border:none;
  border-radius:8px;
  background:#6a5cff;
  color:#fff;
  cursor:pointer;
  font-size:12px;
  font-weight:600;
}

.af-stats{
  display:flex;
  justify-content:space-between;
  text-align:center;
}

.af-stats h4{
  font-size:14px;
  margin-bottom:5px;
}

.af-stats p{
  font-size:18px;
  font-weight:600;
}

@media (max-width: 768px){
  .af-grid{
    grid-template-columns:1fr;
  }

  .af-link-box{
    flex-direction:column;
  }

  .af-link-box button{
    width:100%;
  }
}

.af-parent{
  position: relative;
}

.af-badge-float{
  position:absolute;
  top:-5px;
  right:-5px;
  background:linear-gradient(135deg,#6a5cff,#8f7bff);
  padding:3px 8px;
  font-size:10px;
  border-radius:12px;
  font-weight:600;
}

.af-hint{
  font-size:12px;
  color:rgba(255,255,255,0.5);
  margin-top:8px;
  line-height:1.4;
}

.af-earn-box{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.af-withdraw-btn{
  padding:6px 12px;
  font-size:12px;
  border:none;
  border-radius:8px;
  background:linear-gradient(135deg,#6a5cff,#8f7bff);
  color:#fff;
  cursor:pointer;
  transition:0.2s ease;
}

.af-withdraw-btn:hover{
  transform:scale(1.05);
}

/* ===== Withdraw Modal Fix ===== */
.wd-modal{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
}

.wd-box{
  background: linear-gradient(160deg, #0c0c28, #14103a);
  padding: 25px;
  border-radius: 16px;
  width: 360px;
  border: 1px solid rgba(91,61,245,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  color: #fff;
  text-align: left;
  animation: pop .3s ease;
}

.wd-box h3{
  margin-bottom: 15px;
  font-size: 18px;
}

.wd-box label{
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 10px;
  display: block;
}

.wd-box input{
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
}

.wd-info{
  margin-top: 10px;
  font-size: 12px;
  color: #aaa;
}

.wd-actions{
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.wd-actions button{
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.wd-actions button:first-child{
  background: linear-gradient(135deg,#6a5cff,#8f7bff);
  color: #fff;
}

.wd-actions button:last-child{
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.wd-actions button{
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.wd-msg{
  margin-top: 10px;
  font-size: 13px;
  padding: 8px;
  border-radius: 8px;
  display: none;
}

.wd-msg.success{
  background: rgba(0,255,150,0.1);
  color: #00ffae;
}

.wd-msg.error{
  background: rgba(255,80,80,0.1);
  color: #ff6b6b;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.af-welcome-box{
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  padding: 20px;
  border-radius: 12px;
  color: #fff;
  margin-bottom: 20px;
}

.af-stats{
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.af-stats div{
  text-align: center;
}

.af-success-banner{
  background: linear-gradient(135deg,#00c853,#00e676);
  padding:12px;
  border-radius:8px;
  color:#000;
  font-weight:600;
  margin-bottom:15px;
  text-align:center;
}

.af-dashboard{
  margin-top: 25px;
}

.af-cards{
  display:flex;
  gap:15px;
}

.af-card{
  flex:1;
  background: rgba(255,255,255,0.05);
  padding:20px;
  border-radius:12px;
  text-align:center;
}

.withdraw-btn{
  background: linear-gradient(135deg,#00c853,#00e676);
  border:none;
  padding:10px 20px;
  border-radius:8px;
  color:#000;
  font-weight:600;
  cursor:pointer;
}

/* ===== AFFILIATE DASHBOARD — CLEAN REDESIGN ===== */
.affiliate-clean-box {
  margin-top: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(91,61,245,0.20);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(91,61,245,0.08);
}

.affiliate-clean-box h2 {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  margin: 0 0 20px;
}

.affiliate-clean-box label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
}

.affiliate-clean-box input[readonly] {
  width: 100%;
  margin-top: 8px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.70);
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}

/* ── Affiliate stat cards ── */
.affiliate-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
  width: 100%;
}

.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(91,61,245,0.15);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.stat-card:hover {
  border-color: rgba(91,61,245,0.35);
  transform: translateY(-3px);
}

.stat-card h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  margin: 0 0 10px;
}

.stat-card p {
  font-size: 22px;
  font-weight: 800;
  color: #a78bfa;
  margin: 0;
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Withdraw history box ── */
.withdraw-history-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.withdraw-history-box .payment-table {
  table-layout: fixed;
  width: 100%;
}

.withdraw-history-box .payment-table th,
.withdraw-history-box .payment-table td {
  text-align: center;
  padding: 12px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.withdraw-history-box .payment-table th:nth-child(1),
.withdraw-history-box .payment-table td:nth-child(1) { width: 8%; }

.withdraw-history-box .payment-table th:nth-child(2),
.withdraw-history-box .payment-table td:nth-child(2) { width: 15%; }

.withdraw-history-box .payment-table th:nth-child(3),
.withdraw-history-box .payment-table td:nth-child(3) { width: 32%; }

.withdraw-history-box .payment-table th:nth-child(4),
.withdraw-history-box .payment-table td:nth-child(4) { width: 20%; }

.withdraw-history-box .payment-table th:nth-child(5),
.withdraw-history-box .payment-table td:nth-child(5) { width: 25%; }

.withdraw-history-box h3 {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.80);
  margin: 0 0 16px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .affiliate-stats {
    grid-template-columns: 1fr;
  }
  .affiliate-clean-box {
    padding: 18px;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.range-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.55);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.range-btn:hover {
  background: rgba(108,71,255,0.20);
  border-color: rgba(108,71,255,0.40);
  color: #fff;
}

.range-btn.active {
  background: linear-gradient(135deg, #6c47ff, #4f35d4);
  border-color: transparent;
  color: #fff;
}

/* ═══════════════════════════════════════
   PROFILE PAGE — MOBILE RESPONSIVE ONLY
   Touches nothing above 768px
═══════════════════════════════════════ */

@media(max-width:768px){

    /* Profile card */
    .user-dashboard .profile-card{
        flex-direction:column;
        text-align:center;
        padding:20px 16px;
    }
    .user-dashboard .profile-left{
        flex-direction:column;
        align-items:center;
        gap:14px;
    }
    .user-dashboard .profile-badges{
        flex-wrap:wrap;
        justify-content:center;
        gap:8px;
    }
    .plan-info{
        flex-direction:column;
        align-items:center;
        gap:4px;
    }

    /* Stats */
    .user-dashboard .stats{
        grid-template-columns:1fr;
        gap:10px;
    }
    .user-dashboard .stat-box{
        padding:16px;
    }

    /* KYC */
    .user-dashboard .kyc-section{
        padding:14px;
    }
    .user-dashboard .kyc-row{
        grid-template-columns:1fr;
        gap:6px;
        padding:10px 0;
    }
    .user-dashboard .kyc-actions{
        flex-wrap:wrap;
    }

    /* Affiliate clean box */
    .affiliate-clean-box{
        padding:16px;
    }
    .affiliate-clean-box h2{
        font-size:16px;
    }

    /* Affiliate stat cards */
    .affiliate-stats{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }
    .affiliate-analytics > div[style*="grid-template-columns"]{
        display:grid !important;
        grid-template-columns:1fr 1fr !important;
        gap:10px !important;
    }
    .stat-card{
        padding:12px 10px;
    }
    .stat-card p{
        font-size:18px;
    }

    /* Analytics date range */
    .analytics-box > div:first-child{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }
    .analytics-box > div:first-child > div{
        flex-wrap:wrap;
        gap:8px;
    }

    /* Charts grid */
    .analytics-box > div[style*="grid-template-columns"]{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:14px !important;
    }

    /* Withdraw history table */
    .withdraw-history-box{
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
    }
    .withdraw-history-box .payment-table{
        min-width:400px;
    }

    /* Payment history table */
    .user-dashboard .invoice-box{
        padding:14px;
        overflow-x:auto;
    }
    .user-dashboard .invoice-box table{
        min-width:520px;
    }

    /* QR section */
    .qr-section-box{
        padding:16px;
    }
    .qr-header{
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }
    .qr-header-meta{
        width:100%;
        justify-content:space-between;
    }
    .qr-generate-btn{
        width:100%;
        justify-content:center;
    }
    .qr-grid{
        grid-template-columns:1fr 1fr;
        gap:12px;
    }

    /* Withdraw modal */
    .wd-box{
        width:90vw;
        padding:18px;
    }

    /* QR modal */
    .qr-modal-content{
        width:92vw;
        padding:20px;
    }
}

@media(max-width:480px){

    /* Single column everything */
    .affiliate-stats{
        grid-template-columns:1fr;
    }
    .affiliate-analytics > div[style*="grid-template-columns"]{
        grid-template-columns:1fr !important;
    }
    .qr-grid{
        grid-template-columns:1fr;
    }

    /* Smaller profile image */
    .user-dashboard .profile-img{
        width:70px;
        height:70px;
    }

    /* Page title */
    .user-dashboard .stat-box h3{
        font-size:22px;
    }

    /* Range buttons wrap */
    .range-btn{
        padding:4px 8px;
        font-size:11px;
    }

    /* Date inputs full width */
    #analyticsFrom,
    #analyticsTo{
        width:100% !important;
    }
}

/* ── QR Header Mobile Fix ── */
@media(max-width:768px){

    .qr-header{
        flex-direction:column;
        align-items:stretch;
        gap:14px;
    }

    .qr-header h3{
        font-size:1rem;
        text-align:left;
    }

    .qr-header-meta{
        display:flex;
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
        gap:10px;
        width:100%;
    }

    /* Fix the ugly circle stat badge */
    .qr-stat-badge{
        background:rgba(255,255,255,0.06);
        border:1px solid rgba(91,61,245,0.25);
        border-radius:8px !important;
        padding:8px 12px !important;
        font-size:0.75rem;
        display:flex;
        align-items:center;
        text-transform:none;
        letter-spacing:0;
    }

    .qr-usage-box{
        flex-direction:row;
        align-items:center;
        gap:6px;
    }

    .usage-main{
        font-size:0.82rem;
        color:#a78bfa;
    }

    .usage-sub{
        font-size:0.72rem;
        color:rgba(255,255,255,0.35);
    }

    .qr-generate-btn{
        width:auto;
        flex:1;
        justify-content:center;
        padding:9px 14px;
        font-size:0.82rem;
    }

    /* QR grid — 1 column on small phones */
    .qr-grid{
        grid-template-columns:1fr;
    }

    /* QR card actions row */
    .qr-actions{
        display:grid;
        grid-template-columns:1fr 1fr 1fr 1fr;
        gap:6px;
    }

    .qr-actions .open-btn,
    .qr-actions .download-btn,
    .qr-actions .delete-btn{
        padding:7px 4px;
        font-size:0.72rem;
    }

    /* Payment table */
    .user-dashboard .invoice-box{
        padding:12px;
    }

    .payment-table th,
    .payment-table td{
        padding:8px 6px;
        font-size:0.75rem;
    }
}

@media(max-width:480px){
    /* Stack QR header meta vertically */
    .qr-header-meta{
        flex-direction:column;
        align-items:stretch;
    }

    .qr-stat-badge{
        width:100%;
        justify-content:center;
    }

    .qr-generate-btn{
        width:100%;
    }
}

@media(max-width:768px){

    /* Profile info — center everything */
    .user-dashboard .profile-info{
        align-items:center;
        text-align:center;
        width:100%;
    }

    /* Plan info row */
    .plan-info{
        flex-direction:row;
        flex-wrap:wrap;
        justify-content:center;
        align-items:center;
        gap:8px;
        margin-bottom:8px;
    }

    .plan-badge{
        font-size:0.7rem;
        padding:4px 12px;
    }

    .plan-expiry{
        font-size:0.75rem;
    }

    /* Badges row — center and wrap */
    .user-dashboard .profile-badges{
        display:flex;
        flex-direction:row;
        flex-wrap:wrap;
        justify-content:center;
        align-items:center;
        gap:8px;
        margin-top:10px;
        width:100%;
    }

    /* Active User badge */
    .user-dashboard .status{
        font-size:0.72rem;
        padding:4px 12px;
        border-radius:20px;
        white-space:nowrap;
    }

    /* Edit Profile button */
    .user-dashboard .edit-profile-btn{
        font-size:0.75rem;
        padding:6px 16px;
        white-space:nowrap;
    }

    /* Name and email */
    .user-dashboard #userName{
        font-size:1.1rem;
        margin-bottom:4px;
    }

    .user-dashboard #userEmail{
        font-size:0.82rem;
        color:rgba(255,255,255,0.6);
        margin-bottom:8px;
        word-break:break-all;
    }
}