:root{
  --bg1:#f6fbff;
  --bg2:#eef6ff;

  --card: rgba(255,255,255,.78);
  --card2: rgba(255,255,255,.62);

  --text:#101827;
  --muted:#5b6476;

  --border: rgba(210, 220, 235, .85);
  --shadow: 0 18px 55px rgba(15, 25, 45, .14);
  --shadow2: 0 10px 30px rgba(15, 25, 45, .10);

  --radius:20px;

  --primary:#111827;
  --primary2:#2b2f3a;

  --ring: rgba(59,130,246,.18);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  min-height:100vh;
  overflow-x:hidden;
}

/* ===== Fundo com foto + overlay suave azul ===== */
.bg{
  position:fixed; inset:0;
  background:
    linear-gradient(180deg, rgba(240,248,255,.85), rgba(240,248,255,.65)),
    radial-gradient(1000px 420px at 20% 10%, rgba(147,197,253,.22), transparent 60%),
    radial-gradient(900px 420px at 85% 20%, rgba(191,219,254,.18), transparent 60%),
    radial-gradient(850px 420px at 50% 95%, rgba(219,234,254,.18), transparent 60%),
    url("bg-casamento.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: saturate(1.05);
  pointer-events:none;
}

/* Glass feel geral */
.container{
  width:min(980px, 92vw);
  margin: 28px auto 40px;
  position:relative;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

/* ===== Hero com cara de convite ===== */
.hero{
  padding: 22px 22px 16px;
  position: relative;
  overflow: hidden;
}

.hero-cover{
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.60));
}

.hero-glow{
  position:absolute; inset:-40px;
  background:
    radial-gradient(520px 220px at 18% 0%, rgba(147,197,253,.32), transparent 60%),
    radial-gradient(520px 220px at 88% 10%, rgba(191,219,254,.24), transparent 62%),
    radial-gradient(700px 260px at 50% 115%, rgba(219,234,254,.22), transparent 60%);
  pointer-events:none;
}

.hero-top{
  position: relative;
  display:flex;
  gap:18px;
  align-items:flex-start;
  justify-content:space-between;
}

.eyebrow{
  margin:0;
  color:var(--muted);
  font-size:.95rem;
  letter-spacing:.02em;
}

h1{
  margin:6px 0 6px;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing:-.03em;
  line-height:1.05;
}

.subtitle{
  margin:0;
  color:var(--muted);
  max-width:60ch;
}

.datebox{
  flex:0 0 auto;
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px 16px;
  text-align:center;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow2);
}

.date{ font-size:1.9rem; font-weight:900; line-height:1; }
.month{ font-weight:800; color:var(--primary2); }
.year{ font-size:.9rem; color:var(--muted); }

/* ===== Info cards ===== */
.info{
  position: relative;
  margin-top:16px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}

.info-item{
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px 12px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow2);
}

.label{
  display:block;
  font-size:.82rem;
  color:var(--muted);
}

.value{
  display:block;
  font-weight:750;
  margin-top:4px;
}

.divider{
  height:1px;
  background: rgba(210, 220, 235, .95);
  margin:16px 0;
}

.msg{
  position: relative;
}
.msg h2{
  margin:0 0 6px;
  font-size:1.2rem;
  letter-spacing:-.01em;
}
.msg p{
  margin:0;
  color:var(--muted);
}

/* ===== Toolbar + busca ===== */
.toolbar{
  padding:14px;
  display:flex;
  gap:10px;
  align-items:center;
}

.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  outline:none;
  background: rgba(255,255,255,.92);
  font-size:1rem;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.input:focus{
  border-color: rgba(59,130,246,.35);
  box-shadow: 0 0 0 4px var(--ring);
}

/* Botões mais “premium” */
.btn{
  border:none;
  border-radius:14px;
  padding:12px 14px;
  background: linear-gradient(180deg, #111827, #0b1220);
  color:#fff;
  font-weight:800;
  cursor:pointer;
  transition: transform .08s ease, opacity .12s ease, box-shadow .12s ease;
  white-space:nowrap;
  box-shadow: 0 10px 22px rgba(15, 25, 45, .18);
}
.btn:active{ transform: scale(.98); }
.btn:hover{ box-shadow: 0 14px 28px rgba(15, 25, 45, .22); }

.btn.ghost{
  background: rgba(255,255,255,.68);
  color: var(--primary);
  border:1px solid var(--border);
  box-shadow: none;
}
.btn.ghost:hover{
  box-shadow: 0 10px 22px rgba(15, 25, 45, .12);
}

/* ===== Grid de presentes ===== */
.grid{
  padding: 0 14px 16px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}

.item{
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px;
  background: rgba(255,255,255,.92);
  display:flex;
  flex-direction:column;
  gap:8px;
  box-shadow: var(--shadow2);
  transition: transform .12s ease, box-shadow .12s ease;
}
.item:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 25, 45, .14);
}

.item h4{ margin:0; font-size:1.06rem; letter-spacing:-.01em; }
.item p{ margin:0; color:var(--muted); font-size:.95rem; min-height:2.2em; }

.badge{
  align-self:flex-start;
  font-size:.78rem;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  color: #41506b;
  background: rgba(239,246,255,.9);
}

.badge.reserved{
  color:#6b7280;
  background: rgba(244,244,245,.9);
}

.item .actionsRow{
  margin-top:8px;
  display:flex;
  gap:10px;
}
.item button{ width:100%; }

.item.reserved{
  opacity:.72;
}
.item.reserved .btn{
  opacity:.55;
  cursor:not-allowed;
}

/* ===== Empty + hidden ===== */
.empty{
  padding: 6px 14px 18px;
  color:var(--muted);
}
.hidden{ display:none !important; }

/* ===== Footer ===== */
.footer{
  margin-top:14px;
  text-align:center;
  color: rgba(75, 85, 99, .92);
}

/* ===== Modal ===== */
.modal{
  position:fixed; inset:0;
  background: rgba(10,10,20,.42);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.modal-card{
  width:min(520px, 96vw);
  background: rgba(255,255,255,.94);
  border-radius:18px;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  padding:16px;
  backdrop-filter: blur(10px);
}

.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.icon-btn{
  border:1px solid var(--border);
  background: rgba(255,255,255,.7);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
}
.icon-btn:hover{
  box-shadow: 0 10px 18px rgba(15, 25, 45, .12);
}

.modal-item{
  margin:10px 0 12px;
  color:var(--muted);
}

.form{ display:flex; flex-direction:column; gap:10px; }
.field span{ display:block; font-size:.85rem; color:var(--muted); margin-bottom:6px; }
.actions{ display:flex; gap:10px; margin-top:6px; }
.actions .btn{ flex:1; }
.hint{ margin:8px 0 0; font-size:.88rem; color:var(--muted); }

/* ===== Toast ===== */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(520px, 92vw);
  background: rgba(17,24,39,.96);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 16px 38px rgba(0,0,0,.22);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-6px);
}
.toast .tmsg{ font-size: .95rem; line-height: 1.25rem; }
.toast .tbtn{
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

/* ===== Responsivo ===== */
@media (max-width: 860px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .info{ grid-template-columns: 1fr; }
  .hero-top{ flex-direction:column; align-items:flex-start; }
}
@media (max-width: 520px){
  .grid{ grid-template-columns: 1fr; }
}
