/* =========================
   LAYOUT
========================= */

.container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 10px;
}


/* =========================
   PAGE HEADER
========================= */

.page-header {
  max-width: 1100px;
  margin: 25px auto 10px auto;
  padding: 0 10px;
}

.page-title {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-subtitle {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}

.page-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #0078D4;
  font-weight: 500;
}


/* =========================
   SEARCH (UNIFIED)
========================= */

.search-wrap {
  max-width: 1100px;
  margin: 0 auto 20px auto;
  padding: 0 10px;
}

.search {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.search:focus {
  border-color: #0078D4;
  box-shadow: 0 0 0 3px rgba(0,120,212,0.15);
}

.search-hint {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
}


/* =========================
   GRID
========================= */

.grid {
  max-width: 1100px;
  margin: auto;
  padding: 0 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

/* =========================
   CARD (UNIFIED)
========================= */

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

.card-title {
  font-weight: 600;
  font-size: 14px;
  color: #0078D4;
  margin-bottom: 8px;
}

.card:focus {
    outline: 3px solid rgba(0, 120, 212, 0.2);
    outline-offset: 2px;
  }

/* =========================
   ROW SYSTEM (UNIFIED)
========================= */

.flex-row {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
  font-size: 13px;
  color: #444;
}

.label {
  color: #777;
  font-size: 12px;
}

.value {
  color: #333;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}


/* =========================
   BADGES / STATUS
========================= */

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #e8f1ff;
  color: #0078D4;
}


/* =========================
   UTILITIES
========================= */

.muted {
  font-size: 12px;
  color: #888;
}

/* =========================
   POPUP
========================= */

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

  .modal.is-open {
    display: flex;
  }

  .modal-panel {
    width: min(100%, 420px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    padding: 20px;
  }

  .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
  }

  .modal-title {
    margin: 0;
    font-size: 18px;
    color: #222;
  }

  .modal-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: #666;
  }

  .modal-close {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #667085;
    padding: 0;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
  }

  .modal-actions button {
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }

  .accept {
    background: #0078D4;
    color: #fff;
  }

  .request {
    background: #edf3f8;
    color: #1f2937;
  }

  @media (max-width: 640px) {
    .modal-actions {
      grid-template-columns: 1fr;
    }
  }

  