/* =========================================
   Recent Activity grid guard
   ========================================= */
.activity-feed-container .activity-item-main {
    display: grid !important;
}

.activity-feed-container .activity-item-main > div {
    min-width: 0 !important;
}

.activity-feed-container .activity-item-main .col-date,
.activity-feed-container .activity-item-main .col-details,
.activity-feed-container .activity-item-main .col-amount {
    flex-shrink: 1 !important;
    min-width: 0 !important;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.activity-feed-container .activity-item-main .col-details {
    margin-right: 0 !important;
}

.activity-feed-container .activity-item-main .col-amount {
    text-align: right !important;
    margin-right: 0 !important;
    white-space: normal !important;
}

.activity-feed-container .activity-item-main .col-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
    gap: 5px !important;
}

.activity-feed-container .activity-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

@media (max-width: 991.98px) {
    .activity-feed-container .activity-item-main {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 0.5rem 0.75rem !important;
        padding: 0.875rem 1rem !important;
    }

    .activity-feed-container .activity-item-main .col-date,
    .activity-feed-container .activity-item-main .col-details,
    .activity-feed-container .activity-item-main .col-amount {
        grid-column: 1 / -2 !important;
        min-width: 0 !important;
        overflow-wrap: anywhere;
    }

    .activity-feed-container .activity-item-main .col-actions {
        grid-area: 1 / -2 / 3 / -1 !important;
        align-self: start;
    }

    .activity-feed-container .activity-actions {
        flex-direction: column;
        align-items: flex-end !important;
    }
}
/* ========================================= */

:root {
  /* Page aliases mapped to the active global theme */
  --sage-900: var(--primary-dark, #2f4b3f);
  --sage-800: var(--primary-dark, #3a5b4d);
  --sage-700: var(--primary, #4f725f);
  --sage-600: var(--primary-light, #6f8f80);
  --sage-500: var(--primary-light, #8eaa9e);
  --sage-300: var(--primary-soft, #cfe0d7);
  --accent-green: var(--success, #10B981);
  --warning-red: var(--danger, #DC2626);
  --warning-bg: var(--danger-bg, #FEF2F2);
  --background-light: var(--light-color, #F3F4F3);
  --card-light: var(--card-bg, #FFFFFF);
  --inner-card-light: var(--soft, #F1F3F0);
  --ink: var(--text-color, #1f2a24);
  --bg: var(--light-color, #f5f7f6);
  --card: var(--card-bg, #ffffff);

  /* Layout */
  --shadow: 0 14px 40px rgba(23, 36, 29, .10);
  --radius: 16px;
  --radius-xl: 2rem; /* Updated to 32px for mockup */
  --ring: rgba(79, 114, 95, .22);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* Material Symbols configuration - UPDATED to Outlined */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400;
  font-size: 24px;
  user-select: none;
  direction: ltr;
  display: inline-block;
  font-style: normal;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
}

.page-title {
  color: var(--sage-800);
  font-weight: 800;
  letter-spacing: .2px;
}

.subtle {
  color: var(--muted);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-h {
  background: linear-gradient(180deg, rgba(142, 170, 158, .35) 0%, rgba(142, 170, 158, .18) 100%);
  border-bottom: 1px solid var(--line);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.pill {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 999px;
  padding: .35rem .65rem;
  font-size: .85rem;
  color: var(--muted);
}

.seg {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .25rem;
}

.seg .btn {
  border-radius: 999px;
  padding: .45rem .9rem;
}

.seg .btn.active {
  background: var(--sage-700);
  border-color: var(--sage-700);
  color: var(--on-primary, #fff);
}

.btn-sage {
  background: var(--sage-700);
  border-color: var(--sage-700);
  color: var(--on-primary, #fff);
}

.btn-sage:hover {
  background: var(--sage-800);
  border-color: var(--sage-800);
  color: var(--on-primary, #fff);
}

.btn-soft {
  background: var(--soft);
  border-color: var(--line);
  color: var(--ink);
}

.btn-soft:hover {
  background: #eef4f1;
  border-color: #d7e1db;
}

.adhoc-commission-preview {
  background: var(--primary-soft, var(--soft));
  border: 1px solid var(--primary-light, var(--line));
  color: var(--primary-dark, var(--ink));
}

.adhoc-commission-preview .preview-icon,
.adhoc-commission-preview .preview-amount {
  color: var(--primary, var(--sage-700));
}

/* Dropdown readability fix */
select option {
  color: #111 !important;
  background: #fff !important;
}

select option:checked {
  background: var(--primary) !important;
  color: #fff !important;
}

select option:hover {
  background: var(--primary-soft) !important;
  color: var(--ink) !important;
}

/* Member dropdown */
.member-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.member-dropdown-item {
  padding: .75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}

.member-dropdown-item:hover {
  background: var(--soft);
}

.member-dropdown-item:last-child {
  border-bottom: none;
}

/* Staff chips */
.staff-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.staff-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
  font-size: 12px;
  color: var(--sage-800);
}

.staff-chip .x {
  width: 18px;
  height: 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--soft);
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  line-height: 1;
}

/* Staff level badges in chips */
.level-badge-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: opacity 0.15s;
}
.level-badge-chip:hover { opacity: 0.75; }
.level-badge-chip.badge-junior { background: #fef3c7; color: #92400e; }
.level-badge-chip.badge-senior { background: #dbeafe; color: #1d4ed8; }
.level-badge-chip.badge-standard { background: #dcfce7; color: #16a34a; }

.staff-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--sage-800);
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
}

.staff-add:hover {
  background: #eef6f3;
  color: var(--sage-700);
}

.staff-muted {
  opacity: .75;
  font-weight: 800;
  font-size: 12px;
}

/* Staff picker modal (Centered) */
.staff-picker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
  align-items: center; /* Centered */
  justify-content: center;
  backdrop-filter: blur(2px);
}

.staff-sheet {
  background: white;
  border-radius: 16px; /* Rounded corners */
  padding: 1.5rem;
  width: 90%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: modalPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.staff-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: background .15s;
}

.staff-check-item:hover {
  background: #f8fdfa;
}

/* Service tabs */
.service-tabs .nav-link {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  padding: .5rem .85rem;
}

.service-tabs .nav-link.active {
  background: var(--sage-700);
  border-color: var(--sage-700);
  color: #fff;
}

/* Service option cards */
.opt-row {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}

.opt-row:hover {
  background: var(--soft);
}

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

.opt-name {
  font-weight: 600;
  color: var(--ink);
}

.opt-code {
  font-size: .75rem;
  color: var(--muted);
}

/* Segment toggle */
.seg-toggle {
  display: inline-flex;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .25rem;
}

.seg-toggle .seg {
  border-radius: 999px;
  padding: .45rem .9rem;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.seg-toggle .seg.active {
  background: var(--sage-700);
  color: #fff;
}

.cart-table {
  font-size: .9rem;
}

.cart-table tbody tr {
  border-bottom: 1px solid var(--line);
}

/* ========================================
   MEMBER CARD - Modern Mockup Design
   ======================================== */

.member-card-container {
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0.3));
  border: 1px solid rgba(156, 163, 175, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  font-family: var(--font-sans);
  transition: box-shadow 0.3s ease;
}

.member-card-container:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

/* Header Section */
.member-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
  border-bottom: 1px solid rgba(156, 163, 175, 0.15);
}

.member-info-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Avatar Circle */
.member-avatar-wrapper {
  position: relative;
}

.member-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--primary-soft, #f4f4f5);
  border: 1px solid var(--primary-light, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
  letter-spacing: -0.5px;
}

.member-avatar-badge {
  position: absolute;
  bottom: -0.25rem;
  right: -0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--primary, var(--accent-green));
  border: 2px solid var(--card-bg, white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.member-avatar-badge .material-symbols-outlined {
  font-size: 12px;
  color: var(--on-primary, white);
}

/* Name and Contact Info */
.member-name-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.member-display-name {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: #18181b;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.025em;
}

.member-contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.phone-display {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #71717a;
  font-size: 0.875rem;
  font-weight: 500;
}

.phone-display .material-symbols-outlined {
  font-size: 18px;
}

.id-badge {
  padding: 0.25rem 0.75rem;
  background: #f4f4f5;
  color: #71717a;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  letter-spacing: 0.025em;
}

/* Tier Badge */
.tier-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark, var(--sage-800)) 100%);
  color: var(--on-primary, white);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(75, 99, 68, 0.3);
}

.tier-badge .material-symbols-outlined {
  font-size: 14px;
}

/* Body Grid Layout */
.member-card-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
}

@media (min-width: 1024px) {
  .member-card-body {
    grid-template-columns: 1fr 1fr;
  }
}

/* Left Column: Detail Cards */
.detail-cards-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-card {
  background: white;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.detail-card:hover {
  background: #fafafa;
}

.detail-card-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.detail-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-icon .material-symbols-outlined {
  font-size: 20px;
}

/* Icon color themes */
.detail-icon.phone {
  background: rgba(251, 146, 60, 0.1);
  color: #ea580c;
}

.detail-icon.balance {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.detail-icon.discount {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.detail-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #52525b;
}

.detail-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: #18181b;
  padding: 0.375rem 1rem;
  background: #f4f4f5;
  border-radius: 0.5rem;
  white-space: nowrap;
}

.detail-value.large {
  font-size: 1.125rem;
}

.detail-value.badge {
  background: var(--accent-green);
  color: var(--on-primary, white);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

/* Top-up Button (NEW) */
.topup-button {
  width: 100%;
  background: var(--primary);
  color: var(--on-primary, white);
  padding: 1.5rem;
  border-radius: 1rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  transition: all 0.3s;
  cursor: pointer;
  margin-top: 1rem;
}

.topup-button:hover {
  opacity: 0.9;
}

.topup-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-primary, white);
  transition: transform 0.3s;
}

.topup-button:hover .topup-icon {
  transform: scale(1.1);
}

.topup-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--on-primary, white);
}

/* ========================================
   NEW MEMBER CARD V2 STYLES
   Contact List, Balance Gradient, Notes
   ======================================== */

/* Contact Column */
.contact-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-list {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #E5E7EB;
}

.contact-item:last-of-type {
  border-bottom: none;
}

.contact-icon {
  font-size: 1.4rem;
  color: #1F2937;
  width: 40px;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.85rem;
  color: #6B7280;
  margin-bottom: 2px;
}

.contact-value {
  font-weight: 500;
  color: #1F2937;
  word-break: break-word;
}

/* Top-up Button - Bootstrap Style */
.btn-topup {
  background-color: var(--primary, #4A6354);
  color: var(--on-primary, white);
  border: none;
  border-radius: 12px;
  padding: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.btn-topup:hover {
  background-color: var(--primary-dark, #3d5246);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  color: var(--on-primary, white);
}

/* Balance + Notes Column */
.balance-notes-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Balance Card with Sage Gradient */
.balance-card-gradient {
  background: linear-gradient(135deg, var(--primary, #8DA692), var(--primary-light, #7A9480));
  color: var(--on-primary, white);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.balance-label-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.balance-display-lg {
  font-size: 2.5rem;
  font-weight: 500;
  margin: 0.5rem 0;
  white-space: nowrap;
}

.balance-badge-translucent {
  background-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
  color: var(--on-primary, white);
  font-weight: 400;
  padding: 0.5em 1em;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  display: inline-block;
}

/* Notes Section */
.notes-section {
  background-color: var(--soft, #F3F4F6);
  border-radius: 16px;
  padding: 1.5rem;
}

.notes-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted, #6B7280);
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.notes-content {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--text-color, #1F2937);
  line-height: 1.6;
}

[data-theme="theme3"] .redemption-page .member-card-container {
  background: var(--card-bg);
  border-color: var(--border-color);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

[data-theme="theme3"] .redemption-page .member-card-header {
  background: var(--soft);
  border-bottom-color: var(--border-color);
}

[data-theme="theme3"] .redemption-page .member-card-body {
  background: var(--card-bg);
}

[data-theme="theme3"] .redemption-page .member-display-name,
[data-theme="theme3"] .redemption-page .contact-value {
  color: var(--text-color);
}

[data-theme="theme3"] .redemption-page .id-badge {
  background: var(--input-bg);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

[data-theme="theme3"] .redemption-page .member-avatar {
  background: var(--soft);
  border-color: var(--primary-light);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(214, 162, 168, 0.18);
}

[data-theme="theme3"] .redemption-page .member-avatar-badge {
  background: var(--primary);
  border-color: var(--card-bg);
  color: var(--on-primary);
}

[data-theme="theme3"] .redemption-page .member-avatar-badge .material-symbols-outlined {
  color: var(--on-primary);
}

[data-theme="theme3"] .redemption-page .tier-badge {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 8px 22px rgba(214, 162, 168, 0.22);
}

[data-theme="theme3"] .redemption-page .contact-item {
  border-bottom-color: var(--border-color);
}

[data-theme="theme3"] .redemption-page .contact-icon,
[data-theme="theme3"] .redemption-page .contact-label {
  color: var(--text-muted);
}

[data-theme="theme3"] .redemption-page .btn-topup {
  background: var(--primary);
  color: var(--on-primary);
  border: 1px solid var(--primary);
}

[data-theme="theme3"] .redemption-page .btn-topup:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--on-primary);
}

[data-theme="theme3"] .redemption-page .balance-card-gradient {
  background: var(--soft);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

[data-theme="theme3"] .redemption-page .balance-label-text {
  color: var(--text-muted);
  opacity: 1;
}

[data-theme="theme3"] .redemption-page .balance-display-lg {
  color: var(--text-color);
}

[data-theme="theme3"] .redemption-page .balance-badge-translucent {
  background: var(--warning);
  color: #171316;
  border-color: var(--warning);
}

[data-theme="theme3"] .redemption-page .notes-section {
  background: var(--soft);
  border: 1px solid var(--border-color);
}

[data-theme="theme3"] .redemption-page .notes-title {
  color: var(--text-muted);
}

[data-theme="theme3"] .redemption-page .notes-content {
  color: var(--text-color);
}

/* Update avatar to match mockup v2 */
.member-avatar {
  width: 70px !important;
  height: 70px !important;
  background: linear-gradient(135deg, var(--primary-soft, #E3ECE6), var(--primary-light, #D1DDD6)) !important;
  color: var(--primary-dark, #4A6354) !important;
  font-size: 1.5rem !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
}

/* Right Column: Balance Spotlight Card */
.balance-spotlight-card {
  background: var(--inner-card-light);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}

.balance-spotlight-icon {
  width: 4rem;
  height: 4rem;
  background: #e5e7eb;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.balance-spotlight-icon .material-symbols-outlined {
  font-size: 48px;
}

.balance-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.balance-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #9ca3af;
  text-transform: uppercase;
}

.balance-display {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.balance-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background: var(--accent-green);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
  cursor: default;
}

.balance-status-badge .material-symbols-outlined {
  font-size: 14px;
}

/* Balance Status States */
.balance-spotlight-card.state-normal {
  background: var(--inner-card-light);
}

.balance-spotlight-card.state-normal .balance-display {
  color: #1f2937;
}

.balance-spotlight-card.state-normal .balance-spotlight-icon {
  background: #e5e7eb;
  color: #6b7280;
}

.balance-spotlight-card.state-warning {
  background: #fef2f2;
}

.balance-spotlight-card.state-warning .balance-display {
  color: var(--warning-red);
}

.balance-spotlight-card.state-warning .balance-spotlight-icon {
  background: rgba(220, 38, 38, 0.1);
  color: var(--warning-red);
}

.balance-spotlight-card.state-warning .balance-status-badge {
  background: var(--warning-red);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.balance-spotlight-card.state-critical {
  background: linear-gradient(135deg, #FEF2F2 0%, rgba(254, 242, 242, 0.5) 100%);
  border-color: rgba(220, 38, 38, 0.3);
}

.balance-spotlight-card.state-critical .balance-display {
  color: var(--warning-red);
}

.balance-spotlight-card.state-critical .balance-spotlight-icon {
  background: rgba(220, 38, 38, 0.15);
  color: var(--warning-red);
}

.balance-spotlight-card.state-critical .balance-label {
  color: rgba(127, 29, 29, 0.7);
}

.balance-spotlight-card.state-critical .balance-status-badge {
  background: var(--warning-red);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Responsive Design */
@media (max-width: 1023px) {
  .member-display-name {
    font-size: 2.25rem;
  }

  .member-card-body {
    gap: 1.5rem;
  }

  .balance-spotlight-card {
    margin-top: 0.5rem;
  }
}

@media (max-width: 767px) {
  .member-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .member-display-name {
    font-size: 1.875rem;
  }

  .member-avatar {
    width: 4rem;
    height: 4rem;
    font-size: 1.25rem;
  }

  .tier-badge {
    align-self: flex-start;
  }

  .member-card-body {
    padding: 1.5rem;
    gap: 1rem;
  }

  .detail-card {
    padding: 1rem;
  }

  .balance-display {
    font-size: 2rem;
  }
}

/* Accessibility: Focus States */
.member-card-container *:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* ================================================
   SUCCESS CONFIRMATION PANEL - SCOPED STYLES
   ================================================ */
#successPanel.success-panel { padding: 44px 16px; }
#successPanel .success-card{
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  text-align: center;
}
#successPanel .success-icon-wrap{ display:flex; justify-content:center; margin-bottom: 12px; }
#successPanel .success-icon-circle{
  width: 72px; height: 72px;
  border-radius: 999px;
  background: rgba(25,135,84,.12);
  display:flex; align-items:center; justify-content:center;
  color: #198754;
}
#successPanel .success-check{ font-size: 40px; font-weight: 800; line-height: 1; }

#successPanel .success-title{ margin: 0; font-size: 30px; font-weight: 800; }
#successPanel .success-subtitle{ margin-top: 6px; color: rgba(0,0,0,.6); }

/* Success Badges */
#successPanel .success-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
#successPanel .badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
#successPanel .badge-mode {
  background: #e3f2fd;
  color: #1976d2;
}
#successPanel .badge-items {
  background: #f3e5f5;
  color: #7b1fa2;
}
#successPanel .badge-staff {
  background: #e8f5e9;
  color: #388e3c;
}

#successPanel .success-summary{
  max-width: 640px;
  margin: 18px auto 14px;
  text-align: left;
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 14px;
  padding: 16px;
  background: rgba(0,0,0,.015);
}
#successPanel .summary-row{
  display:grid;
  grid-template-columns: 170px 1fr;
  gap: 12px;
  padding: 8px 2px;
  align-items: center;
}
#successPanel .label{ color: rgba(0,0,0,.58); font-size: 13px; }
#successPanel .value{ color: rgba(0,0,0,.88); font-size: 14px; text-align: right; }
#successPanel .summary-divider{ border-top: 1px dashed rgba(0,0,0,.18); margin: 10px 0; }
#successPanel .strong{ font-weight: 800; font-size: 16px; }
#successPanel .highlight{ font-weight: 900; color: #198754; font-size: 16px; }

/* Breakdown Section */
#successPanel .breakdown-section { margin: 8px 0; }
#successPanel .breakdown-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(0,0,0,.45);
  margin-bottom: 8px;
}
#successPanel .breakdown-row { padding: 4px 2px; }
#successPanel .breakdown-grand {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 2px solid rgba(0,0,0,.12);
}


#successPanel .success-actions{
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
#successPanel .success-actions .btn{
  min-width: 170px;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
}
#successPanel .success-hint{ margin-top: 12px; font-size: 12px; color: rgba(0,0,0,.55); }

@media (max-width: 520px){
  #successPanel .summary-row{ grid-template-columns: 1fr; }
  #successPanel .value{ text-align: left; }
  #successPanel .success-actions .btn{ width: 100%; min-width: 0; }
}

/* ================================================
   SIMPLE CONFIRMATION CARD (No Receipt Preview)
   ================================================ */
.simple-confirmation-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  text-align: center;
}

.confirmation-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.confirmation-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(25, 135, 84, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #198754;
}

.confirmation-icon-circle .material-symbols-outlined {
  font-size: 48px;
  font-variation-settings: 'FILL' 1, 'wght' 600;
}

.confirmation-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem 0;
}

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

.confirmation-balance-banner {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-text) 100%);
  border: 1px solid var(--success);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 16px rgba(25, 135, 84, 0.18);
}

.confirmation-balance-label-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.confirmation-balance-icon {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
}

.confirmation-balance-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.confirmation-balance-value {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0;
}

.confirmation-meta {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  display: inline-block;
  min-width: 300px;
}

.confirmation-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.confirmation-meta-row:not(:last-child) {
  border-bottom: 1px dashed var(--line);
}

.confirmation-meta-label {
  color: var(--muted);
  font-weight: 500;
}

.confirmation-meta-value {
  color: var(--ink);
  font-weight: 700;
}

.confirmation-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.confirmation-actions .btn {
  min-width: 160px;
  border-radius: 10px;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
}

@media (max-width: 767px) {
  .simple-confirmation-card {
    padding: 2rem 1.25rem;
  }

  .confirmation-title {
    font-size: 1.5rem;
  }

  .confirmation-meta {
    min-width: 0;
    width: 100%;
  }

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

/* ════════════════════════════════════════
   MOBILE OVERRIDES — max-width 991.98px
   (Desktop ≥992px unchanged)
   ════════════════════════════════════════ */

/* 0. Payment method icon-cards */
.pm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}
.pm-grid .btn-check { position: absolute; clip: rect(0,0,0,0); pointer-events: none; }
.pm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px 8px;
  border: 1.5px solid var(--line, #dde1da);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  color: #5a6a5b;
  line-height: 1.2;
  text-align: center;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
  user-select: none;
  min-height: 68px;
}
.pm-card i {
  font-size: 1.35rem;
  color: #7a967b;
  transition: color .15s;
}
.pm-card:hover {
  border-color: #3D5A3E;
  background: #f0f4f0;
  color: #3D5A3E;
}
.pm-card:hover i { color: #3D5A3E; }
.btn-check:checked + .pm-card {
  border-color: #3D5A3E;
  background: #3D5A3E;
  color: #fff;
  box-shadow: 0 2px 8px rgba(61,90,62,.25);
}
.btn-check:checked + .pm-card i { color: #fff; }

/* 1. Mode toggle: drop to full-width second line on mobile */
@media (max-width: 991.98px) {
  #pageContent .card-h.mode-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  #pageContent .card-h.mode-header .seg.btn-group {
    width: 100%;
  }
  #pageContent .card-h.mode-header .seg.btn-group .btn {
    flex: 1;
    font-size: 0.82rem;
    padding: 6px 4px;
  }
}

/* 2. Cart table → card-list on mobile */
@media (max-width: 991.98px) {
  .cart-table thead { display: none; }

  .cart-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: var(--card, #fff);
    gap: 4px;
  }
  .cart-table tbody tr td { border: none; padding: 0; }

  .cart-table tbody tr td:nth-child(1) {
    flex: 1 1 100%;
    font-size: 0.88rem;
    font-weight: 600;
    min-width: 0 !important;
  }
  .cart-table tbody tr td:nth-child(2) {
    flex: 1;
    font-size: 0.82rem;
    color: var(--muted, #666);
  }
  .cart-table tbody tr td:nth-child(3) {
    flex: 0 0 auto;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: right;
  }
  .cart-table tbody tr td:nth-child(4) {
    flex: 0 0 auto;
    margin-left: 4px;
  }
  .cart-table tbody tr td[colspan] {
    flex: 1 1 100%;
    text-align: center;
    border: none;
  }
}

/* 3. Sticky balance/redeem bar on mobile */
@media (max-width: 991.98px) {
  .redeem-bar {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: var(--soft, #f5f6f4) !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    margin: 0 -1rem -1rem;
    padding: 12px 16px !important;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  }
  #btnRedeem {
    min-width: 110px;
    padding: 10px 18px;
    font-size: 0.95rem;
  }
}

/* 3b. Redeem bar: stack on small phones (label row + inputs row + button row) */
@media (max-width: 575.98px) {
  .redeem-bar {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .redeem-bar > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
  }
  .redeem-bar > div:first-child .subtle { white-space: nowrap; }
  .redeem-bar > div:last-child {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  /* All adjustment inputs (discount / extra) share one row, equal width */
  .redeem-bar .input-group {
    width: auto !important;
    flex: 1 1 0;
    min-width: 110px;
  }
  .redeem-bar .input-group .form-control { min-width: 50px; }
  /* Redeem button: full-width row of its own — easy thumb target */
  #btnRedeem {
    flex: 1 1 100%;
    padding: 12px;
    font-size: 1rem;
  }
}

/* 4. Catalog bottom-sheet */
@media (max-width: 991.98px) {
  #catalogColumn {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1050;
    pointer-events: none;
    padding: 0 !important;
  }
  .catalog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1049;
    pointer-events: all;
    display: none;
  }
  .catalog-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    max-height: 78vh;
    overflow-y: auto;
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 -4px 32px rgba(0,0,0,0.18);
    z-index: 1050;
    pointer-events: all;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overscroll-behavior: contain;
  }
  .catalog-sheet.is-open {
    transform: translateY(0);
  }
  .catalog-sheet .card {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
  .catalog-sheet-handle-bar {
    width: 40px; height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 10px auto 4px;
  }
}
@media (min-width: 992px) {
  .catalog-sheet   { transform: none !important; max-height: none !important; position: static !important; border-radius: 0 !important; box-shadow: none !important; }
  #catalogColumn   { position: static !important; pointer-events: all !important; }
  .catalog-backdrop { display: none !important; }
  .catalog-sheet-handle { display: none !important; }
}

/* 5. Member detail cards: 2-col grid on small mobile */
@media (max-width: 767px) {
  .detail-cards-column {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 8px;
  }
  .detail-card {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }
}

[data-theme="theme3"] .redemption-page #successPanel .success-card,
[data-theme="theme3"] .redemption-page .simple-confirmation-card {
  background: var(--card-bg);
  border-color: var(--line);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

[data-theme="theme3"] .redemption-page #successPanel .success-icon-circle,
[data-theme="theme3"] .redemption-page .confirmation-icon-circle {
  background: rgba(214, 162, 168, 0.16);
  border: 1px solid rgba(227, 187, 192, 0.34);
  color: var(--primary-light);
}

[data-theme="theme3"] .redemption-page #successPanel .success-title,
[data-theme="theme3"] .redemption-page .confirmation-title {
  color: var(--ink);
}

[data-theme="theme3"] .redemption-page #successPanel .success-subtitle,
[data-theme="theme3"] .redemption-page #successPanel .success-hint,
[data-theme="theme3"] .redemption-page .confirmation-subtitle {
  color: var(--muted);
}

[data-theme="theme3"] .redemption-page #successPanel .success-summary,
[data-theme="theme3"] .redemption-page .confirmation-meta {
  background: var(--soft);
  border-color: var(--line);
}

[data-theme="theme3"] .redemption-page #successPanel .summary-divider,
[data-theme="theme3"] .redemption-page .confirmation-meta-row:not(:last-child) {
  border-color: var(--line);
}

[data-theme="theme3"] .redemption-page #successPanel .label,
[data-theme="theme3"] .redemption-page .confirmation-meta-label {
  color: var(--muted);
}

[data-theme="theme3"] .redemption-page #successPanel .value,
[data-theme="theme3"] .redemption-page .confirmation-meta-value {
  color: var(--ink);
}

[data-theme="theme3"] .redemption-page #successPanel .highlight {
  color: var(--primary-light);
}

[data-theme="theme3"] .redemption-page #successPanel .badge-mode,
[data-theme="theme3"] .redemption-page #successPanel .badge-items,
[data-theme="theme3"] .redemption-page #successPanel .badge-staff {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--primary-light);
}

[data-theme="theme3"] .redemption-page .confirmation-balance-banner {
  background: linear-gradient(135deg, var(--soft) 0%, #3a3038 100%);
  border-color: var(--primary-light);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

[data-theme="theme3"] .redemption-page .confirmation-balance-icon,
[data-theme="theme3"] .redemption-page .confirmation-balance-label {
  color: var(--muted);
}

[data-theme="theme3"] .redemption-page .confirmation-balance-value {
  color: var(--ink);
}

[data-theme="theme3"] .redemption-page #successPanel .success-actions .btn-primary,
[data-theme="theme3"] .redemption-page .confirmation-actions .btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #1b1418 !important;
}

[data-theme="theme3"] .redemption-page #successPanel .success-actions .btn-primary:hover,
[data-theme="theme3"] .redemption-page .confirmation-actions .btn-primary:hover {
  background: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
  color: #1b1418 !important;
}

[data-theme="theme3"] .redemption-page #successPanel .success-actions .btn-success,
[data-theme="theme3"] .redemption-page .confirmation-actions .btn-success,
[data-theme="theme3"] .redemption-page #successPanel .success-actions .btn-outline-secondary,
[data-theme="theme3"] .redemption-page .confirmation-actions .btn-outline-secondary {
  background: var(--soft) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}

[data-theme="theme3"] .redemption-page #successPanel .success-actions .btn-success:hover,
[data-theme="theme3"] .redemption-page .confirmation-actions .btn-success:hover,
[data-theme="theme3"] .redemption-page #successPanel .success-actions .btn-outline-secondary:hover,
[data-theme="theme3"] .redemption-page .confirmation-actions .btn-outline-secondary:hover {
  background: var(--primary-soft) !important;
  border-color: var(--primary-light) !important;
  color: var(--ink) !important;
}

/* Compact customer profile card on Service Sales */
#memberCard.member-card-container {
  overflow: hidden;
}

#memberCard .member-card-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap;
  padding: 16px 16px 12px !important;
  gap: 10px !important;
}

#memberCard .member-main-info {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0;
}

#memberCard .member-info-text {
  min-width: 0;
}

#memberCard .member-meta-row {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px !important;
}

#memberCard .member-card-body {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 10px !important;
  padding: 16px !important;
  align-items: start;
}

#memberCard .member-avatar {
  width: 48px !important;
  height: 48px !important;
  font-size: 1rem !important;
  border-radius: 14px !important;
  flex: 0 0 48px;
}

#memberCard .member-avatar-badge {
  width: 18px !important;
  height: 18px !important;
  right: -2px !important;
  bottom: -2px !important;
}

#memberCard .member-avatar-badge .material-symbols-outlined {
  font-size: 12px !important;
}

#memberCard .member-display-name {
  font-size: 1.15rem !important;
  line-height: 1.15;
  margin-bottom: 6px !important;
}

#memberCard .id-badge,
#memberCard .tier-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-height: 24px;
  padding: 4px 8px !important;
  font-size: 0.72rem !important;
  line-height: 1.1;
}

#memberCard .tier-badge {
  flex: 0 0 auto;
  margin-left: auto;
}

#memberCard .tier-badge .material-symbols-outlined {
  font-size: 14px !important;
}

#memberCard .contact-column,
#memberCard .balance-notes-column {
  gap: 10px !important;
}

#memberCard .contact-list {
  gap: 0 !important;
}

#memberCard .contact-item {
  min-height: 38px;
  padding: 5px 0 !important;
  gap: 8px !important;
  align-items: center !important;
}

#memberCard .contact-icon {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px;
  font-size: 0.85rem !important;
  border-radius: 8px !important;
}

#memberCard .contact-label {
  font-size: 0.68rem !important;
  line-height: 1.15;
  margin-bottom: 2px !important;
  letter-spacing: 0.04em;
}

#memberCard .contact-value {
  font-size: 0.88rem !important;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

#memberCard .btn-topup {
  min-height: 40px;
  padding: 0.65rem 0.85rem !important;
  border-radius: 10px !important;
  font-size: 0.88rem !important;
}

#memberCard .balance-card-gradient {
  padding: 1rem !important;
  border-radius: 12px !important;
}

#memberCard .balance-label-text {
  font-size: 0.68rem !important;
  margin-bottom: 0.25rem !important;
}

#memberCard .balance-display-lg {
  font-size: 1.55rem !important;
  line-height: 1.05;
  margin: 0.2rem 0 !important;
}

#memberCard .balance-card-gradient .mt-3 {
  margin-top: 0.5rem !important;
}

#memberCard .balance-badge-translucent {
  padding: 0.32rem 0.65rem !important;
  border-radius: 7px !important;
  font-size: 0.72rem !important;
  line-height: 1.15;
}

#memberCard .notes-section {
  padding: 0.75rem 0.85rem !important;
  border-radius: 12px !important;
}

#memberCard .notes-title {
  font-size: 0.66rem !important;
  margin-bottom: 0.35rem !important;
  line-height: 1.1;
}

#memberCard .notes-content {
  font-size: 0.82rem !important;
  line-height: 1.35;
}

#memberCard .notes-section:has(#mNotes:empty) {
  padding-block: 0.6rem !important;
}

@media (min-width: 992px) {
  #memberCard .member-card-body {
    grid-template-columns: minmax(0, 1.1fr) minmax(170px, 0.9fr);
    gap: 12px !important;
  }
}

@media (max-width: 575.98px) {
  #memberCard .member-card-header {
    padding: 14px 14px 10px !important;
    gap: 8px !important;
  }

  #memberCard .member-card-body {
    padding: 14px !important;
  }

  #memberCard .member-avatar {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px;
  }

  #memberCard .member-display-name {
    font-size: 1.05rem !important;
  }
}
