:root {
  --sea-deep: #063a5e;
  --sea: #0e6ba8;
  --sea-light: #4ea8de;
  --sun: #ffb703;
  --sun-dark: #fb8500;
  --foam: #f4faff;
  --ink: #0a2540;
  --gray: #6b7c93;
  --ok: #2a9d8f;
  --danger: #e63946;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(6, 58, 94, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, var(--foam) 0%, #eaf4fb 100%);
  color: var(--ink);
  min-height: 100vh;
}

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 0 48px;
}

header.top {
  background: linear-gradient(135deg, var(--sea-deep), var(--sea));
  color: white;
  padding: 28px 20px 20px;
  border-radius: 0 0 24px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 10px 18px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  margin-bottom: 12px;
}

.brand-badge img {
  height: 60px;
  width: auto;
  display: block;
}

header.top h1 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}

header.top h1 .wave { display: inline-block; animation: bob 2.2s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(8deg); }
}

header.top p {
  margin: 6px 0 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

nav.tabs {
  display: flex;
  gap: 8px;
  margin: 18px 16px 0;
  background: white;
  padding: 6px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

nav.tabs button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.15s ease;
}

nav.tabs button.active {
  background: var(--sea);
  color: white;
}

main { padding: 18px 16px; }

.panel { display: none; }
.panel.active { display: block; }

.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
}

.request-card { position: relative; overflow: hidden; }

.request-card .badge-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--foam);
  border: 1px solid #d7ebf9;
  color: var(--sea-deep);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.request-card .emoji-big { font-size: 1.3rem; }

.request-card h3 {
  margin: 4px 0 10px;
  font-size: 1.15rem;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.stat {
  background: var(--foam);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat strong { color: var(--sea-deep); }

.notes {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 8px 0 14px;
  font-style: italic;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: linear-gradient(135deg, var(--sun-dark), var(--sun)); color: var(--ink); }
.btn-secondary { background: var(--sea); color: white; }
.btn-ghost { background: transparent; color: var(--sea); border: 2px solid var(--sea); }
.btn-accept { background: var(--ok); color: white; }
.btn-small { width: auto; padding: 8px 14px; font-size: 0.85rem; }

.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

form .field { margin-bottom: 14px; }

form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--sea-deep);
}

form input, form select, form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid #dbe8f2;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
}

form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--sea-light);
}

.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }

.privacy-note {
  font-size: 0.8rem;
  color: var(--gray);
  background: var(--foam);
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray);
}

.empty-state .emoji-huge { font-size: 3rem; display: block; margin-bottom: 10px; }

.interest-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--foam);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.interest-item .msg { font-size: 0.88rem; color: var(--ink); }
.interest-item .status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.status-pill.pending { background: #fff3cd; color: #8a6d00; }
.status-pill.accepted { background: #d4f4ee; color: var(--ok); }
.status-pill.rejected { background: #fde2e4; color: var(--danger); }

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  z-index: 100;
  max-width: 90%;
  text-align: center;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 58, 94, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}

.modal {
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 22px 20px 30px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
}

.modal h3 { margin-top: 0; }

.token-box {
  background: var(--foam);
  border: 2px dashed var(--sea-light);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  margin: 14px 0;
  word-break: break-all;
  font-weight: 700;
  color: var(--sea-deep);
}

.demo-banner {
  background: var(--sun);
  color: var(--ink);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px;
}

.footer-link {
  text-align: center;
  margin-top: 20px;
}

.footer-link a { color: var(--sea); font-size: 0.85rem; text-decoration: none; }

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1.5px solid #dbe8f2;
  background: white;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover {
  border-color: var(--sea-light);
}

.chip.selected {
  background: var(--sea);
  border-color: var(--sea);
  color: white;
}

.accordion-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px 18px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  margin: 18px 0 10px;
}

.accordion-toggle .chevron {
  transition: transform 0.15s ease;
  color: var(--sea);
}

.accordion-toggle.collapsed .chevron {
  transform: rotate(-90deg);
}

.accordion-body.collapsed {
  display: none;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
}

.btn-delete {
  background: var(--danger);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-delete-armed {
  background: #8a0f18;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.3);
}

.admin-notes {
  margin-top: 10px;
}

.admin-notes textarea {
  width: 100%;
  border-radius: 10px;
  border: 1.5px solid #dbe8f2;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
}

.btn-save-notes {
  margin-top: 6px;
  background: var(--sea);
  color: white;
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
