.nova-auth-wrap {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px;
  font-family: "Outfit", sans-serif;
}

.nova-auth-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  padding: 28px;
}

.nova-auth-card h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.nova-auth-subtitle {
  margin: 0 0 20px;
  color: #6b7280;
}

.nova-signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nova-signup-form-row {
  display: flex;
	gap: 20px;
	margin: 10px 0;
}

.nova-signup-form-column {
  width: 50%;
}

.nova-signup-form label {
  font-weight: 600;
  margin: 0 0 6px;
  display: block;
}

.nova-signup-form input,
.nova-signup-form select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 12px;
}

#nova-pharmacist-fields,
#nova-prescriber-fields {
  display: grid;
  gap: 12px;
}

#nova-pharmacist-fields.hidden,
#nova-prescriber-fields.hidden {
  display: none;
}

.nova-signup-form input:focus,
.nova-signup-form select:focus {
  outline: none;
  border-color: #8bc34a;
  box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.2);
}

.nova-signup-form small {
  color: #6b7280;
  font-size: 12px;
  display: block;
  margin-top: 6px;
}

.nova-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #4b5563;
  font-weight: 400;
  margin-top: 8px;
}

.nova-checkbox input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
}

.nova-signup-form button:not(.nova-type-card) {
  margin-top: 12px;
  border: none;
  border-radius: 12px;
  min-height: 48px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #8bc34a 0%, #66bb6a 100%);
  cursor: pointer;
}

.nova-login-wrap {
  max-width: 760px;
}

.nova-login-card {
  padding: 48px 42px 36px;
}

.nova-login-card h2 {
  text-align: center;
  font-size: 44px;
  line-height: 1.1;
  color: #0b2350;
  margin-bottom: 10px;
}

.nova-login-card .nova-auth-subtitle {
  text-align: center;
  color: #334155;
  margin-bottom: 24px;
}

.nova-login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nova-login-field label {
  font-size: 22px;
  color: #0b2350;
  font-weight: 500;
  margin-bottom: 8px;
}

.nova-login-form input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  min-height: 56px;
  padding: 10px 16px;
  font-size: 18px;
}

.nova-login-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.nova-forgot-link {
  color: #8bc34a;
  text-decoration: none;
  font-size: 16px;
}

.nova-login-form button {
  margin-top: 6px;
  border: none;
  border-radius: 14px;
  min-height: 56px;
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  background: linear-gradient(90deg, #8bc34a 0%, #66bb6a 100%);
  cursor: pointer;
}

.nova-login-footer {
  text-align: center;
  margin-top: 24px;
  color: #0f172a;
  font-size: 17px;
}

.nova-login-footer a {
  color: #8bc34a;
  text-decoration: none;
  font-weight: 600;
}

.nova-alert {
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 16px;
  border: 1px solid transparent;
}

.nova-alert-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.nova-alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

/* ========== STEP NAVIGATION ========== */
.nova-step {
  animation: fadeIn 0.3s ease-in-out;
}

.nova-step.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nova-step-progress {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  justify-content: center;
  gap: 10px;
}

.nova-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}

.nova-step-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f4f6;
  border: 2px solid #d1d5db;
  color: #6b7280;
  font-weight: 600;
  font-size: 14px;
}

.nova-step-item-active .nova-step-num {
  background: linear-gradient(90deg, #8bc34a 0%, #66bb6a 100%);
  border-color: #8bc34a;
  color: #fff;
}

.nova-step-item-done .nova-step-num {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
  font-size: 18px;
}

.nova-step-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  text-align: center;
}

.nova-step-item-active .nova-step-label {
  color: #0b2350;
  font-weight: 600;
}

.nova-step-item-done .nova-step-label {
  color: #065f46;
}

.nova-step-connector {
  flex: 1;
  height: 2px;
  background: #d1d5db;
  margin: 0 5px;
  max-width: 60px;
}

.nova-step-connector-done {
  background: #6ee7b7;
}

.nova-step-title {
  font-size: 24px;
  font-weight: 700;
  color: #0b2350;
  margin: 0 0 8px;
  text-align: center;
}

.nova-step-desc {
  font-size: 16px;
  color: #6b7280;
  text-align: center;
  margin: 0 0 24px;
}

/* ========== ACCOUNT TYPE SELECTION ========== */
.nova-type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 30px;
}

.nova-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
}

.nova-type-card:hover {
  border-color: #8bc34a;
  box-shadow: 0 4px 12px rgba(139, 195, 74, 0.15);
}

.nova-type-card-active {
  background: linear-gradient(135deg, #f0fdf4 0%, #f0fdf4 100%);
  border-color: #8bc34a;
  box-shadow: 0 8px 20px rgba(139, 195, 74, 0.2);
}

.nova-type-card-active::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(90deg, #8bc34a 0%, #66bb6a 100%);
  margin-bottom: 4px;
}

.nova-type-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #0b2350;
  display: block;
}

.nova-type-card-desc {
  font-size: 14px;
  color: #6b7280;
  display: block;
  margin-top: 4px;
}

/* ========== SELECTED ROLE BADGE ========== */
.nova-selected-role-badge {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #374151;
  text-align: center;
}

.nova-selected-role-badge strong {
  color: #0b2350;
  font-weight: 600;
  text-transform: capitalize;
}

/* ========== STEP ACTIONS ========== */
.nova-step-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  justify-content: flex-end;
}

.nova-btn-next,
.nova-btn-back,
.nova-step-actions button[type="submit"] {
  min-height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Outfit", sans-serif;
}

.nova-btn-next,
.nova-step-actions button[type="submit"] {
  background: linear-gradient(90deg, #8bc34a 0%, #66bb6a 100%);
  color: #fff;
}

.nova-btn-next {
  flex: 1;
}

.nova-step-actions button[type="submit"] {
  flex: 1;
}

.nova-btn-next:hover:not(:disabled),
.nova-step-actions button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 195, 74, 0.3);
}

.nova-btn-next:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
}

.nova-btn-back {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  flex: 0 0 auto;
  min-width: 100px;
}

.nova-btn-back:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.nova-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.hidden {
  display: none;
}

@media (max-width: 767px) {
  .nova-signup-form-row {
    flex-direction: column;
  }

  .nova-signup-form-column {
    width: 100%;
  }

  .nova-login-card {
    padding: 28px 22px;
  }

  .nova-login-card h2 {
    font-size: 34px;
  }

  .nova-login-field label {
    font-size: 18px;
  }

  .nova-login-form input,
  .nova-login-form button {
    min-height: 50px;
    font-size: 16px;
  }

  .nova-step-progress {
    flex-wrap: wrap;
    gap: 8px;
  }

  .nova-step-connector {
    display: none;
  }

  .nova-type-cards {
    grid-template-columns: 1fr;
  }

  .nova-step-title {
    font-size: 20px;
  }

  .nova-step-desc {
    font-size: 14px;
  }

  .nova-step-actions {
    flex-direction: column-reverse;
  }

  .nova-btn-next,
  .nova-btn-back {
    width: 100%;
  }

  .nova-auth-card {
    padding: 20px;
  }
}

/* ========== ACCOUNT DASHBOARD ========== */
.nova-account-wrap {
  font-family: "Outfit", sans-serif;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.nova-account-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* Sidebar */
.nova-account-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 100px;
}

.nova-account-user {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 8px;
}

.nova-account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8bc34a, #66bb6a);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  letter-spacing: 1px;
}

.nova-account-user-name {
  font-size: 16px;
  font-weight: 700;
  color: #0b2350;
  margin-bottom: 6px;
}

.nova-account-role-badge {
  display: inline-block;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 2px 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Nav */
.nova-account-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nova-account-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #4b5563;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nova-account-nav-item:hover {
  background: #f3f4f6;
  color: #0b2350;
  text-decoration: none;
}

.nova-account-nav-item.active {
  background: rgba(139, 195, 74, 0.08);
  color: #3a7a1a;
  font-weight: 600;
  border-left-color: #8bc34a;
}

.nova-account-nav-item svg {
  flex-shrink: 0;
  opacity: 0.65;
}

.nova-account-nav-item.active svg,
.nova-account-nav-item:hover svg {
  opacity: 1;
}

/* Logout */
.nova-account-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 0;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
  color: #dc2626;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 0 0 6px 6px;
}

.nova-account-logout:hover {
  color: #b91c1c;
  text-decoration: none;
}

.nova-account-logout svg {
  flex-shrink: 0;
}

/* Content area */
.nova-account-content {
  flex: 1;
  min-width: 0;
}

.nova-account-tab {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  padding: 32px;
}

.nova-tab-hidden {
  display: none !important;
}

.nova-account-tab-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.nova-account-tab-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: #0b2350;
  margin: 0 0 6px;
}

.nova-account-tab-header p {
  color: #6b7280;
  margin: 0;
  font-size: 15px;
}

/* Account form */
.nova-account-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nova-account-field label,
.nova-account-col label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.nova-required {
  color: #dc2626;
}

.nova-account-field input,
.nova-account-field select,
.nova-account-col input,
.nova-account-col select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: "Outfit", sans-serif;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nova-account-field input:focus,
.nova-account-field select:focus,
.nova-account-col input:focus,
.nova-account-col select:focus {
  outline: none;
  border-color: #8bc34a;
  box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.2);
}

.nova-account-field input:disabled {
  background: #f9fafb;
  color: #6b7280;
  cursor: not-allowed;
}

.nova-account-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.nova-account-btn {
  align-self: flex-start;
  background: linear-gradient(90deg, #8bc34a 0%, #66bb6a 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  min-height: 50px;
  padding: 0 36px;
  font-size: 16px;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nova-account-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 195, 74, 0.3);
}

/* ========== ORDERS TABLE ========== */
.nova-orders-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.nova-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-family: "Outfit", sans-serif;
  min-width: 480px;
}

/* Header */
.nova-orders-table thead {
  background: #f8fafc;
}

.nova-orders-table th {
  text-align: left;
  padding: 13px 20px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  white-space: nowrap;
}

/* Fixed column widths */
.nova-orders-table th:nth-child(1),
.nova-orders-table td:nth-child(1) { width: auto; }
.nova-orders-table th:nth-child(2),
.nova-orders-table td:nth-child(2) { width: 72px; text-align: center; }
.nova-orders-table th:nth-child(3),
.nova-orders-table td:nth-child(3) { width: 130px; }
.nova-orders-table th:nth-child(4),
.nova-orders-table td:nth-child(4) { width: 120px; white-space: nowrap; }

/* Rows */
.nova-orders-table td {
  padding: 16px 20px;
  color: #1e293b;
  border: none;
  vertical-align: middle;
  font-size: 14px;
}

.nova-orders-table tbody tr:last-child td {
  border-bottom: none;
}

.nova-orders-table tbody tr {
  transition: background 0.15s ease;
}

.nova-orders-table tbody tr:hover td {
  background: #f8fafc;
}

/* Order ID cell */
.nova-orders-table td:nth-child(2) {
  text-align: center;
  font-weight: 600;
  color: #64748b;
}

/* Date cell */
.nova-orders-table td:nth-child(4) {
  color: #64748b;
  font-size: 13px;
}

/* Status badges */
.nova-order-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nova-order-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.nova-order-status-pending {
  background: #fef9ec;
  color: #b45309;
  border: 1px solid #fde68a;
}
.nova-order-status-pending::before  { background: #f59e0b; }

.nova-order-status-processing {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.nova-order-status-processing::before { background: #3b82f6; }

.nova-order-status-completed {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.nova-order-status-completed::before  { background: #22c55e; }

.nova-order-status-cancelled {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.nova-order-status-cancelled::before  { background: #ef4444; }

/* Empty state */
.nova-account-empty {
  text-align: center;
  padding: 60px 20px;
}

.nova-account-empty svg {
  display: block;
  margin: 0 auto 16px;
}

.nova-account-empty p {
  font-size: 18px;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 8px;
}

.nova-account-empty small {
  font-size: 14px;
  color: #9ca3af;
}

/* Products inside account - let product shortcode breathe */
.nova-account-products-wrap {
  margin: 0 -4px;
}

/* Mobile */
@media (max-width: 900px) {
  .nova-account-layout {
    flex-direction: column;
  }

  .nova-account-sidebar {
    width: 100%;
    position: static;
    padding: 20px;
    gap: 0;
  }

  .nova-account-user {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .nova-account-avatar {
    margin: 0;
    width: 52px;
    height: 52px;
    font-size: 20px;
    flex-shrink: 0;
  }

  .nova-account-nav {
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
    margin-bottom: 4px;
  }

  .nova-account-nav-item {
    flex-direction: column;
    gap: 4px;
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0;
  }

  .nova-account-nav-item.active {
    border-left: none;
    border-bottom-color: #8bc34a;
  }

  .nova-account-logout {
    justify-content: center;
    padding: 10px 14px 0;
    margin-top: 4px;
  }

  .nova-account-tab {
    padding: 20px;
  }

  .nova-account-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .nova-account-wrap {
    padding: 0 12px;
    margin: 20px auto;
  }

  .nova-account-tab-header h2 {
    font-size: 22px;
  }

  .nova-account-btn {
    align-self: stretch;
  }
}

/* ========== ORDERS TAB HEADER ========== */
.nova-orders-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nova-create-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
  padding: 0 22px;
  min-height: 42px;
  font-size: 14px;
}

/* ========== ORDER PRODUCT CELL ========== */
.nova-order-product-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nova-order-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.nova-order-product-cell span {
  font-weight: 500;
  color: #0f172a;
  line-height: 1.4;
}

/* ========== CREATE ORDER MODAL ========== */
body.nova-modal-open {
  overflow: hidden;
}

.nova-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: novaOverlayIn 0.15s ease;
}

@keyframes novaOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.nova-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  font-family: "Outfit", sans-serif;
  animation: novaModalIn 0.2s ease;
}

@keyframes novaModalIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.nova-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.nova-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0b2350;
  margin: 0;
}

.nova-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.nova-modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

/* Product image preview inside modal */
.nova-modal-preview {
  margin: 0 24px 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  background: #f9fafb;
  height: 180px;
  cursor: zoom-in;
}

.nova-modal-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.12s ease;
  will-change: transform;
}

.nova-modal-preview.nova-zoom-active {
  cursor: crosshair;
}

.nova-modal-preview.nova-zoom-active img {
  transform: scale(2.5);
}

.nova-modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nova-modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.nova-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nova-modal-field label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.nova-modal-field input,
.nova-modal-field select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: "Outfit", sans-serif;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nova-modal-field input:focus,
.nova-modal-field select:focus {
  outline: none;
  border-color: #8bc34a;
  box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.18);
}

.nova-modal-field input:disabled {
  background: #f9fafb;
  color: #6b7280;
  cursor: not-allowed;
}

.nova-modal-footer {
  padding: 14px 24px 20px;
  border-top: 1px solid #f0f0f0;
}

.nova-modal-msg {
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  padding: 9px 14px;
  margin-bottom: 14px;
}

.nova-modal-msg--success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.nova-modal-msg--error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.nova-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.nova-modal-cancel-btn {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Outfit", sans-serif;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.nova-modal-cancel-btn:hover {
  background: #e5e7eb;
}

@media (max-width: 560px) {
  .nova-modal-row {
    grid-template-columns: 1fr;
  }

  .nova-modal-actions {
    flex-direction: column-reverse;
  }

  .nova-modal-cancel-btn,
  #nova-submit-order {
    width: 100%;
  }
}

/* ========== EDUCATIONAL MATERIALS TAB ========== */
.nova-edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.nova-edu-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nova-edu-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

/* Card image area */
.nova-edu-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f8fafc;
  flex-shrink: 0;
}

.nova-edu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.nova-edu-card:hover .nova-edu-card-image img {
  transform: scale(1.04);
}

.nova-edu-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: #86efac;
}

/* Card body */
.nova-edu-card-body {
  padding: 16px 18px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nova-edu-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nova-edu-category-badge {
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 2px 10px;
  white-space: nowrap;
  font-family: "Outfit", sans-serif;
}

.nova-edu-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0b2350;
  margin: 0;
  line-height: 1.4;
  font-family: "Outfit", sans-serif;
}

.nova-edu-card-excerpt {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
  font-family: "Outfit", sans-serif;
}

/* Card footer */
.nova-edu-card-footer {
  padding: 12px 18px 16px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.nova-edu-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #8bc34a 0%, #66bb6a 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: "Outfit", sans-serif;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nova-edu-download-btn:hover {
  box-shadow: 0 4px 14px rgba(139, 195, 74, 0.4);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.nova-edu-no-file {
  font-size: 12px;
  color: #9ca3af;
  font-family: "Outfit", sans-serif;
}

.nova-edu-date {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
  font-family: "Outfit", sans-serif;
}

/* Responsive */
@media (max-width: 1024px) {
  .nova-edu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .nova-edu-grid { grid-template-columns: 1fr; }
}

/* ========== TOAST NOTIFICATIONS ========== */
.nova-toaster {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  width: calc(100vw - 48px);
  pointer-events: none;
}

.nova-toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13), 0 2px 6px rgba(0,0,0,0.06);
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  pointer-events: all;
  position: relative;
  overflow: hidden;
  animation: novaToastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes novaToastIn {
  from { opacity: 0; transform: translateX(60px) scale(0.92); }
  to   { opacity: 1; transform: translateX(0)    scale(1); }
}

.nova-toast.is-leaving {
  animation: novaToastOut 0.32s ease forwards;
}

@keyframes novaToastOut {
  from { opacity: 1; transform: translateX(0);     max-height: 120px; margin-bottom: 0; }
  to   { opacity: 0; transform: translateX(60px);  max-height: 0;     margin-bottom: -10px; padding-top: 0; padding-bottom: 0; }
}

.nova-toast--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.nova-toast--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.nova-toast-icon {
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
}

.nova-toast-msg {
  flex: 1;
  min-width: 0;
}

.nova-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  font-size: 18px;
  line-height: 1;
  padding: 0 0 0 4px;
  margin-top: -1px;
  font-family: inherit;
  transition: opacity 0.15s;
}

.nova-toast-close:hover { opacity: 1; }

/* Progress bar that burns down over the auto-dismiss delay */
.nova-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 0 12px;
  animation: novaToastProgress 4.5s linear forwards;
}

.nova-toast--success .nova-toast-progress { background: #22c55e; }
.nova-toast--error   .nova-toast-progress { background: #ef4444; }

@keyframes novaToastProgress {
  from { width: 100%; }
  to   { width: 0%; }
}

.nova-toast:hover .nova-toast-progress {
  animation-play-state: paused;
}

@media (max-width: 520px) {
  .nova-toaster {
    top: auto;
    bottom: 16px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: 100%;
  }
}
