﻿.pan-modern {
  --pm-bg: #f5f8ff;
  --pm-card: #ffffff;
  --pm-text: #0f172a;
  --pm-muted: #64748b;
  --pm-primary: #1d4ed8;
  --pm-primary-2: #2563eb;
  --pm-success: #16a34a;
  --pm-border: #e2e8f0;
  background: radial-gradient(circle at top right, #dbeafe 0%, #f5f8ff 35%, #f8fafc 100%);
  padding: 16px 0 48px;
}

.pan-modern .pm-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 10px;
}

.pan-modern .pm-home-link {
  text-decoration: none;
  font-weight: 700;
  color: #1e3a8a;
}

.pan-modern .pm-auth-actions {
  display: flex;
  gap: 8px;
}

.pan-modern .pm-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #38bdf8 100%);
  color: #fff;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
  margin-bottom: 20px;
}

.pan-modern .pm-hero h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.pan-modern .pm-hero p {
  margin: 0;
  opacity: 0.9;
}

.pan-modern .pm-customer-panel {
  background: #fff;
  border: 1px solid var(--pm-border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.pan-modern .pm-customer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.pan-modern .pm-status-chip {
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 12px;
}

.pan-modern .pm-customer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.pan-modern .pm-customer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pan-modern .pm-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.pan-modern .pm-option {
  border: 1px solid var(--pm-border);
  background: var(--pm-card);
  border-radius: 14px;
  padding: 16px;
  min-height: 118px;
  cursor: pointer;
  transition: all .2s ease;
  color: var(--pm-text);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pan-modern .pm-option:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.pan-modern .pm-option.is-active {
  border-color: var(--pm-primary);
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 80%);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.14);
}

.pan-modern .pm-option i {
  font-size: 1.1rem;
  color: var(--pm-primary);
}

.pan-modern .pm-option-title {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.3;
}

.pan-modern .pm-option-meta {
  font-size: .73rem;
  color: var(--pm-muted);
}

.pan-modern .pm-form-wrap {
  background: var(--pm-card);
  border: 1px solid var(--pm-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.pan-modern .pm-form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pan-modern .pm-form-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pm-text);
}

.pan-modern .pm-badge {
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: .72rem;
  font-weight: 700;
  padding: 6px 10px;
}

.pan-modern .pm-help {
  margin: 0 0 14px;
  color: var(--pm-muted);
  font-size: .86rem;
}

.pan-modern .pm-hidden {
  display: none !important;
}

.pan-modern .pm-msg {
  margin-top: 14px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: .86rem;
  display: none;
}

.pan-modern .pm-msg.is-success {
  display: block;
  background: #dcfce7;
  color: #166534;
}

.pan-modern .pm-msg.is-error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
}

.pan-modern .pm-submit {
  min-width: 150px;
}

.pan-modern .pm-note {
  font-size: .74rem;
  color: var(--pm-muted);
  margin-top: 4px;
}

 .pm-auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 9999;
}

 .pm-auth-modal.open {
  display: flex;
}

 .pm-auth-card {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--pm-border);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.24);
}

 .pm-auth-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

@media (max-width: 1200px) {
  .pan-modern .pm-card-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .pan-modern {
    padding: 12px 0 28px;
  }

  .pan-modern .pm-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .pan-modern .pm-hero {
    padding: 18px;
    border-radius: 14px;
  }

  .pan-modern .pm-hero h1 {
    font-size: 1.35rem;
  }

  .pan-modern .pm-card-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 10px;
  }

  .pan-modern .pm-customer-grid {
    grid-template-columns: 1fr;
  }

  .pan-modern .pm-form-wrap {
    padding: 14px;
  }

  .pan-modern .pm-form-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .pan-modern .pm-card-grid {
    grid-template-columns: 1fr;
  }
}


