/* =============================================================================
   RESET & BASE
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f0f4f8;
  min-height: 100vh;
}

/* =============================================================================
   NAVIGATION
   ============================================================================= */
nav {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: .9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
}

.brand .logo {
    height: 2rem;
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: #4a5568; text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: #4f46e5; }
.nav-links a.nav-active { color: #4f46e5; font-weight: 600; }

.nav-user { color: #4a5568; font-size: .95rem; }

.btn-logout {
  background: none;
  border: 1.5px solid #e2e8f0;
  padding: .4rem .9rem;
  border-radius: 8px;
  cursor: pointer;
  color: #718096;
  font-size: .9rem;
}
.btn-logout:hover { border-color: #c53030; color: #c53030; }

/* =============================================================================
   LAYOUT
   ============================================================================= */
.container { max-width: 760px; margin: 3rem auto; padding: 0 1.5rem; }

h1 { font-size: 1.8rem; color: #1a202c; margin-bottom: 2rem; }
.subtitle { color: #718096; margin-bottom: 2rem; font-size: .95rem; }

hr { border: none; border-top: 1px solid #e2e8f0; margin: 1.5rem 0; }

.welcome-msg { font-size: 1.1rem; color: #2d3748; margin-bottom: 1.5rem; }

/* =============================================================================
   CARDS
   ============================================================================= */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.card h2 { font-size: 1.1rem; color: #1a202c; margin-bottom: 1.25rem; }

/* Upload and files cards (files.html) */
.upload-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 2rem;
  margin-bottom: 2rem;
}
.upload-card h2 { font-size: 1.1rem; color: #1a202c; margin-bottom: 1rem; }

.files-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 2rem;
}
.files-card h2 { font-size: 1.1rem; color: #1a202c; margin-bottom: 1rem; }

/* Legal claim card */
.lc-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.lc-card h2 { font-size: 1.1rem; color: #1a202c; margin-bottom: 1.25rem; }

/* Signature area (receipt.html) */
.signature-area {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.signature-area h2 { font-size: 1.1rem; color: #1a202c; margin-bottom: .5rem; }
.signature-area p { font-size: .85rem; color: #718096; margin-bottom: 1rem; }

/* =============================================================================
   FORMS
   ============================================================================= */
label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: .4rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  margin-bottom: 1rem;
  transition: border-color .2s;
}

input:focus,
select:focus,
textarea:focus { border-color: #4f46e5; }

input[type="file"] { display: none; }

textarea { resize: vertical; min-height: 70px; }

select { cursor: pointer; background: #fff; }

.form-row { margin-bottom: 1rem; }
.form-row:last-child { margin-bottom: 0; }

.toggle-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.toggle-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #4f46e5;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle-row label { margin: 0; font-weight: 500; font-size: .9rem; cursor: pointer; }

.field-group {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.field-group legend {
  font-size: .82rem;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 0 .4rem;
}

.radio-group { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.radio-group--spaced { margin-bottom: .75rem; }
.radio-group label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 500;
  font-size: .88rem;
  margin: 0;
  cursor: pointer;
}
.radio-group input[type="radio"] { accent-color: #4f46e5; }

.hint-text { font-size: .78rem; color: #a0aec0; margin-top: .3rem; }

/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn {
  padding: .7rem 1.5rem;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: #4338ca; }

.btn-sm {
  padding: .35rem .8rem;
  font-size: .82rem;
  background: none;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  color: #c53030;
  font-weight: 600;
}
.btn-sm:hover { background: #fff5f5; border-color: #c53030; }

.btn-send {
  width: 100%;
  padding: 1rem;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  margin-top: 1.5rem;
}
.btn-send:hover:not(:disabled) { background: #4338ca; }
.btn-send:disabled { background: #a5b4fc; cursor: not-allowed; }

.btn-accept {
  width: 100%;
  padding: 1rem;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.btn-accept:hover:not(:disabled) { background: #4338ca; }
.btn-accept:disabled { background: #a5b4fc; cursor: not-allowed; }

.open-btn {
  padding: .4rem .9rem;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  flex-shrink: 0;
}
.open-btn:hover { background: #4338ca; }

.btn-clear-sig {
  padding: .35rem .85rem;
  font-size: .82rem;
  font-weight: 600;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  background: #fff;
  color: #718096;
  cursor: pointer;
}
.btn-clear-sig:hover { border-color: #c53030; color: #c53030; }

.remove-btn {
  background: none;
  border: none;
  color: #c53030;
  cursor: pointer;
  font-size: 1rem;
  padding: 0 .25rem;
  flex-shrink: 0;
}
.remove-btn:hover { color: #9b2c2c; }

/* =============================================================================
   MESSAGES & STATES
   ============================================================================= */
.msg {
  margin-top: 1rem;
  padding: .7rem 1rem;
  border-radius: 8px;
  font-size: .9rem;
  display: none;
}
.msg.error { background: #fff5f5; color: #c53030; border: 1px solid #fed7d7; display: block; }
.msg.success { background: #f0fff4; color: #276749; border: 1px solid #c6f6d5; display: block; }

.upload-msg { margin-top: .75rem; font-size: .9rem; display: none; }
.upload-msg.error { color: #c53030; display: block; }
.upload-msg.success { color: #276749; display: block; }

.empty { color: #a0aec0; text-align: center; padding: 2rem 0; }
.loading { color: #718096; text-align: center; padding: 3rem 0; }
.error-state { color: #c53030; text-align: center; padding: 3rem 0; }

/* =============================================================================
   TABLES
   ============================================================================= */
table { width: 100%; border-collapse: collapse; }

th {
  text-align: left;
  font-size: .78rem;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .5rem .75rem;
  border-bottom: 2px solid #e2e8f0;
}

td {
  padding: .75rem;
  font-size: .92rem;
  color: #1a202c;
  border-bottom: 1px solid #f0f4f8;
}

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

tbody tr { cursor: pointer; transition: background .15s; }
tbody tr:hover td { background: #f7f9ff; }

/* =============================================================================
   BADGES & BANNERS
   ============================================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}
.badge-accepted { background: #f0fff4; color: #276749; border: 1px solid #c6f6d5; }
.badge-pending  { background: #fffaf0; color: #744210; border: 1px solid #fbd38d; }

.accepted-banner {
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  color: #276749;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.info-banner {
  background: #ebf8ff;
  border: 1px solid #bee3f8;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  color: #2b6cb0;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.pending-banner {
  background: #fffaf0;
  border: 1px solid #fbd38d;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  color: #744210;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.ack-status {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}
.ack-yes     { background: #f0fff4; color: #276749; border: 1px solid #c6f6d5; }
.ack-no      { background: #fff5f5; color: #c53030; border: 1px solid #fed7d7; }
.ack-pending { background: #f7fafc; color: #718096; border: 1px solid #e2e8f0; }

/* =============================================================================
   PROGRESS BAR
   ============================================================================= */
.progress-bar-wrap { display: none; margin-top: 1rem; }
.progress-bar-track { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: #4f46e5; width: 0; transition: width .2s; }

/* =============================================================================
   DROP ZONE & FILE LIST (upload)
   ============================================================================= */
.drop-zone {
  border: 2px dashed #c3dafe;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: background .2s;
  background: #f7f9ff;
}
.drop-zone:hover, .drop-zone.drag-over { background: #eef2ff; border-color: #4f46e5; }
.drop-zone p { color: #718096; margin-bottom: .75rem; }
.drop-zone .hint { font-size: .8rem; color: #a0aec0; }

.file-list { margin-top: 1rem; }
.upload-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem .75rem;
  background: #f7f9ff;
  border-radius: 8px;
  margin-bottom: .4rem;
  font-size: .9rem;
  color: #1a202c;
}
.file-item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: .5rem; }
.file-item-size { color: #718096; font-size: .82rem; margin-right: .75rem; flex-shrink: 0; }

/* =============================================================================
   FILE ITEMS (receipt & detail cards)
   ============================================================================= */
.file-item {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.file-item:last-child { margin-bottom: 0; }

.file-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.file-icon { font-size: 1.4rem; flex-shrink: 0; }
.file-meta { flex: 1; min-width: 0; }
.file-name {
  font-weight: 600;
  color: #1a202c;
  font-size: .95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-size { font-size: .8rem; color: #718096; }

/* =============================================================================
   LEGAL CLAIM DETAILS
   ============================================================================= */
.lc-badge {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
  margin-bottom: 1rem;
}

.lc-section { margin-bottom: 1.25rem; }
.lc-section:last-child { margin-bottom: 0; }

.lc-section-title {
  font-size: .78rem;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}

.lc-row {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .35rem;
  font-size: .9rem;
}
.lc-label { color: #718096; min-width: 170px; flex-shrink: 0; font-size: .85rem; }
.lc-value { color: #1a202c; font-weight: 500; }

.lc-tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 5px;
  font-size: .78rem;
  font-weight: 600;
  background: #f0fff4;
  color: #276749;
  border: 1px solid #c6f6d5;
  margin-right: .3rem;
  margin-bottom: .2rem;
}
.lc-tag-no { background: #fff5f5; color: #c53030; border-color: #fed7d7; }

/* Pages where h1 sits directly above a .subtitle (smaller gap) */
.page-receipt h1,
.page-detail h1 { margin-bottom: .5rem; }

/* =============================================================================
   LOGIN PAGE (index.html)
   ============================================================================= */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-page .card {
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  margin-bottom: 0;
}

.login-page h1 { font-size: 1.8rem; color: #1a202c; margin-bottom: .25rem; }

.login-page .btn {
  width: 100%;
  padding: .8rem;
  font-size: 1rem;
}

.tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; }

.tab-btn {
  flex: 1;
  padding: .6rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 500;
  color: #718096;
  transition: all .2s;
}
.tab-btn.active { border-color: #4f46e5; color: #4f46e5; background: #eef2ff; }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* =============================================================================
   INFO ROWS (used in vezzel-detail.html and profile.html)
   Default is the flex layout used in vezzel-detail.html.
   Profile page overrides are scoped with .page-profile body class.
   ============================================================================= */
.info-row {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: .75rem;
}
.info-label {
  font-size: .8rem;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: .05em;
  min-width: 100px;
  flex-shrink: 0;
}
.info-value { font-size: .95rem; color: #1a202c; }

/* Profile page – stacked layout for info rows */
.page-profile .info-row { display: block; margin-bottom: 1.2rem; }
.page-profile .info-label { min-width: auto; flex-shrink: unset; }
.page-profile .info-value { font-size: 1rem; margin-top: .2rem; }

/* =============================================================================
   PROFILE PAGE (profile.html)
   ============================================================================= */
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1.5rem;
  color: #4f46e5;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

.comment-block { margin-top: .75rem; font-size: .88rem; color: #4a5568; }
.comment-block strong { color: #1a202c; }

.signature-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}
.signature-block strong {
  font-size: .85rem;
  color: #718096;
  font-weight: 600;
  display: block;
  margin-bottom: .5rem;
}
.signature-block img {
  max-width: 320px;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f7fafc;
  display: block;
}

/* =============================================================================
   RECEIPT PAGE (receipt.html)
   ============================================================================= */
.ack-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .75rem;
}
.ack-row input[type="checkbox"] {
  margin-top: .15rem;
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #4f46e5;
}
.ack-row label {
  font-size: .9rem;
  color: #4a5568;
  cursor: pointer;
  font-weight: 600;
}

.comment-label {
  font-size: .85rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: .35rem;
  display: block;
}

.sig-canvas-wrap {
  position: relative;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f7fafc;
  overflow: hidden;
  touch-action: none;
}
#sig-canvas { display: block; width: 100%; height: 160px; cursor: crosshair; }

.sig-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  color: #a0aec0;
  font-size: .9rem;
  pointer-events: none;
  user-select: none;
}
.sig-actions { display: flex; justify-content: flex-end; margin-top: .5rem; }

/* =============================================================================
   SEND VEZZEL PAGE (send-vezzel.html)
   ============================================================================= */
.label-muted { font-weight: 400; font-size: .85rem; color: #a0aec0; }
.link-primary { color: #4f46e5; }

/* =============================================================================
   DISPUTE PAGES
   ============================================================================= */

/* Badge for claim type */
.badge-claim {
  background: #f0e6ff;
  color: #6b21a8;
  padding: .2rem .6rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
}

/* Dispute phases timeline */
.phases-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dispute-phase {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  background: #f7fafc;
}

.dispute-phase.phase-active {
  border-color: #4f46e5;
  background: #f5f3ff;
}

.dispute-phase.phase-completed {
  border-color: #38a169;
  background: #f0fff4;
  opacity: .9;
}

.dispute-phase.phase-pending {
  opacity: .6;
}

.dispute-phase.phase-indeterminate {
  opacity: .85;
  background: #fffbeb;
  border-color: #f6e05e;
}

.phase-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}

.phase-icon { font-size: 1.4rem; }

.phase-title-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.phase-number {
  font-size: .75rem;
  font-weight: 700;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.phase-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a202c;
}

.phase-status-label {
  font-size: .75rem;
  color: #718096;
  background: #e2e8f0;
  padding: .1rem .5rem;
  border-radius: 9999px;
}

.phase-description {
  color: #4a5568;
  font-size: .9rem;
  margin-bottom: .75rem;
  line-height: 1.5;
}

.phase-deadline {
  font-size: .85rem;
  color: #dd6b20;
  margin-bottom: .75rem;
}

.phase-completed-info {
  background: #c6f6d5;
  border-radius: 6px;
  padding: .6rem 1rem;
  font-size: .9rem;
  color: #276749;
  margin-bottom: .75rem;
}

.phase-completed-at {
  font-size: .8rem;
  color: #4a5568;
  margin-left: .5rem;
}

.phase-evidence {
  margin: .75rem 0;
  font-size: .9rem;
}

.phase-evidence ul {
  list-style: none;
  margin-top: .4rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.phase-evidence li {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.phase-evidence a { color: #4f46e5; }

.evidence-size { font-size: .8rem; color: #a0aec0; }

/* Actions inside active phase */
.phase-actions {
  margin-top: 1rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

.phase-actions h4 {
  font-size: .9rem;
  color: #1a202c;
  margin-bottom: .75rem;
}

.action-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: .9rem 1rem;
  margin-bottom: .6rem;
}

.action-info strong { font-size: .9rem; color: #1a202c; }
.action-info p { font-size: .82rem; color: #718096; margin-top: .2rem; }

.btn-action {
  flex-shrink: 0;
  background: #4f46e5;
  color: #fff;
  border: none;
  padding: .45rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
}
.btn-action:hover { background: #4338ca; }

/* Evidence upload inside phase */
.evidence-upload {
  margin-top: 1rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

.evidence-upload h4 {
  font-size: .9rem;
  color: #1a202c;
  margin-bottom: .6rem;
}

.evidence-upload input[type="file"] {
  display: block;
  margin-bottom: .5rem;
  font-size: .9rem;
}

.btn-upload-evidence {
  background: #718096;
  color: #fff;
  border: none;
  padding: .4rem .9rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
}
.btn-upload-evidence:hover { background: #4a5568; }

.evidence-msg { font-size: .85rem; margin-top: .5rem; }

/* Claim summary pre */
.claim-summary {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  font-size: .9rem;
  white-space: pre-wrap;
  color: #2d3748;
  line-height: 1.6;
}

/* Resolve button */
.btn-resolve {
  background: #38a169;
}
.btn-resolve:hover { background: #276749; }

/* Resolution message in resolved banner */
.resolution-message {
  margin-top: .5rem;
  font-style: italic;
  font-size: .9rem;
  opacity: .9;
}

/* Open dispute section in vezzel-detail */
.dispute-section { margin-top: .5rem; }
.dispute-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
  border-bottom: 1px solid #f0f4f8;
}
.dispute-list-item:last-child { border-bottom: none; }

.btn-open-dispute {
  background: #e53e3e;
  color: #fff;
  border: none;
  padding: .5rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  margin-top: .75rem;
}
.btn-open-dispute:hover { background: #c53030; }

/* =============================================================================
   NOTIFICATION PHASE PAGE
   ============================================================================= */

/* Deadline countdown block */
.notif-deadline-block {
  background: #fffbeb;
  border: 1.5px solid #fbbf24;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
}

.notif-deadline-label {
  font-size: .85rem;
  font-weight: 600;
  color: #92400e;
  flex-basis: 100%;
}

.countdown-display {
  font-size: 1.6rem;
  font-weight: 700;
  color: #b45309;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.countdown-display.countdown-expired {
  color: #dc2626;
}

.notif-deadline-due {
  font-size: .8rem;
  color: #78716c;
}

/* Evidence list inside claim card */
.notif-evidence-list {
  list-style: none;
  padding: 0;
  margin: 0 0 .5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.notif-evidence-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
}

.notif-evidence-list a { color: #4f46e5; }

/* Remedies container */
.notif-remedies {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

/* Individual remedy option card */
.remedy-option {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.remedy-option-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
}

.remedy-icon { font-size: 1.2rem; }

.remedy-option-header strong {
  font-size: .95rem;
  color: #1a202c;
}

.remedy-desc {
  font-size: .88rem;
  color: #4a5568;
  margin-bottom: .9rem;
  line-height: 1.5;
}

.remedy-accept {
  border-color: #9ae6b4;
  background: #f0fff4;
}

/* Variant used when acceptanceTerms are shown as a list instead of toggleable panels */
.remedy-accept-terms {
  padding: 1.25rem;
}

.acceptance-terms-list {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  font-size: .9rem;
  color: #2d3748;
  line-height: 1.65;
}

.acceptance-terms-list li {
  margin-bottom: .35rem;
}

.remedy-deny {
  border-color: #feb2b2;
  background: #fff5f5;
}

/* Inline payment info when accepting with a price */
.payment-inline {
  background: #ebf8ff;
  border: 1px solid #bee3f8;
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: .9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.payment-label {
  font-size: .85rem;
  font-weight: 600;
  color: #2b6cb0;
}

.payment-amount {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2c5282;
}

.payment-note {
  font-size: .8rem;
  color: #4a5568;
  flex-basis: 100%;
}

/* Accept remedy button */
.btn-remedy-accept {
  background: #38a169;
}
.btn-remedy-accept:hover { background: #276749; }

/* Deny remedy button */
.btn-remedy-deny {
  background: #e53e3e;
}
.btn-remedy-deny:hover { background: #c53030; }

/* Escalate button (claimant no-response) */
.btn-escalate {
  background: #dd6b20;
}
.btn-escalate:hover { background: #c05621; }

/* Escalation section (claimant waiting) */
.notif-escalate-section {
  margin-top: 1rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

/* Response summary (after recipient has responded) */
.response-summary {
  background: #f7fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.response-summary-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: .4rem;
}

.response-summary-header strong {
  font-size: .95rem;
}

/* Counter-statement display */
.counter-statement-view {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-top: .75rem;
  font-size: .9rem;
  color: #2d3748;
  line-height: 1.5;
}

.counter-statement-view strong {
  display: block;
  font-size: .82rem;
  color: #718096;
  margin-bottom: .35rem;
}

.counter-statement-view p {
  white-space: pre-wrap;
}

/* Payment acknowledged view */
.payment-acknowledged-view {
  background: #ebf8ff;
  border: 1px solid #bee3f8;
  border-radius: 8px;
  padding: .6rem 1rem;
  margin-top: .75rem;
  font-size: .88rem;
  color: #2b6cb0;
}

/* Deadline expired response body */
.deadline-expired-section {
  text-align: center;
  padding: 2rem 1rem;
}

.deadline-expired-icon {
  font-size: 2rem;
  margin-bottom: .5rem;
}

.deadline-expired-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: .4rem;
}

.deadline-expired-when {
  font-size: .85rem;
  color: #718096;
  margin: 0;
}

.deadline-expired-desc {
  font-size: .9rem;
  color: #4a5568;
  margin: .25rem 0;
}

/* Recipient response question */
.notif-response-question {
  font-size: 1rem;
  font-weight: 600;
  color: #1a202c;
  margin: .5rem 0 1rem;
}

/* Accordion panel toggle button */
.remedy-panel-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .6rem;
  text-align: left;
}

.remedy-panel-toggle strong {
  font-size: .95rem;
  color: #1a202c;
  flex: 1;
}

.remedy-toggle-hint {
  font-size: .78rem;
  color: #a0aec0;
  font-weight: 400;
}

.remedy-selected .remedy-toggle-hint {
  display: none;
}

/* Accordion body – hidden by default, shown when open */
.remedy-panel-body {
  display: none;
}

.remedy-panel-body.panel-open {
  display: block;
  margin-top: .5rem;
}

/* Selected remedy option gets a stronger border */
.remedy-accept.remedy-selected {
  border-color: #38a169;
  box-shadow: 0 0 0 2px rgba(56, 161, 105, .15);
}

.remedy-deny.remedy-selected {
  border-color: #e53e3e;
  box-shadow: 0 0 0 2px rgba(229, 62, 62, .15);
}

/* Reject escalation warning */
.reject-escalation-warning {
  background: #fffbeb;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .85rem;
  color: #92400e;
  margin-bottom: .9rem;
  line-height: 1.5;
}


/* ── Real-time notification toasts ─────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: #1a202c;
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
  max-width: 320px;
}

.toast.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================================
   SETTLEMENT PANEL
   ============================================================================= */

.settlement-panel {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.settlement-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
}

.settlement-header strong {
  font-size: .95rem;
  color: #14532d;
}

.settlement-desc {
  font-size: .87rem;
  color: #4a5568;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.settlement-terms {
  margin-bottom: 1rem;
}

.settlement-terms strong {
  font-size: .88rem;
  color: #2d3748;
  display: block;
  margin-bottom: .4rem;
}

.settlement-actions {
  margin-top: 1rem;
}

.btn-settlement-accept {
  background: #16a34a;
}
.btn-settlement-accept:hover { background: #15803d; }

.settlement-msg {
  font-size: .85rem;
  margin-top: .5rem;
}

/* Payment method selector inside settlement panel */
.payment-method-selector {
  margin-bottom: 1rem;
}

.payment-method-label {
  font-size: .88rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: .5rem;
}

.payment-method-options {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.payment-method-option {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .9rem;
  border: 1.5px solid #cbd5e0;
  border-radius: 8px;
  cursor: pointer;
  font-size: .9rem;
  background: #fff;
  transition: border-color .15s, background .15s;
}

.payment-method-option:hover {
  border-color: #4f46e5;
  background: #f5f3ff;
}

.payment-method-option input[type="radio"] {
  accent-color: #4f46e5;
}

.payment-method-option:has(input:checked) {
  border-color: #4f46e5;
  background: #eef2ff;
}

.payment-method-icon {
  font-size: 1.1rem;
}

/* =============================================================================
   PAYMENT PROCESSOR PAGE
   ============================================================================= */

.payment-processor-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.payment-processor-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .07);
}

.payment-processor-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.payment-processor-logo {
  font-size: 2.5rem;
  margin-bottom: .4rem;
}

.payment-processor-title {
  font-size: 1.4rem;
  color: #1a202c;
  margin-bottom: .2rem;
}

.payment-processor-subtitle {
  font-size: .88rem;
  color: #718096;
}

.payment-processor-notice {
  background: #fffbeb;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .85rem;
  color: #92400e;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.payment-processor-details {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.payment-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  gap: .75rem;
}

.payment-detail-row:last-child {
  border-bottom: none;
}

.payment-detail-label {
  font-size: .82rem;
  color: #718096;
  font-weight: 600;
  white-space: nowrap;
}

.payment-detail-value {
  font-size: .9rem;
  color: #2d3748;
  text-align: right;
  word-break: break-all;
}

.payment-amount-large {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c5282;
}

.payment-processor-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.btn-payment-complete {
  width: 100%;
  padding: .75rem;
  font-size: 1rem;
}

.btn-payment-reject {
  width: 100%;
  padding: .7rem;
  background: none;
  border: 1.5px solid #e53e3e;
  border-radius: 8px;
  color: #e53e3e;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.btn-payment-reject:hover {
  background: #fff5f5;
  color: #c53030;
  border-color: #c53030;
}

.payment-processor-msg {
  text-align: center;
  font-size: .9rem;
  margin-top: 1rem;
  min-height: 1.2em;
}

/* Subtle detail rows (secondary/reference info) */
.payment-detail-row-subtle {
  background: #f7fafc;
}

.payment-detail-mono {
  font-family: 'Courier New', Courier, monospace;
  font-size: .83rem;
  letter-spacing: .03em;
}


/* =============================================================================
   NEGOTIATE PANEL
   ============================================================================= */

.negotiate-panel {
  background: #f0f4ff;
  border: 1.5px solid #a5b4fc;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.negotiate-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}

.negotiate-header strong {
  font-size: .95rem;
  color: #1e1b4b;
}

/* Two-column layout */
.negotiate-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

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

.negotiate-col {
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: .9rem 1rem;
}

.negotiate-col h5 {
  font-size: .82rem;
  font-weight: 700;
  color: #3730a3;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 .6rem;
}

.negotiate-col-claimee h5 {
  color: #7c3aed;
}

.negotiate-claims-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
  font-size: .88rem;
  color: #2d3748;
  line-height: 1.6;
}

/* Offer pane */
.negotiate-offer-pane {
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: .9rem 1rem;
  margin-bottom: 1rem;
}

.negotiate-offer-pane h5 {
  font-size: .82rem;
  font-weight: 700;
  color: #3730a3;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 .6rem;
}

.negotiate-current-offer {
  font-size: .9rem;
  color: #2d3748;
}

/* Action buttons row */
.negotiate-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.btn-accept-offer {
  background: #16a34a;
}
.btn-accept-offer:hover { background: #15803d; }

/* Event log */
.negotiate-event-log {
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: .9rem 1rem;
}

.negotiate-event-log h5 {
  font-size: .82rem;
  font-weight: 700;
  color: #3730a3;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 .6rem;
}

.negotiate-log-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .88rem;
  color: #2d3748;
}

.negotiate-log-list li {
  padding: .35rem 0;
  border-bottom: 1px dashed #e2e8f0;
  line-height: 1.5;
}

.negotiate-log-list li:last-child {
  border-bottom: none;
}

/* =============================================================================
   MODAL (Propose Offer)
   ============================================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem;
  width: min(480px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
}

.modal-box h4 {
  font-size: 1.05rem;
  color: #1a202c;
  margin: 0 0 1.25rem;
}

.modal-section {
  margin-bottom: 1.1rem;
}

.modal-section label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: .4rem;
}

.modal-input {
  width: 100%;
  padding: .6rem .8rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: .9rem;
  box-sizing: border-box;
  color: #1a202c;
}

.modal-input:focus {
  outline: none;
  border-color: #818cf8;
}

.modal-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.offer-terms-list {
  list-style: none;
  padding: 0;
  margin: .4rem 0 0;
}

.offer-terms-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .35rem .5rem;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: .35rem;
  font-size: .88rem;
  color: #2d3748;
}

.btn-remove-term {
  background: none;
  border: none;
  color: #e53e3e;
  cursor: pointer;
  font-size: .95rem;
  padding: .1rem .3rem;
  border-radius: 4px;
  line-height: 1;
}

.btn-remove-term:hover {
  background: #fff5f5;
}

.payment-success-card {
  border-color: #86efac;
}

.payment-success-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.payment-success-icon {
  font-size: 2.5rem;
  margin-bottom: .4rem;
}

/* Payment receipt block */
.payment-receipt {
  margin-bottom: 1.5rem;
}

.payment-receipt-title {
  font-size: .95rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid #e2e8f0;
}

.payment-receipt-ref-block {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: .9rem 1rem;
  margin-top: .75rem;
}

.payment-receipt-ref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .35rem 0;
  gap: .75rem;
  border-bottom: 1px dashed #e2e8f0;
}

.payment-receipt-ref-row:last-child {
  border-bottom: none;
}

.payment-receipt-ref-label {
  font-size: .8rem;
  color: #718096;
  font-weight: 600;
  white-space: nowrap;
}

.payment-receipt-ref-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: .82rem;
  color: #2d3748;
  font-weight: 700;
  text-align: right;
  word-break: break-all;
}

.payment-receipt-note {
  font-size: .82rem;
  color: #718096;
  margin-top: .75rem;
  text-align: center;
  line-height: 1.5;
}

/* "Return to Dispute" link styled as button */
.payment-processor-actions .btn-action {
  display: block;
  text-align: center;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}
