/* ==========================================================================
   WALink Pro - Ultra-Clean, Non-AI-Slop Modern Dashboard CSS
   ========================================================================== */

/* User Badge & Header Enhancements */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}
.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-wa-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
}
.user-info-text {
  display: flex;
  flex-direction: column;
}
.user-name {
  font-size: 0.775rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
}
.badge-plan-pro {
  font-size: 0.6rem;
  font-weight: 800;
  color: #059669;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 3px;
}
[data-theme="dark"] .badge-plan-pro {
  color: #34d399;
}
.btn-admin-badge {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid transparent;
}
[data-theme="dark"] .btn-admin-badge {
  background: #f43f5e;
  color: #ffffff;
}

/* Dashboard Hero */
.dashboard-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-xs);
}
.hero-text {
  max-width: 680px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-wa-dark);
  background: rgba(18, 140, 126, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}
.hero-text h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.hero-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.hero-actions {
  flex-shrink: 0;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.stats-grid.stats-grid-4,
.stats-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Visibility Defaults: Desktop vs Mobile */
.stats-desktop-only {
  display: grid !important;
}
.table-responsive {
  display: block !important;
}

.stats-mobile-fintech,
.stats-admin-fintech,
.mobile-link-cards-wrap,
.mobile-user-cards-wrap,
.mobile-admin-links-wrap,
.mobile-bottom-nav {
  display: none !important;
}
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.stat-card:hover {
  border-color: var(--border-strong);
}
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.icon-emerald { background: rgba(16, 185, 129, 0.1); color: var(--brand-wa-dark); }
.icon-blue { background: rgba(56, 189, 248, 0.1); color: #0284c7; }
.icon-purple { background: rgba(168, 85, 247, 0.1); color: #9333ea; }
.icon-gold { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.icon-rose { background: rgba(244, 63, 94, 0.12); color: #e11d48; }
.text-blue { color: #0284c7; }
.text-purple { color: #9333ea; }
.text-gold { color: #d97706; }

.stat-content {
  display: flex;
  flex-direction: column;
}
.stat-label {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0.15rem 0 0.25rem;
  line-height: 1.1;
}
.stat-footnote {
  font-size: 0.675rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Links Management Section */
.dashboard-links-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.search-input-wrap {
  position: relative;
  width: 260px;
  max-width: 100%;
}
.search-input-wrap i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.75rem;
  pointer-events: none;
}
.search-input-wrap input {
  padding-left: 2rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.775rem;
}
.search-input-wrap input:focus {
  background: var(--bg-surface);
}

/* Data Table */
.p-0 { padding: 0 !important; }
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 720px;
}
.data-table th {
  padding: 0.75rem 1rem;
  background: var(--bg-surface-subtle);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}
.data-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.825rem;
  vertical-align: middle;
  background: var(--bg-surface);
}
.data-table tbody tr {
  transition: background-color 0.12s ease;
}
.data-table tbody tr:hover td {
  background-color: var(--bg-surface-subtle);
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Link Cells */
.link-title-cell {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}
.link-slug-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--brand-wa-dark);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: all 0.15s ease;
}
.link-slug-badge:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--brand-wa-dark);
}
[data-theme="dark"] .link-slug-badge {
  color: var(--brand-accent);
}

.phone-list-cell {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-main);
  font-weight: 600;
}
.rotator-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(168, 85, 247, 0.1);
  color: #9333ea;
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  margin-top: 0.25rem;
}
[data-theme="dark"] .rotator-pill {
  color: #c084fc;
}

.msg-snippet-cell {
  color: var(--text-secondary);
  font-size: 0.775rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 240px;
}
.msg-snippet-empty {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.75rem;
}

.clicks-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  min-width: 55px;
}
.clicks-pill .val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-wa-dark);
  line-height: 1;
}
.clicks-pill .unit {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Action Button Group */
.table-action-group {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: flex-end;
}
.btn-table-action {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.12s ease;
}
.btn-table-action:hover {
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  border-color: var(--border-strong);
}
.btn-table-action.btn-action-primary:hover {
  background: var(--brand-wa-dark);
  color: #ffffff;
  border-color: var(--brand-wa-dark);
}
.btn-table-action.btn-action-danger:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}
.empty-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
}
.empty-state h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}
.empty-state p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 0.75rem;
}
.modal-overlay.active {
  display: flex;
}
.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalEnter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-sm { max-width: 360px; }
@keyframes modalEnter {
  from { transform: scale(0.96) translateY(6px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}
.modal-body {
  padding: 1.25rem;
  max-height: 75vh;
  overflow-y: auto;
}
.modal-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Custom Checkbox */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
}
.checkbox-container input {
  margin-top: 0.2rem;
  cursor: pointer;
  accent-color: var(--brand-wa-dark);
}
.checkbox-label-text strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.2;
}
.checkbox-label-text small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.35;
}

/* Slug Input */
.slug-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.slug-prefix {
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface-subtle);
  border-right: 1px solid var(--border-subtle);
  height: 38px;
  display: flex;
  align-items: center;
  user-select: none;
}
.slug-input-wrapper .form-control {
  border: none;
  background: transparent;
  padding: 0.5rem 0.65rem;
  font-family: 'JetBrains Mono', monospace;
}
.slug-input-wrapper:focus-within {
  border-color: var(--brand-wa-dark);
  box-shadow: 0 0 0 3px rgba(18, 140, 126, 0.1);
}

/* Modal QR Stand Meja Card */
.modal-qr-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 1rem 1rem 0.85rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 230px;
  max-width: 100%;
  margin: 0 auto;
}
.modal-qr-header {
  background: var(--brand-wa-dark);
  color: white;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.modal-qr-store-title {
  font-weight: 800;
  font-size: 0.85rem;
  color: #0f172a;
  margin-top: 0.35rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.modal-qr-slug-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  margin-top: 0.1rem;
}

/* Analytics Modal Meta */
.analytics-meta-banner {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.analytics-meta-banner h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}
.analytics-slug-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--brand-wa-dark);
  font-weight: 600;
}
.analytics-total-badge {
  text-align: right;
}
.analytics-total-badge .label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.analytics-total-badge .val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-wa-dark);
  line-height: 1;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .stats-grid.stats-grid-4,
  .stats-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (max-width: 900px) {
  .dashboard-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 78px !important;
  }

  /* Simplify top header on mobile: hide redundant buttons handled by bottom nav */
  .app-header .header-actions .btn-admin-badge,
  .app-header .header-actions .btn-outline,
  .app-header .header-actions .btn-danger-outline {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .dashboard-hero {
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .hero-text p {
    display: none;
  }
  .hero-text h2 {
    font-size: 1.2rem;
    margin-bottom: 2px;
  }
  .hero-badge {
    font-size: 0.62rem;
    padding: 2px 7px;
    margin-bottom: 4px;
    display: inline-flex;
  }
  .hero-actions {
    display: none; /* Handled cleanly by bottom navigation center FAB button */
  }

  /* Type 1: SaaS Fintech Hero Banner for Mobile KPI */
  .stats-grid.stats-desktop-only {
    display: none !important;
  }

  .stats-mobile-fintech {
    display: block !important;
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(18, 140, 126, 0.06) 100%);
    border: 1px solid rgba(18, 140, 126, 0.22);
    border-radius: var(--radius-lg);
    padding: 1rem 1.15rem;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05);
    margin-top: 0.65rem;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
  }

  [data-theme="dark"] .stats-mobile-fintech {
    background: linear-gradient(135deg, #0f172a 0%, #064e3b 140%);
    border-color: rgba(37, 211, 102, 0.25);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
  }

  .fintech-banner-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .fintech-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .fintech-kicker {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-wa-dark);
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .fintech-title {
    font-size: 0.925rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
  }

  .fintech-badge {
    font-size: 0.7rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    padding: 3px 9px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
  }

  .fintech-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .fintech-stat-col {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .fintech-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .fintech-stat-data {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .fintech-stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .fintech-stat-val {
    font-size: 1.35rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    gap: 4px;
  }

  .fintech-unit {
    font-size: 0.725rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--text-muted);
  }

  .fintech-divider {
    width: 1px;
    height: 36px;
    background: var(--border-subtle);
    margin: 0 0.25rem;
  }

  .fintech-banner-bottom {
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px dashed var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
  }

  .fintech-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
  }

  .pulsing-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 1.8s infinite;
  }

  @keyframes pulseDot {
    0% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
      transform: scale(1);
      box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
  }

  .fintech-quick-action {
    font-size: 0.725rem;
    font-weight: 700;
    color: var(--brand-wa-dark);
    cursor: pointer;
    transition: opacity 0.15s ease;
  }

  .fintech-quick-action:active {
    opacity: 0.7;
  }

  /* Switch Table to Mobile Card List */
  .table-responsive {
    display: none !important;
  }
  .mobile-link-cards-wrap,
  .mobile-user-cards-wrap,
  .mobile-admin-links-wrap {
    display: flex !important;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0.85rem;
  }

  .user-info-text { display: none; }
  .dashboard-links-header {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 1rem;
    gap: 0.65rem;
  }
  .table-toolbar {
    width: 100%;
  }
  .search-input-wrap {
    width: 100%;
  }

  /* Super Admin Mobile Fintech Banner & User Cards */
  .stats-admin-fintech {
    display: block !important;
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(225, 29, 72, 0.05) 100%);
    border: 1px solid rgba(225, 29, 72, 0.22);
    border-radius: var(--radius-lg);
    padding: 1rem 1.15rem;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05);
    margin-top: 0.65rem;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
  }

  [data-theme="dark"] .stats-admin-fintech {
    background: linear-gradient(135deg, #0f172a 0%, #4c0519 140%);
    border-color: rgba(244, 63, 94, 0.25);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
  }

  .admin-fintech-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .admin-fintech-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.65rem;
  }

  .user-mobile-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.15s ease;
  }

  .user-mobile-card:hover {
    border-color: var(--border-strong);
  }

  .user-mob-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .user-mob-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .user-mob-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
  }

  .user-mob-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
  }

  .user-mob-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
  }

  .user-mob-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.65rem;
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    color: var(--text-secondary);
  }

  .user-mob-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }

  .user-mob-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.725rem;
    padding: 6px 8px;
  }

  .user-mob-actions .btn-delete-user {
    flex: 0 0 auto;
    padding: 6px 10px;
  }
}

/* ==========================================================================
   Mobile Link Cards Component
   ========================================================================== */
.mobile-link-cards-wrap,
.mobile-user-cards-wrap,
.mobile-admin-links-wrap,
.stats-admin-fintech,
.stats-mobile-fintech {
  display: none !important;
}

.link-mobile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.link-mobile-card:hover {
  border-color: var(--border-strong);
}

.card-mob-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.card-mob-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-mob-title h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.badge-rotator-mob {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(168, 85, 247, 0.12);
  color: #9333ea;
  padding: 2px 7px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}

[data-theme="dark"] .badge-rotator-mob {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.25);
}

.card-mob-clicks {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.card-mob-clicks strong {
  font-size: 0.95rem;
  font-family: var(--font-mono);
  color: var(--brand-wa-dark);
}

.card-mob-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.65rem;
  gap: 0.5rem;
}

.card-mob-link-box .slug-info {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.card-mob-link-box .slug-text {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--brand-wa-dark);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.card-mob-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-mob-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  word-break: break-word;
}

.card-mob-meta .meta-item i {
  width: 14px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.card-mob-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.card-mob-actions .btn {
  padding: 0.45rem 0.25rem;
  font-size: 0.75rem;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   Mobile Bottom Navigation Bar (Modern SaaS Dock)
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 990;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.5rem;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  [data-theme="dark"] .mobile-bottom-nav {
    background: rgba(15, 23, 42, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.4);
  }

  .mob-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    outline: none;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 0;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  [data-theme="dark"] .mob-nav-item {
    color: #94a3b8;
  }

  .mob-nav-item i {
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.2s ease;
  }

  .mob-nav-item:hover,
  .mob-nav-item.active {
    color: #128c7e !important;
  }

  [data-theme="dark"] .mob-nav-item:hover,
  [data-theme="dark"] .mob-nav-item.active {
    color: #25d366 !important;
  }

  .mob-nav-item.active i {
    transform: translateY(-2px);
  }

  .mob-nav-logout {
    color: #ef4444 !important;
  }

  /* Center Floating Action Button (FAB) */
  .mob-nav-fab {
    position: relative;
    top: -14px;
    padding: 0;
  }

  .mob-nav-fab .fab-pill {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #128c7e !important;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(18, 140, 126, 0.45);
    border: 3px solid #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 2px;
  }

  [data-theme="dark"] .mob-nav-fab .fab-pill {
    border-color: #0f172a;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  }

  .mob-nav-fab .fab-pill i {
    font-size: 1.35rem !important;
    color: #ffffff !important;
    margin: 0;
    line-height: 1;
  }

  .mob-nav-fab:active .fab-pill {
    transform: scale(0.92);
    box-shadow: 0 2px 8px rgba(18, 140, 126, 0.3);
  }

  .mob-nav-fab span {
    font-size: 0.68rem;
    font-weight: 800;
    color: #128c7e;
    margin-top: 1px;
  }

  [data-theme="dark"] .mob-nav-fab span {
    color: #25d366;
  }
}

/* ==========================================================================
   Print Mode Optimization (Isolates only the QR Stand Card on Dashboard)
   ========================================================================== */
#printCardSheet {
  display: none;
}

@media print {
  @page {
    size: A6 portrait;
    margin: 0;
  }

  html, body {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  body > *:not(#printCardSheet) {
    display: none !important;
  }

  #printCardSheet {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999999 !important;
    box-sizing: border-box !important;
    page-break-inside: avoid !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
  }

  #printCardSheet img {
    max-width: 90vw !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: auto !important;
    page-break-inside: avoid !important;
  }
}

/* ==========================================================================
   Pricing & Subscription Modal Styles (Ultra Clean & Responsive)
   ========================================================================== */
.pricing-modal-dialog {
  max-width: 920px !important;
  width: 95% !important;
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
}
.pricing-modal-dialog .modal-body {
  overflow-y: auto !important;
  padding: 1.5rem !important;
}
.pricing-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
  margin-top: 1.25rem !important;
  align-items: stretch !important;
}
@media (max-width: 820px) {
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}
.pricing-card {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-lg, 16px) !important;
  padding: 1.5rem 1.25rem !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  box-shadow: var(--shadow-sm) !important;
}
.pricing-card:hover {
  transform: translateY(-3px) !important;
  border-color: #25D366 !important;
  box-shadow: var(--shadow-md) !important;
}
.pricing-card.popular {
  border: 2px solid #25D366 !important;
  background: var(--bg-surface) !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.12) !important;
}
.pricing-badge-popular {
  position: absolute !important;
  top: -13px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #25D366 !important;
  color: #062b16 !important;
  font-size: 0.675rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0.25rem 0.85rem !important;
  border-radius: 9999px !important;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4) !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}
.pricing-card-header {
  text-align: center !important;
  margin-bottom: 1rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}
.pricing-title {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
  margin: 0 0 0.35rem 0 !important;
}
.pricing-desc {
  font-size: 0.775rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 0.75rem !important;
  line-height: 1.3 !important;
}
.pricing-price {
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  color: #128C7E !important;
  letter-spacing: -0.02em !important;
}
[data-theme="dark"] .pricing-price {
  color: #25D366 !important;
}
.pricing-period {
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
}
.pricing-features {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 0 1.5rem 0 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
}
.pricing-features li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.8rem !important;
  color: var(--text-secondary) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  line-height: 1.35 !important;
}
.pricing-features li::marker,
.pricing-features li::before {
  display: none !important;
  content: "" !important;
}
.pricing-features li i {
  color: #25D366 !important;
  font-size: 0.9rem !important;
  flex-shrink: 0 !important;
  width: 16px !important;
  text-align: center !important;
}
.pricing-features li.disabled {
  color: var(--text-muted) !important;
  opacity: 0.55 !important;
}
.pricing-features li.disabled i {
  color: var(--text-muted) !important;
}
.pricing-guarantee {
  text-align: center !important;
  margin-top: 1.25rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid var(--border-subtle) !important;
  font-size: 0.775rem !important;
  color: var(--text-muted) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}

/* ==========================================================================
   FEATURE 1: QR CODE STAND MEJA THEMES
   ========================================================================== */
.qr-theme-selector-wrap {
  margin-bottom: 1.25rem;
  background: var(--bg-surface-2, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-md, 10px);
  padding: 0.75rem 0.85rem;
  text-align: left;
}
[data-theme="dark"] .qr-theme-selector-wrap {
  background: #1e293b;
  border-color: #334155;
}
.qr-theme-label {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.qr-theme-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
}
@media (min-width: 480px) {
  .qr-theme-pills {
    grid-template-columns: repeat(4, 1fr);
  }
}
.theme-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 6px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1.5px solid var(--border-subtle, #e2e8f0);
  background: var(--bg-surface, #ffffff);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
[data-theme="dark"] .theme-pill {
  background: #0f172a;
  border-color: #334155;
  color: #94a3b8;
}
.theme-pill:hover {
  border-color: var(--color-primary, #10b981);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.theme-pill.active {
  border-color: var(--color-primary, #10b981);
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-primary, #10b981);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.theme-pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Modal QR Preview Theme Variations */
.modal-qr-card {
  transition: all 0.3s ease;
}
.modal-qr-card.theme-amber {
  background: #fffbeb !important;
  border-color: #b45309 !important;
}
.modal-qr-card.theme-amber .modal-qr-header {
  background: #78350f !important;
  color: #fef3c7 !important;
}
.modal-qr-card.theme-amber .modal-qr-store-title {
  color: #451a03 !important;
}
.modal-qr-card.theme-amber .modal-qr-slug-text {
  background: #fef3c7 !important;
  color: #92400e !important;
}

.modal-qr-card.theme-rose {
  background: #fff1f2 !important;
  border-color: #be185d !important;
}
.modal-qr-card.theme-rose .modal-qr-header {
  background: #be185d !important;
  color: #ffffff !important;
}
.modal-qr-card.theme-rose .modal-qr-store-title {
  color: #701a75 !important;
}
.modal-qr-card.theme-rose .modal-qr-slug-text {
  background: #fce7f3 !important;
  color: #9d174d !important;
}

.modal-qr-card.theme-dark {
  background: #0f172a !important;
  border-color: #334155 !important;
}
.modal-qr-card.theme-dark .modal-qr-header {
  background: #10b981 !important;
  color: #090d16 !important;
}
.modal-qr-card.theme-dark .modal-qr-store-title {
  color: #f8fafc !important;
}
.modal-qr-card.theme-dark .modal-qr-slug-text {
  background: #1e293b !important;
  color: #34d399 !important;
}

/* ==========================================================================
   FEATURE 2: WHATSAPP TEXT FORMATTER TOOLBAR & EMOJI PICKER
   ========================================================================== */
.wa-formatter-container {
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-md, 10px);
  overflow: visible;
  background: var(--bg-surface, #ffffff);
  transition: border-color 0.2s;
  position: relative;
}
[data-theme="dark"] .wa-formatter-container {
  background: #0f172a;
  border-color: #334155;
}
.wa-formatter-container:focus-within {
  border-color: var(--color-primary, #10b981);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.wa-formatter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: var(--bg-surface-2, #f8fafc);
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}
[data-theme="dark"] .wa-formatter-toolbar {
  background: #1e293b;
  border-color: #334155;
}
.wa-toolbar-btn-group {
  display: flex;
  align-items: center;
  gap: 2px;
}
button.wa-tool-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 5px 8px !important;
  font-size: 0.85rem !important;
  font-weight: 600;
  color: var(--text-secondary, #64748b) !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  font-family: inherit !important;
}
button.wa-tool-btn:hover {
  background: rgba(16, 185, 129, 0.15) !important;
  color: var(--color-primary, #10b981) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
}
.wa-emoji-trigger-wrap {
  position: relative;
}
button.wa-tool-btn.wa-emoji-trigger {
  gap: 5px !important;
  font-size: 0.775rem !important;
  padding: 5px 10px !important;
  background: rgba(16, 185, 129, 0.1) !important;
  color: var(--color-primary, #10b981) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  font-weight: 700 !important;
}
button.wa-tool-btn.wa-emoji-trigger:hover {
  background: rgba(16, 185, 129, 0.22) !important;
}
.wa-emoji-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 270px;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-md, 10px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 8px;
  z-index: 9999;
  animation: fadeInDown 0.18s ease-out;
}
[data-theme="dark"] .wa-emoji-popover {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.wa-emoji-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}
[data-theme="dark"] .wa-emoji-popover-header {
  border-color: #334155;
}
.wa-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  max-height: 160px;
  overflow-y: auto;
}
.wa-emoji-item {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  padding: 4px 2px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.1s ease, background 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-emoji-item:hover {
  background: rgba(16, 185, 129, 0.15);
  transform: scale(1.2);
}
.wa-formatter-container textarea.form-control {
  border: none !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* ==========================================================================
   FEATURE 3: LINK-IN-BIO PAGES & DASHBOARD TAB
   ========================================================================== */
.dashboard-main-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-subtle, #e2e8f0);
  padding-bottom: 2px;
}
[data-theme="dark"] .dashboard-main-tabs {
  border-color: #1e293b;
}
.dash-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary, #64748b);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -4px;
}
.dash-tab-btn:hover {
  color: var(--text-primary);
}
.dash-tab-btn.active {
  color: var(--color-primary, #10b981);
  border-bottom-color: var(--color-primary, #10b981);
}
.badge-new-pill {
  font-size: 0.65rem;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Bio Page Grid Cards */
.bio-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.bio-grid-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 1.25rem;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
[data-theme="dark"] .bio-grid-card {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.bio-grid-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary, #10b981);
}
.bio-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.bio-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary, #10b981);
  background: var(--bg-surface-2, #f8fafc);
}
.bio-card-avatar-fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bio-card-title-wrap h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.bio-card-slug {
  font-size: 0.775rem;
  color: var(--color-primary, #10b981);
  font-family: var(--font-mono, monospace);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.bio-card-slug:hover {
  text-decoration: underline;
}
.bio-card-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-surface-2, #f8fafc);
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.775rem;
}
[data-theme="dark"] .bio-card-stats {
  background: #1e293b;
}
.bio-stat-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.bio-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle, #e2e8f0);
}
[data-theme="dark"] .bio-card-actions {
  border-color: #1e293b;
}

/* Custom Buttons Repeater in Bio Modal */
.custom-btn-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  background: var(--bg-surface-2, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 8px;
  padding: 0.5rem;
}
[data-theme="dark"] .custom-btn-row {
  background: #1e293b;
  border-color: #334155;
}
.custom-btn-row input {
  font-size: 0.8rem !important;
  padding: 6px 10px !important;
}




