/* Frontline Proposal Acceptance Page — v2 */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0f2439 0%, #1a3a5c 40%, #234e78 100%);
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.container {
  max-width: 520px;
  width: 100%;
}

.header {
  text-align: center;
  margin-bottom: 32px;
}

.header img {
  max-width: 260px;
  height: auto;
  filter: brightness(0) invert(1);
}

.header .subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
  letter-spacing: 0.3px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.1);
  padding: 48px 40px;
  text-align: center;
  animation: fadeUp 0.5s ease-out;
}

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

/* Success state */
.success-card .success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(22,163,74,0.3);
  animation: scaleIn 0.4s ease-out 0.2s both;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.success-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 12px;
}

.success-card p {
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto;
}

/* Error / expired states */
.expired-card .error-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #f87171, #dc2626);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(220,38,38,0.3);
}

.expired-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 12px;
}

.expired-card p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
}

.expired-card a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.expired-card a:hover {
  text-decoration: underline;
}

/* Items table (for future use) */
.items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.items-table thead th {
  background: #f8fafc;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e2e8f0;
}

.items-table thead th.right { text-align: right; }
.items-table tbody td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.items-table tbody td.right { text-align: right; font-variant-numeric: tabular-nums; }
.items-table tbody tr:last-child td { border-bottom: none; }

.total-row { background: #1a3a5c; color: #fff; }
.total-row td { font-size: 16px; font-weight: 700; padding: 14px 12px; color: #fff !important; border: none !important; }

.footer {
  text-align: center;
  padding: 24px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

@media (max-width: 600px) {
  body { padding: 24px 16px; }
  .card { padding: 36px 24px; }
  .header img { max-width: 200px; }
  .success-card h2 { font-size: 20px; }
  .success-card p { font-size: 15px; }
}
