/* ============================================================
   Design System Marquei — Componentes reutilizáveis
   Compatível com Tailwind CDN (sem build step)
   ============================================================ */

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  cursor: pointer;
  border: none;
  transition: all 150ms ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #0F172A;
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background-color: #1e293b;
}

.btn-accent {
  background-color: #F59E0B;
  color: #ffffff;
}

.btn-accent:hover:not(:disabled) {
  background-color: #d97706;
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #0F172A;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #e2e8f0;
}

.btn-danger {
  background-color: #EF4444;
  color: #ffffff;
}

.btn-danger:hover:not(:disabled) {
  background-color: #dc2626;
}

.btn-ghost {
  background-color: transparent;
  color: #64748b;
}

.btn-ghost:hover:not(:disabled) {
  background-color: #f1f5f9;
  color: #0F172A;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

/* Cards */
.card {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
}

.card-hover {
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.card-hover:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  transform: translateY(-1px);
}

/* Inputs */
.input,
.select,
.textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #0F172A;
  background: #ffffff;
  transition: border-color 150ms, box-shadow 150ms;
  outline: none;
  font-family: inherit;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgb(245 158 11 / 0.15);
}

.input::placeholder,
.textarea::placeholder {
  color: #94a3b8;
}

.input-error {
  border-color: #EF4444;
}

.input-error:focus {
  box-shadow: 0 0 0 3px rgb(239 68 68 / 0.15);
}

.label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}

.field-error {
  font-size: 0.75rem;
  color: #EF4444;
  margin-top: 0.25rem;
}

/* Badges de status */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-scheduled   { background: #dbeafe; color: #1d4ed8; }
.badge-confirmed   { background: #d1fae5; color: #065f46; }
.badge-in_progress { background: #fef3c7; color: #92400e; }
.badge-completed   { background: #d1fae5; color: #065f46; }
.badge-cancelled   { background: #fee2e2; color: #991b1b; }
.badge-no_show     { background: #f1f5f9; color: #475569; }

.badge-green   { background: #d1fae5; color: #065f46; }
.badge-red     { background: #fee2e2; color: #991b1b; }
.badge-yellow  { background: #fef3c7; color: #92400e; }
.badge-blue    { background: #dbeafe; color: #1d4ed8; }
.badge-slate   { background: #f1f5f9; color: #475569; }

/* Aliases semânticos */
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-error   { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #dbeafe; color: #1d4ed8; }

/* Avatar */
.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  object-fit: cover;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  flex-shrink: 0;
}

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

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.flex {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: 0.75rem;
  width: 100%;
  max-width: 28rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Layout sidebar admin */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: #0F172A;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: all 150ms;
  margin: 0.125rem 0.5rem;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.07);
  color: #ffffff;
}

.sidebar-link.active {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
}

.sidebar[data-collapsed="true"] {
  width: 72px;
}

.sidebar[data-collapsed="true"] .sidebar-link {
  justify-content: center;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0;
}

.sidebar[data-collapsed="true"] .sidebar-link svg {
  margin-right: 0;
}

.sidebar[data-collapsed="true"] .sidebar-link::after {
  content: attr(title);
  position: absolute;
  left: 84px;
  top: 50%;
  transform: translateY(-50%);
  background: #0F172A;
  color: #fff;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 14px 28px rgb(15 23 42 / 0.22);
  transition: opacity 120ms ease, transform 120ms ease;
}

.sidebar[data-collapsed="true"] .sidebar-link:hover::after {
  opacity: 1;
}

/* Tabelas */
.table-wrapper {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

table.data-table thead {
  background: #f8fafc;
}

table.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e2e8f0;
}

table.data-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
}

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

table.data-table tbody tr:hover {
  background: #fafafa;
}

/* Status dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot-green  { background: #10B981; }
.status-dot-red    { background: #EF4444; }
.status-dot-yellow { background: #F59E0B; }
.status-dot-blue   { background: #3B82F6; }
.status-dot-slate  { background: #94a3b8; }

/* Skeleton loading */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.skeleton {
  background: #e2e8f0;
  border-radius: 0.25rem;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* Stat card (dashboard) */
.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0F172A;
  margin-top: 0.25rem;
}

.stat-card .stat-change {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Admin shell */
.sidebar {
  width: 230px;
  min-height: 100vh;
  background: #0F172A;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 180ms ease, transform 180ms ease;
  position: sticky;
  top: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: all 150ms;
  margin: 0.125rem 0.5rem;
  position: relative;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.07);
  color: #ffffff;
}

.sidebar-link.active {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
}

.admin-sidebar[data-collapsed="true"] {
  width: 72px;
}

.admin-sidebar[data-collapsed="true"] .sidebar-link {
  justify-content: center;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0;
}

.admin-sidebar[data-collapsed="true"] .sidebar-link svg {
  margin-right: 0;
}

.admin-sidebar[data-collapsed="true"] .sidebar-link::after {
  content: attr(title);
  position: absolute;
  left: 84px;
  top: 50%;
  transform: translateY(-50%);
  background: #0F172A;
  color: #fff;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 14px 28px rgb(15 23 42 / 0.22);
  transition: opacity 120ms ease, transform 120ms ease;
}

.admin-sidebar[data-collapsed="true"] .sidebar-link:hover::after {
  opacity: 1;
}

.admin-sidebar-group {
  display: flex;
  width: calc(100% - 1rem);
  align-items: center;
  justify-content: space-between;
  margin: 0.75rem 0.5rem 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
}

.admin-sidebar-group__chevron { transition: transform 160ms ease; }
.admin-sidebar-section.is-collapsed .admin-sidebar-group__chevron { transform: rotate(-90deg); }
.admin-sidebar-section.is-collapsed .admin-sidebar-section__links { display: none; }

.admin-sidebar__nav {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow-y: auto;
  padding: 0.4rem 0 0.8rem;
}

.admin-sidebar__footer { margin-top: auto; padding-top: 0.75rem; }
.sidebar-link--logout { width: calc(100% - 1rem); color: #f87171; }
.admin-sidebar .sidebar-link svg { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }

/* Keep injected menu icons stable even when utility CSS loads in a different order. */
.admin-sidebar .admin-sidebar__nav .sidebar-link > svg,
.admin-sidebar .admin-sidebar__footer .sidebar-link > svg {
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  display: block;
  flex: 0 0 18px !important;
}

.admin-sidebar .admin-sidebar__nav .sidebar-link {
  min-height: 44px;
  overflow: visible;
}

.admin-sidebar .admin-sidebar__nav .sidebar-link > span,
.admin-sidebar .admin-sidebar__footer .sidebar-link > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar[data-collapsed="true"] > :first-child .nav-name,
.admin-sidebar[data-collapsed="true"] > :first-child > p,
.admin-sidebar[data-collapsed="true"] > :first-child > a,
.admin-sidebar[data-collapsed="true"] #sidebar-notifications-btn span,
.admin-sidebar[data-collapsed="true"] .admin-sidebar__nav .sidebar-link > span,
.admin-sidebar[data-collapsed="true"] .admin-sidebar__footer .sidebar-link > span {
  display: none !important;
}

.admin-sidebar[data-collapsed="true"] > :first-child {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
  text-align: center;
}

.admin-sidebar[data-collapsed="true"] #sidebar-notifications-btn {
  width: 44px !important;
  min-width: 44px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 !important;
  justify-content: center;
}

.admin-sidebar[data-collapsed="true"] .admin-sidebar-group {
  display: none;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  padding: 0.7rem clamp(0.75rem, 2vw, 1.5rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}

.admin-topbar__left,
.admin-topbar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.admin-topbar__center {
  min-width: 0;
}

.admin-topbar__search {
  width: 100%;
  max-width: 560px;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.7rem 0.95rem;
  font-size: 0.875rem;
  background: #fff;
}

.admin-topbar__tenant {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.admin-topbar__status {
  font-size: 0.75rem;
  color: #64748b;
}

.admin-icon-btn,
.admin-profile-btn,
.admin-link-btn,
.admin-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  transition: all 150ms ease;
}

.admin-icon-btn {
  width: 2.75rem;
  padding: 0;
}

.admin-icon-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.admin-icon-btn--dark {
  width: 100%;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-icon-btn--dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

.admin-icon-btn--dark svg {
  flex-shrink: 0;
}

.admin-profile-btn__avatar,
.admin-shell-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 800;
}

.admin-cta-btn {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #0f172a;
}

.admin-profile-menu {
  position: fixed;
  top: 4.25rem;
  right: 1rem;
  z-index: 40;
  width: 220px;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 20px 40px rgb(15 23 42 / 0.12);
  overflow: hidden;
}

.admin-profile-menu a,
.admin-profile-menu button {
  display: flex;
  width: 100%;
  padding: 0.85rem 1rem;
  color: #0f172a;
  text-align: left;
  text-decoration: none;
  background: #fff;
}

.admin-profile-menu a:hover,
.admin-profile-menu button:hover {
  background: #f8fafc;
}

.admin-notifications-panel {
  position: fixed;
  top: 4.25rem;
  right: 1rem;
  z-index: 45;
  width: min(92vw, 420px);
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 24px 48px rgb(15 23 42 / 0.16);
  overflow: hidden;
}

.admin-notifications-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #e2e8f0;
}

.admin-notifications-panel__body {
  max-height: min(62vh, 520px);
  overflow: auto;
  padding: 0.9rem;
  display: grid;
  gap: 0.75rem;
}

.admin-notifications-panel__item {
  display: block;
  border-radius: 0.95rem;
  border: 1px solid;
  padding: 0.95rem 1rem;
  transition: transform 150ms ease, box-shadow 150ms ease;
  background-clip: padding-box;
}

.admin-notifications-panel__item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgb(15 23 42 / 0.08);
}

.admin-notifications-panel__item--unread {
  position: relative;
}

.admin-notifications-panel__item--unread::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0.95rem;
  bottom: 0.95rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f59e0b 0%, #fb7185 100%);
}

.admin-notifications-panel__badge,
.admin-notifications-panel__state,
.admin-notifications-panel__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-notifications-panel__state {
  letter-spacing: 0.04em;
}

.admin-notifications-panel__action {
  border: 1px solid #e2e8f0;
  background: #0f172a;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

.admin-notifications-panel__action:hover {
  background: #111827;
}

.admin-notifications-panel__action--soft {
  background: #fff;
  color: #334155;
}

.admin-notifications-panel__action--soft:hover {
  background: #f8fafc;
}

.admin-notifications-panel__footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.admin-notifications-panel__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #0f172a;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.admin-notifications-panel__link:hover {
  background: #111827;
}

.admin-sidebar[data-collapsed="true"] {
  width: 72px;
}

.admin-mobilebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  background: #0f172a;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  padding: 0.35rem 0.5rem 0.55rem;
}

.admin-mobilebar a,
.admin-mobilebar button {
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.55rem 0.2rem;
  font-size: 0.7rem;
  border-radius: 0.65rem;
}

.admin-mobilebar a.active {
  color: #fff;
  background: rgb(255 255 255 / 0.08);
}

.admin-mobilebar span {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 1023px) {
  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(86vw, 290px);
    box-shadow: 24px 0 60px rgb(15 23 42 / 0.26);
  }
  .admin-topbar {
    grid-template-columns: auto 1fr auto;
  }
  .admin-topbar__center {
    order: 3;
    grid-column: 1 / -1;
  }
  .admin-mobilebar { display: grid; }
  body { padding-bottom: 4.75rem; }
}

@media (max-width: 767px) {
  .admin-topbar__right .admin-link-btn,
  .admin-topbar__right .admin-profile-btn span:last-child {
    display: none;
  }
  .admin-topbar__right { gap: 0.35rem; }
  .admin-cta-btn { display: none; }
  .admin-topbar__search { max-width: none; }
}

.admin-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-analytics-card {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  padding: 1.1rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.admin-analytics-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.admin-analytics-card__header h3 { margin-top: 0.2rem; color: #0f172a; font-size: 1rem; font-weight: 800; }
.admin-analytics-card__header p:not(.admin-eyebrow) { margin-top: 0.2rem; color: #64748b; font-size: 0.78rem; }
.admin-analytics-card__header strong { color: #0f172a; font-size: 1rem; white-space: nowrap; }
.admin-eyebrow { color: #94a3b8; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.admin-chart { margin-top: 0.9rem; min-height: 190px; }
.admin-chart svg { display: block; width: 100%; height: 180px; overflow: visible; }
.admin-chart__grid { fill: none; stroke: #e2e8f0; stroke-width: 1; stroke-dasharray: 4 6; }
.admin-chart__labels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; color: #94a3b8; font-size: 0.68rem; text-align: center; text-transform: capitalize; }

@media (max-width: 900px) {
  .admin-analytics-grid { grid-template-columns: 1fr; }
}

.professional-card {
  overflow: hidden;
}

.professional-card-layout {
  display: grid;
  grid-template-columns: minmax(96px, 116px) minmax(0, 1fr) 168px;
  min-height: 156px;
}

.professional-card-media {
  background: linear-gradient(160deg, #0f172a 0%, #1f2937 100%);
  border-right: 1px solid #e2e8f0;
}

.professional-card-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 156px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #0f172a 0%, #111827 100%);
  color: #f59e0b;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.professional-card-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.professional-card-avatar__fallback {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: #f59e0b;
  text-shadow: 0 1px 1px rgb(0 0 0 / 0.35);
}

.professional-card-actions {
  display: grid;
  gap: 0.5rem;
  align-content: center;
  justify-items: stretch;
  padding: 1rem;
  border-left: 1px solid #e2e8f0;
  min-width: 168px;
}

.professional-card-actions .btn {
  width: 100%;
}

@media (max-width: 1024px) {
  .professional-card-layout {
    grid-template-columns: minmax(96px, 112px) minmax(0, 1fr);
  }

  .professional-card-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-left: 0;
    border-top: 1px solid #e2e8f0;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .professional-card-layout {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .professional-card-avatar {
    min-height: 132px;
    font-size: clamp(1.25rem, 8vw, 2rem);
  }

  .professional-card-actions {
    grid-template-columns: 1fr;
  }

  .professional-card-actions .btn {
    min-height: 2.5rem;
  }
}
