/* ============================================================
   MDIT COMPONENTS — Reusable UI Components
   Classy, Elegant, Professional Light Theme
   ============================================================ */

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--t2) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t1) var(--ease);
}

.btn:hover::after {
  background: rgba(255,255,255,.08);
}

/* Primary — Mind-Dey Crimson Red Accent */
.btn-primary {
  background: linear-gradient(135deg, #ef2738, #d31526);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239,39,56,.28), 0 1px 0 rgba(255,255,255,.2) inset;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239,39,56,.38), 0 1px 0 rgba(255,255,255,.2) inset;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary — TechCore Cobalt Navy */
.btn-cyan {
  background: linear-gradient(135deg, #040758, #000854);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(4,7,88,.28);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(4,7,88,.38);
}

/* Ghost / Subtle — White with Slate Border */
.btn-ghost {
  background: #ffffff;
  color: var(--text);
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.btn-ghost:hover {
  border-color: #ef2738;
  color: #ef2738;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239,39,56,0.15);
}

/* Danger */
.btn-danger {
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,38,38,.2);
  color: var(--red);
}

.btn-danger:hover {
  background: rgba(220,38,38,.14);
}

/* Small size */
.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 8px;
}

/* Large size */
.btn-lg {
  padding: 15px 32px;
  font-size: 15px;
  border-radius: 12px;
}

/* Full width */
.btn-full {
  width: 100%;
}

/* Icon-only */
.btn-icon {
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

/* Loading state */
.btn.loading {
  pointer-events: none;
  opacity: .75;
}

.btn.loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color var(--t2) var(--ease), transform var(--t2) var(--ease), box-shadow var(--t2) var(--ease);
}

.card:hover {
  border-color: rgba(37,99,235,.3);
  box-shadow: var(--shadow-hover);
}

/* Interactive card that lifts */
.card-hover {
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover), var(--shadow-glow-blue);
}

/* Card with top accent */
.card-accent {
  border-top: 3px solid var(--blue);
}

.card-accent-cyan {
  border-top: 3px solid var(--cyan);
}

.card-accent-violet {
  border-top: 3px solid var(--violet);
}

/* Feature card (icon + content layout) */
.card-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.card-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  background: rgba(37,99,235,.07);
  border: 1px solid rgba(37,99,235,.15);
}

/* ── Badges / Pills ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.badge-blue {
  background: rgba(37,99,235,.09);
  color: var(--blue);
  border: 1px solid rgba(37,99,235,.2);
}

.badge-cyan {
  background: rgba(13,148,136,.09);
  color: var(--cyan);
  border: 1px solid rgba(13,148,136,.2);
}

.badge-violet {
  background: rgba(109,40,217,.09);
  color: var(--violet);
  border: 1px solid rgba(109,40,217,.2);
}

.badge-green {
  background: rgba(5,150,105,.12);
  color: #059669;
  border: 1px solid rgba(5,150,105,.3);
}

.badge-amber, .badge-gold {
  background: rgba(217,119,6,.12);
  color: #d97706;
  border: 1px solid rgba(217,119,6,.3);
}

.badge-red {
  background: rgba(220,38,38,.12);
  color: #dc2626;
  border: 1px solid rgba(220,38,38,.3);
}

/* ── Callout / Alert Box ──────────────────────────────────── */
.callout {
  border-left: 4px solid var(--cyan);
  background: rgba(13,148,136,.05);
  padding: 20px 24px;
  border-radius: 0 14px 14px 0;
  margin-top: 24px;
  border-top: 1px solid rgba(13,148,136,.1);
  border-right: 1px solid rgba(13,148,136,.1);
  border-bottom: 1px solid rgba(13,148,136,.1);
}

.callout p, .callout {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.callout strong {
  color: var(--text);
}

.callout-blue {
  border-left-color: var(--blue);
  background: rgba(37,99,235,.05);
  border-top-color: rgba(37,99,235,.1);
  border-right-color: rgba(37,99,235,.1);
  border-bottom-color: rgba(37,99,235,.1);
}

.callout-amber {
  border-left-color: var(--amber);
  background: rgba(217,119,6,.05);
  border-top-color: rgba(217,119,6,.1);
  border-right-color: rgba(217,119,6,.1);
  border-bottom-color: rgba(217,119,6,.1);
}

.callout-red {
  border-left-color: var(--red);
  background: rgba(220,38,38,.05);
  border-top-color: rgba(220,38,38,.1);
  border-right-color: rgba(220,38,38,.1);
  border-bottom-color: rgba(220,38,38,.1);
}

/* ── Numbered Steps ───────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--t2) var(--ease), transform var(--t2) var(--ease), box-shadow var(--t2) var(--ease);
}

.step:hover {
  border-color: rgba(37,99,235,.3);
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  font-weight: 900;
  font-size: 16px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(37,99,235,.25);
}

.step-content h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .01em;
}

.form-label .required {
  color: var(--red);
  margin-left: 3px;
}

.form-input,
.form-select,
.form-textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: var(--text);
  padding: 12px 16px;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  transition: border-color var(--t1) var(--ease), background var(--t1) var(--ease), box-shadow var(--t1) var(--ease);
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--faint);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.12);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--red);
  background: rgba(220,38,38,.02);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23475569' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.form-select option {
  background: #ffffff;
  color: var(--text);
}

.form-error {
  font-size: 12px;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 5px;
}

.form-help {
  font-size: 12px;
  color: var(--faint);
}

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

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

/* ── Tables ───────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-top: 24px;
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 14px;
}

th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  padding: 14px 18px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 14px 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

td strong, td b {
  color: var(--text);
}

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

tr:hover td {
  background: #f8fafc;
}

/* ── Checklist Grid ───────────────────────────────────────── */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,.02);
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  transition: border-color var(--t1) var(--ease), transform var(--t1) var(--ease);
}

.check-item::before {
  content: '✓';
  color: var(--green);
  font-weight: 900;
  flex-shrink: 0;
  font-size: 14px;
}

.check-item:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

/* ── Stat Cards ───────────────────────────────────────────── */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: all var(--t2) var(--ease);
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transition: transform var(--t2) var(--ease);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.stat-card:hover::after {
  transform: scaleX(1);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  margin-bottom: 10px;
}

.stat-value {
  display: block;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.stat-sub {
  font-size: 12px;
  color: var(--faint);
  margin-top: 6px;
}

/* ── Tags ─────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #f1f5f9;
  border: 1px solid var(--line);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── Progress Bar ─────────────────────────────────────────── */
.progress {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--grad-brand);
  border-radius: 999px;
  transition: width 1s var(--ease);
}

/* ── Avatar ───────────────────────────────────────────────── */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e40af, #0d9488);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #ffffff;
  flex-shrink: 0;
}

/* ── Notification / Toast ─────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: calc(var(--z-chat) + 10);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 20px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 36px rgba(15,23,42,.12);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toast-in .3s var(--ease);
  pointer-events: auto;
  max-width: 340px;
}

.toast.toast-exit {
  animation: toast-out .3s var(--ease) forwards;
}

.toast-icon { font-size: 18px; flex-shrink: 0; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(14px) scale(.97); }
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--line);
  margin-block: 32px;
}

/* ── News Card ────────────────────────────────────────────── */
.news-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  transition: all var(--t2) var(--ease);
}

.news-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f1f5f9;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  position: relative;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t3) var(--ease);
}

.news-card:hover .news-card-img img {
  transform: scale(1.04);
}

.news-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--faint);
}

.news-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  transition: color var(--t1) var(--ease);
}

.news-card:hover .news-card-title {
  color: var(--blue);
}

.news-card-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.news-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  transition: gap var(--t1) var(--ease);
}

.news-card:hover .news-card-link {
  gap: 8px;
}

/* ── Accordion / FAQ ──────────────────────────────────────── */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.accordion-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color var(--t1) var(--ease), box-shadow var(--t1) var(--ease);
}

.accordion-item.open {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
}

.accordion-trigger {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--t1) var(--ease);
}

.accordion-trigger:hover {
  color: var(--blue);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform var(--t2) var(--ease), border-color var(--t1) var(--ease), background var(--t1) var(--ease);
  color: var(--muted);
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  border-color: var(--blue);
  background: rgba(37,99,235,.1);
  color: var(--blue);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t3) var(--ease);
}

.accordion-body-inner {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  transition: color var(--t1) var(--ease), border-color var(--t1) var(--ease);
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  opacity: .6;
}

.empty-state h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text);
}

.empty-state p {
  font-size: 14px;
  max-width: 380px;
  margin-inline: auto;
}

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  padding-block: 72px 56px;
  background: var(--grad-glow), var(--bg);
  border-bottom: 1px solid var(--line);
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 18px;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--faint);
  transition: color var(--t1) var(--ease);
}

.breadcrumb a:hover {
  color: var(--blue);
}

.breadcrumb-sep {
  font-size: 10px;
}

/* ── CTA Band ─────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(37,99,235,0.06), transparent 70%);
  pointer-events: none;
}

.cta-band > * { position: relative; z-index: 1; }

.cta-band h2 { margin-bottom: 12px; }
.cta-band p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 540px;
  margin-inline: auto;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive helpers for components ───────────────────── */
@media (max-width: 850px) {
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .checklist {
    grid-template-columns: 1fr;
  }

  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 40px 24px;
  }
}

@media (max-width: 480px) {
  .stat-cards {
    grid-template-columns: 1fr;
  }
}

/* ── Form Validation & Mandatory Field Highlighting ───────── */
.input-error,
input.input-error,
select.input-error,
textarea.input-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
  animation: shake-error 0.3s ease-in-out;
}

@keyframes shake-error {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.field-error-msg {
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  clear: both;
  animation: fade-in 0.2s ease;
}

/* ── Password Strength & Real-time Requirements Checklist ── */
.pwd-checklist-card {
  background: var(--bg-subtle, #f8fafc);
  border: 1.5px solid var(--line, #e2e8f0);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  transition: all 0.2s ease;
}

.pwd-strength-bar-track {
  height: 4px;
  width: 100%;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
  margin-bottom: 10px;
}

.pwd-strength-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pwd-rule-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 11.5px;
  color: var(--text-muted, #64748b);
  transition: all 0.2s ease;
}

.pwd-rule-item.valid {
  color: #15803d;
  font-weight: 700;
}

.pwd-rule-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-size: 9.5px;
  font-weight: 800;
  background: #e2e8f0;
  color: #64748b;
  transition: all 0.2s ease;
}

.pwd-rule-item.valid .pwd-rule-icon {
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}

/* ── Universal Mobile-Optimized Modal Styles ──────────────── */
@media (max-width: 768px) {
  #product-specs-modal, #order-modal, #admin-student-modal, #admin-edit-modal, .modal-backdrop {
    padding: 12px !important;
  }

  #product-specs-modal > div, #order-modal > div, .modal-card {
    padding: 22px 16px !important;
    border-radius: 18px !important;
    max-height: 94vh !important;
    box-shadow: 4px 4px 0px #000000 !important;
  }
}
