* { box-sizing: border-box; margin: 0; }
body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f5f4fa;
  color: #1a202c;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, #5a4bb5 0%, #4a3b8c 100%);
  color: #fff; padding: 1rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
header h1 { font-size: 1.4rem; display: flex; align-items: center; gap: .5rem; }
.logo-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 2px solid #4a3b8c; font-size: 17px;
}
#user-badge { display: flex; gap: .8rem; align-items: center; font-size: .9rem; }
.header-right { display: flex; gap: 1rem; align-items: center; }
#guest-nav { display: flex; gap: .6rem; align-items: center; }
#guest-nav .small {
  background: none; border: none; color: #d9d2f5; font-size: .95rem;
  text-decoration: underline; text-underline-offset: 3px; padding: .3rem .4rem;
  border-radius: 4px; cursor: pointer;
}
#guest-nav .small:hover { color: #fff; background: rgba(255,255,255,.15); text-decoration: none; }

main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }

.hero { text-align: center; padding: 3rem 1rem; }
.hero h2 { font-size: 2.2rem; line-height: 1.2; color: #32276e; }
.hero .accent { color: #6b54d8; }
.tagline { margin: 1rem auto 1.5rem; max-width: 520px; color: #4a5568; }
.cta-row { display: flex; gap: .8rem; justify-content: center; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.how-card { text-align: left; max-width: 560px; margin: 2rem auto 0; }
.how-card ol { padding-left: 1.4rem; display: grid; gap: .5rem; color: #3d4663; }

button {
  background: #4a3b8c; color: #fff; border: none; border-radius: 8px;
  padding: .6rem 1.1rem; font-size: .95rem; cursor: pointer;
}
button:hover { background: #3d2f75; }
button.ghost-btn { background: transparent; border: 1px solid #4a3b8c; color: #4a3b8c; }
button.ghost-btn:hover { background: #ece8f8; }
button.danger { background: #b8324f; }
button.danger:hover { background: #99263e; }
button.small { padding: .35rem .7rem; font-size: .82rem; border-radius: 6px; }
button:disabled { opacity: .5; cursor: not-allowed; }

#tabs { display: flex; gap: .4rem; margin-bottom: 1rem; border-bottom: 2px solid #e3e0f2; }
.tab {
  background: none; color: #6b6590; border: none; border-bottom: 3px solid transparent;
  border-radius: 0; padding: .7rem 1.1rem; font-size: 1rem;
}
.tab.on { color: #4a3b8c; border-bottom-color: #4a3b8c; font-weight: 600; }
.tab:hover { background: none; color: #4a3b8c; }

.card {
  background: #fff; border: 1px solid #e3e0f2; border-radius: 12px;
  padding: 1.2rem; margin-bottom: 1.1rem;
  box-shadow: 0 1px 4px rgba(74,59,140,.06);
}
.card h3 { margin-bottom: .8rem; color: #32276e; font-size: 1.05rem; }
.card h3 .small { float: right; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
input, select, textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid #cfc8e8; border-radius: 8px;
  font-size: .95rem; background: #fff; color: #1a202c;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #b8a9ee; border-color: #8d78d6; }
textarea { margin-top: .6rem; min-height: 70px; resize: vertical; }
.row { display: flex; gap: .8rem; align-items: center; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid #e3e0f2; }
.muted { color: #8a87a3; font-size: .88rem; }
.small { font-size: .82rem; }

.list-item {
  border: 1px solid #ece9f7; border-radius: 10px; padding: .8rem;
  margin-top: .7rem; display: flex; justify-content: space-between;
  align-items: center; gap: .8rem; flex-wrap: wrap;
}
.list-item .meta { font-size: .85rem; color: #6b6590; }
.badge {
  display: inline-block; padding: .15rem .6rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
}
.badge.PENDING { background: #fef3c7; color: #92400e; }
.badge.APPROVED, .badge.READY { background: #d1fae5; color: #065f46; }
.badge.REJECTED, .badge.UPLOADING { background: #fee2e2; color: #991b1b; }

video { max-width: 100%; border-radius: 10px; background: #000; margin-top: .5rem; }
#rec-preview { width: 100%; max-height: 320px; }

.modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(20,16,45,.5);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-card { position: relative; max-width: 420px; width: 100%; }
.modal-x {
  position: absolute; top: .6rem; right: .7rem; background: none; border: none;
  font-size: 1.1rem; color: #8a87a3; cursor: pointer; padding: .2rem .4rem;
}
.modal-x:hover { color: #1a202c; background: none; }

.claim-card { cursor: pointer; }
.claim-card:hover { border-color: #b8a9ee; }
.tag-chip {
  display: inline-block; background: #ece8f8; color: #4a3b8c;
  border-radius: 999px; padding: .15rem .6rem; font-size: .78rem; margin: .15rem .2rem 0 0;
}
a { color: #4a3b8c; }

.demo-users { max-width: 560px; margin: 1.5rem auto 0; text-align: left; }
.demo-users summary { cursor: pointer; font-weight: 600; color: #32276e; }
.demo-table { width: 100%; border-collapse: collapse; margin-top: .8rem; }
.demo-table td { padding: .4rem .3rem; border-top: 1px solid #ece9f7; font-size: .9rem; }
