.btn-delete {
    background-color: #dc2626;
    color: white;
    border: 1px solid #dc2626;
    border-radius: 0.375rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.btn-delete:hover:not(:disabled) {
    background-color: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2);
}

.btn-delete:active:not(:disabled) {
    transform: translateY(0);
}

.btn-delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dark .btn-delete {
    background-color: #991b1b;
    border-color: #991b1b;
}

.dark .btn-delete:hover:not(:disabled) {
    background-color: #7f1d1d;
    border-color: #7f1d1d;
    box-shadow: 0 4px 6px -1px rgba(153, 27, 27, 0.3);
}

.light .btn-delete {
    background-color: #dc2626;
    color: white;
}

.light .btn-delete:hover:not(:disabled) {
    background-color: #b91c1c;
}

.btn-delete svg {
    width: 14px;
    height: 14px;
}

@keyframes deleting {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.btn-delete.deleting {
    animation: deleting 1s ease-in-out infinite;
}

.status-deleted {
    background-color: rgba(220, 38, 38, 0.1) !important;
    color: #dc2626 !important;
    border-color: rgba(220, 38, 38, 0.2) !important;
}

.dark .status-deleted {
    background-color: rgba(153, 27, 27, 0.2) !important;
    color: #fca5a5 !important;
    border-color: rgba(153, 27, 27, 0.4) !important;
}

.status-deleted-icon {
    width: 16px;
    height: 16px;
    color: #dc2626;
    margin-right: 4px;
}

.dark .status-deleted-icon {
    color: #fca5a5;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.2s ease-out forwards;
}

.modal-btn-primary {
  @apply bg-gradient-to-r from-blue-600 to-blue-700 text-white px-4 py-2 rounded-lg font-medium hover:from-blue-700 hover:to-blue-800 transition-all duration-200;
}

.modal-btn-secondary {
  @apply bg-gray-200 dark:bg-gray-700 text-gray-800 dark:text-gray-200 px-4 py-2 rounded-lg font-medium hover:bg-gray-300 dark:hover:bg-gray-600 transition-all duration-200;
}

.modal-btn-danger {
  @apply bg-gradient-to-r from-red-600 to-red-700 text-white px-4 py-2 rounded-lg font-medium hover:from-red-700 hover:to-red-800 transition-all duration-200;
}

.modal-overlay {
  @apply fixed inset-0 bg-black/50 backdrop-blur-sm z-[10000];
}

.modal-content {
  @apply bg-white dark:bg-gray-900 rounded-xl shadow-2xl max-w-lg w-full mx-4 border border-gray-200 dark:border-gray-700;
}

.modal-header {
  @apply px-6 py-4 border-b border-gray-200 dark:border-gray-700;
}

.modal-body {
  @apply px-6 py-4;
}

.modal-footer {
  @apply px-6 py-4 border-t border-gray-200 dark:border-gray-700 flex gap-3;
}

.limit-warning {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.2));
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.limit-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.5), rgba(75, 85, 99, 0.5));
}

.btn-primary:disabled:hover {
  transform: none;
  box-shadow: none;
}

.legal-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
}

.legal-item {
    margin-bottom: 0.75rem;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.4;
}

.legal-item:last-child {
    margin-bottom: 0;
}

.legal-item strong {
    color: var(--text);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.legal-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.legal-value {
    display: block;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .legal-info {
        margin-top: 1rem;
        padding-top: 1rem;
    }
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: #0b0f17;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(110, 231, 183, 0.3);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: var(--tile-border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255,255,255,.08);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.2);
  color: rgb(239, 68, 68);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.2);
  color: rgb(139, 92, 246);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

.role-super-admin {
  background: rgba(245, 158, 11, 0.2);
  color: rgb(245, 158, 11);
}

.role-client-admin {
  background: rgba(59, 130, 246, 0.2);
  color: rgb(59, 130, 246);
}

.role-lab-assistant {
  background: rgba(34, 197, 94, 0.2);
  color: rgb(34, 197, 94);
}

.role-doctor {
  background: rgba(139, 92, 246, 0.2);
  color: rgb(139, 92, 246);
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-active {
  background: rgba(34, 197, 94, 0.2);
  color: rgb(34, 197, 94);
}

.status-inactive {
  background: rgba(239, 68, 68, 0.2);
  color: rgb(239, 68, 68);
}

.table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: var(--tile-border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.data-table th {
  background: var(--card);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: var(--tile-border);
  white-space: nowrap;
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: var(--tile-border);
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background: rgba(255,255,255,0.03);
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.settings-card {
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.settings-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-a), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.settings-card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 231, 183, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.settings-card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.card-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.card-description {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.access-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(34, 197, 94, 0.1);
  color: rgb(34, 197, 94);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.access-badge.restricted {
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.1));
  color: rgb(245, 158, 11);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0b0f17;
  margin-right: 1.5rem;
}

.step-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
  cursor: pointer;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  position: relative;
  z-index: 3;
}

.step-circle.completed {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: #0b0f17;
  border: 2px solid transparent;
}

.step-circle.active {
  background: var(--card);
  border-color: var(--brand-a);
  color: var(--text);
  box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.2);
}

.step-circle.inactive {
  background: var(--card);
  color: var(--muted);
  border: 2px solid var(--tile-border);
}

.step-line {
  position: absolute;
  top: 20px;
  height: 4px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  transform: translateY(-50%);
  z-index: 1;
  transition: all 0.4s ease;
  border-radius: 2px;
  background: var(--tile-border);
}

.step-line.completed {
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
}

.step-label {
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.step-label.completed {
  color: var(--text);
}

.step-label.active {
  color: var(--text);
}

.step-label.inactive {
  color: var(--muted);
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--card);
  border: var(--tile-border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: rgba(255,255,255,.08);
}

.selection-log {
  background: var(--card);
  border: var(--tile-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 1.5rem;
}

.log-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
}

.log-item:not(:last-child) {
  border-bottom: 1px solid var(--tile-border);
}

.clinic-option {
  padding: 16px;
  border-radius: 12px;
  border: var(--tile-border);
  background: var(--card);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 8px;
}

.clinic-option:hover {
  background: rgba(255,255,255,.08);
}

.clinic-option.selected {
  border-color: var(--brand-a);
  background: rgba(110,231,183,.1);
}

.clinic-name {
  font-weight: 600;
  color: var(--text);
}

.clinic-address {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.loading-studies {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
}

.modality-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--tile-border);
  background: var(--card);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modality-btn:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}

.modality-btn.active {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: #0b0f17;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(110, 231, 183, 0.3);
}

.modality-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--card);
  border-radius: 12px;
  border: var(--tile-border);
}

.search-icon {
  width: 48px;
  height: 48px;
  animation: searchPulse 2s ease-in-out infinite;
}

@keyframes searchPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.loading-dots {
  display: flex;
  gap: 4px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-a);
  animation: dotPulse 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #0b0f17;
}

.profile-info h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.profile-info p {
  color: var(--muted);
}

.settings-section {
  margin-bottom: 2rem;
}

.settings-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: var(--tile-border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-full {
  grid-column: 1 / -1;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.info-item {
  background: var(--card);
  border: var(--tile-border);
  border-radius: 8px;
  padding: 1rem;
}

.info-label {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.info-value {
  font-weight: 600;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--card);
  border: var(--tile-border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: rgba(255,255,255,.08);
  transform: translateX(-4px);
}

.btn-success {
  background: rgba(34, 197, 94, 0.2);
  color: rgb(34, 197, 94);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-success:hover {
  background: rgba(34, 197, 94, 0.3);
}

.btn-warning {
  background: rgba(245, 158, 11, 0.2);
  color: rgb(245, 158, 11);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-warning:hover {
  background: rgba(245, 158, 11, 0.3);
}

.status-connected {
  background: rgba(34, 197, 94, 0.2);
  color: rgb(34, 197, 94);
}

.status-disconnected {
  background: rgba(239, 68, 68, 0.2);
  color: rgb(239, 68, 68);
}

.test-btn {
  background: rgba(59, 130, 246, 0.2);
  color: rgb(59, 130, 246);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.test-btn:hover {
  background: rgba(59, 130, 246, 0.3);
}

.connection-status {
  padding: 0.5rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.connection-success {
  background: rgba(34, 197, 94, 0.1);
  color: rgb(34, 197, 94);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.connection-error {
  background: rgba(239, 68, 68, 0.1);
  color: rgb(239, 68, 68);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.connection-testing {
  background: rgba(59, 130, 246, 0.1);
  color: rgb(59, 130, 246);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.container{max-width:1400px;margin:0 auto;padding:0 20px}

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
      margin-bottom: 2rem;
    }
    
    .stat-card {
      background: var(--card);
      border: var(--tile-border);
      border-radius: 12px;
      padding: 1.5rem;
      text-align: center;
    }
    
    .stat-number {
      font-size: 2rem;
      font-weight: bold;
      background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-bottom: 0.5rem;
    }
    
    .stat-label {
      color: var(--muted);
      font-size: 0.875rem;
    }
    
    .tab-button {
      padding: 0.75rem 1.5rem;
      border: none;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      border-radius: 8px;
      transition: all 0.2s;
    }
    
    .tab-button.active {
      background: var(--card);
      color: var(--text);
      border: var(--tile-border);
    }
    
    .table-container {
      overflow-x: auto;
      border-radius: 12px;
      border: var(--tile-border);
    }

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: var(--card);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: var(--tile-border);
}

.admin-table td {
  padding: 1rem;
  border-bottom: var(--tile-border);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover {
  background: rgba(255,255,255,0.03);
}

.btn-sm {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.step-line.sending {
  background: transparent;
  border: 2px dashed var(--brand-a);
  animation: dashMove 1.5s linear infinite;
}

@keyframes dashMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 20px 0;
  }
}

@keyframes gradientFlow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.send-button {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: #0b0f17;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 200px;
}

.send-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(110, 231, 183, 0.3);
}

.send-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.send-button .progress-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  transition: width 0.3s ease;
  z-index: 1;
}

.send-button .button-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.send-button .progress-text {
  font-weight: 700;
  font-size: 13px;
}

.copy-field {
  background: var(--card);
  border: var(--tile-border);
  border-radius: 8px;
  padding: 12px;
  margin: 8px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.copy-field:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--brand-a);
}

.copy-field.copied {
  border-color: var(--brand-a);
  background: rgba(110,231,183,.1);
}

.copy-content {
  display: flex;
  justify-content: between;
  align-items: center;
  gap: 8px;
}

.copy-text {
  flex: 1;
  word-break: break-all;
  font-family: monospace;
  font-size: 13px;
}

.copy-icon {
  opacity: 0.6;
  transition: all 0.2s ease;
}

.copy-field:hover .copy-icon {
  opacity: 1;
}

.copy-field.copied .copy-icon {
  color: var(--brand-a);
}

.doctors-placeholder {
  background: var(--card);
  border: var(--tile-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--progress-bg);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

.progress-primary {
    background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
}

.progress-success {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.progress-info {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.progress-warning {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.progress-danger {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.support-card {
    background: var(--support-bg);
    border: 1px solid var(--support-border);
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
}

.footer {
    background: var(--bg-soft);
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: auto;
    backdrop-filter: saturate(160%) var(--blur);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr 1.5fr;
    gap: 3rem;
    padding: 3rem 0 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.footer-logo .logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b0f17;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

.footer-description {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.nav-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-section a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.375rem 0;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.nav-section a:hover {
    color: var(--text);
    transform: translateX(4px);
}

.footer-contact h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.contact-item svg {
    opacity: 0.7;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--card);
    border: var(--tile-border);
    color: var(--muted);
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(255,255,255,.08);
    color: var(--text);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 1rem;
}

.footer-copyright p {
    color: var(--muted);
    font-size: 0.875rem;
    margin: 0;
}

.footer-actions {
    display: flex;
    gap: 0.5rem;
}

.footer-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--card);
    border: var(--tile-border);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-action-btn:hover {
    background: rgba(255,255,255,.08);
    color: var(--text);
}

.glass-card {
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes buttonPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.button-pulse:hover {
  animation: buttonPulse 0.3s ease;
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  z-index: 1000;
  animation: slideInRight 0.3s ease;
}

.notification.success {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.notification.error {
  background: linear-gradient(135deg, #ef4444, #f87171);
}

.notification.info {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .mobile-stack {
    flex-direction: column;
  }
  
  .mobile-full {
    width: 100%;
  }
  
  .mobile-text-center {
    text-align: center;
  }
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-active {
  background: rgba(34, 197, 94, 0.2);
  color: rgb(34, 197, 94);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-pending {
  background: rgba(245, 158, 11, 0.2);
  color: rgb(245, 158, 11);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-completed {
  background: rgba(59, 130, 246, 0.2);
  color: rgb(59, 130, 246);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 2rem 0 1rem;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        align-items: center;
    }
}


@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .settings-card {
    padding: 1.5rem;
    border-radius: 14px;
  }

  .settings-card:hover {
    transform: none;
  }

  .glass-card.p-8 {
    padding: 1.5rem !important;
  }

  .user-avatar {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
    margin-right: 1rem;
  }

  h1.text-3xl {
    font-size: 1.5rem !important;
  }

  .flex.items-start.justify-between {
    flex-direction: column;
    gap: 1.5rem;
  }

  .back-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  .glass-card.p-6 {
    padding: 1.25rem !important;
  }

  .grid.grid-cols-1.md\:grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .table-container {
    border-radius: 12px;
    margin: 0 -16px;
    width: calc(100% + 32px);
  }

  .data-table {
    font-size: 13px;
  }

  .data-table th,
  .data-table td {
    padding: 0.75rem 0.5rem;
  }

  .action-buttons {
    flex-direction: column;
    gap: 0.25rem;
  }

  .action-buttons button {
    width: 100%;
    font-size: 12px;
    padding: 0.4rem 0.75rem;
  }

  .step-container {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin: 0 -16px;
    padding-left: 16px;
  }

  .step-item {
    min-width: 80px;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .step-label {
    font-size: 11px;
  }

  .modality-filter {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    margin: 0 -16px;
    padding-left: 16px;
  }

  .modality-btn {
    flex-shrink: 0;
    font-size: 11px;
    padding: 6px 12px;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .avatar-large {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
    margin: 0 auto;
  }

  .btn-primary,
  .btn-secondary,
  .btn-danger,
  .btn-success,
  .btn-warning,
  .test-btn {
    padding: 0.625rem 1rem;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }

  .form-actions {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .tab-buttons {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }

  .tab-button {
    flex-shrink: 0;
    font-size: 13px;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .glass-card {
    padding: 1.25rem !important;
  }

  .settings-card {
    padding: 1.25rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .user-avatar {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }

  .btn-h span {
    display: none; 
  }

  .btn-h {
    padding: 8px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav {
    display: none;
  }

  .mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    backdrop-filter: saturate(160%) var(--blur);
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 16px;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-nav.active {
    display: flex;
  }

  .mobile-nav a {
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 16px;
  }

  .mobile-nav a.active,
  .mobile-nav a:hover {
    background: rgba(255,255,255,.08);
  }

  .back-btn {
    font-size: 14px;
    padding: 10px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .settings-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    max-width: 100%;
    padding: 0 24px;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .container {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .glass-card.p-8 {
    padding: 1rem !important;
  }

  .user-avatar {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  h1.text-3xl {
    font-size: 1.25rem !important;
  }
}

@supports (padding: max(0px)) {
  @media (max-width: 768px) {
    .container {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
  }
}

