/* style.css - maroon/purple + soft white */
:root{
  --bg0:#0b0710;
  --bg1:#120a1c;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.12);
  --text:#f6f2ff;
  --muted: rgba(246,242,255,.72);

  --accent1:#6b1a7a; /* purple */
  --accent2:#7a1538; /* maroon */
  --accent3:#caa9ff; /* lavender */

  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 26px;
  --max: 1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(1000px 700px at 10% 0%, rgba(107,26,122,.35), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(122,21,56,.35), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(202,169,255,.18), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }

.wrap{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.topbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  position: sticky; top: 14px; z-index: 10;
}

.brand{ display:flex; align-items:center; gap:12px; }
.logo{
  width:44px; height:44px; border-radius:16px;
  background:
    radial-gradient(circle at 35% 30%, rgba(202,169,255,.9), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(122,21,56,.9), transparent 60%),
    linear-gradient(135deg, rgba(107,26,122,.95), rgba(122,21,56,.95));
  border:1px solid rgba(255,255,255,.16);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  position:relative;
}
.logo::after{
  content:"❤"; position:absolute; inset:0; display:grid; place-items:center;
  font-size:18px; color:rgba(255,255,255,.92);
  text-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.brand h1{ margin:0; font-size:14px; letter-spacing:.12em; text-transform:uppercase; }
.brand p{ margin:2px 0 0; font-size:12px; color:var(--muted); }

nav{ display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.chip{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  font-size:12px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.chip:hover{ transform:translateY(-1px); background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.18); }

.hero{
  margin-top: 22px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}
@media (max-width: 920px){
  .hero{ grid-template-columns: 1fr; }
  nav{ justify-content:flex-start; }
}

.heroCard,.sideCard,section,.card{
  border-radius: var(--radius2);
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.heroCard{
  padding: 22px;
  position:relative;
  overflow:hidden;
}
.heroTitle{
  font-size: clamp(30px, 3.6vw, 54px);
  line-height:1.05;
  margin: 0 0 10px;
  letter-spacing:-.02em;
}
.heroTitle span{
  background: linear-gradient(90deg, rgba(202,169,255,.95), rgba(255,255,255,.92), rgba(255,184,214,.92));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.sub{ margin:0 0 16px; color:var(--muted); font-size:14px; }

.heroActions{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px; }

.btn{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(246,242,255,.95);
  padding:10px 12px;
  border-radius: 14px;
  cursor:pointer;
  font-weight:700;
  font-size: 13px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); }
.btn.primary{
  background: linear-gradient(135deg, rgba(107,26,122,.55), rgba(122,21,56,.55));
  border-color: rgba(202,169,255,.18);
}
.btn.primary:hover{ background: linear-gradient(135deg, rgba(107,26,122,.7), rgba(122,21,56,.7)); }
.btn.mini{ padding:8px 10px; border-radius:12px; font-size:12px; }

.sideCard{ padding: 18px; }
.sideCard h3{ margin:0 0 8px; font-size: 15px; }
.meter{ margin-top: 12px; border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); border-radius: 16px; padding: 12px; }
.meterTop{ display:flex; align-items:center; justify-content:space-between; gap:10px; color: var(--muted); font-size:12px; margin-bottom:10px;}
.bar{ height:12px; border-radius:999px; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); overflow:hidden; }
.fill{ height:100%; width:72%; background: linear-gradient(90deg, rgba(122,21,56,.9), rgba(107,26,122,.9), rgba(202,169,255,.85)); border-radius:999px; transition: width .35s ease; }
.meterActions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.saveHint{ color: var(--muted); font-size: 11px; margin-top:8px; }
kbd{ border:1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); padding:2px 7px; border-radius:8px; font-size: 11px; }

section{ margin-top: 18px; overflow:hidden; background: rgba(255,255,255,.035); }
.sectionHead{
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.sectionHead h2{ margin:0; font-size:16px; }
.sectionHead p{ margin:6px 0 0; color: var(--muted); font-size: 12px; max-width: 70ch; }
.sectionBody{ padding: 16px 18px 18px; }

.panel{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  padding: 14px;
}

.row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.uploadRow{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom: 12px; }
.input{
  flex: 1 1 220px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.15);
  color: rgba(246,242,255,.95);
  padding: 10px 12px;
  border-radius: 14px;
  outline:none;
}
.input::placeholder{ color: rgba(246,242,255,.45); }

.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 920px){ .grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .grid{ grid-template-columns: 1fr; } }

.ph{
  position:relative;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  overflow:hidden;
  min-height: 140px;
}
.ph img{ width:100%; height:100%; object-fit:cover; display:block; min-height:140px; }
.phTools{ position:absolute; top:8px; right:8px; }

.list{ margin-top: 12px; display:flex; flex-direction:column; gap:10px; }
.item{
  display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
  padding: 10px 10px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}
.inline{ display:inline; margin:0; }
.trash,.checkBtn{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(246,242,255,.9);
  padding: 7px 10px;
  border-radius: 12px;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease;
}
.trash:hover,.checkBtn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.07); }
.checkBtn{ padding: 7px 10px; }

.wishLeft{ display:flex; gap:10px; }
.wishText{ font-weight: 800; line-height: 1.25; }
.wishText.done{ opacity: .65; text-decoration: line-through; text-decoration-thickness: 2px; }
.txt small{ display:block; margin-top: 3px; color: var(--muted); font-size: 11px; }

.chatWindow{
  height: 340px;
  overflow:auto;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.15);
  padding: 12px;
  margin-bottom: 10px;
}
.chatMsg{
  padding: 10px 10px;
  border-radius: 14px;
  margin-bottom: 10px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.chatMsg.mine{ border-color: rgba(202,169,255,.28); background: rgba(202,169,255,.08); }
.chatMsg .meta{ display:flex; justify-content:space-between; gap:10px; color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.chatMsg .body{ white-space: pre-wrap; word-break: break-word; }

.modal{
  position:fixed; inset:0; background: rgba(0,0,0,.6);
  display:none; align-items:center; justify-content:center;
  padding: 22px; z-index: 99;
}
.modal.open{ display:flex; }
.modalCard{
  width: min(920px, 100%);
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.16);
  background: rgba(15,10,22,.92);
  box-shadow: 0 26px 90px rgba(0,0,0,.6);
  overflow:hidden;
}
.modalTop{
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
}
.close{
  padding: 8px 10px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  cursor:pointer;
  color: rgba(246,242,255,.9);
}
.viewer{ padding: 18px; display:grid; place-items:center; min-height: 360px; }
.viewer img{
  max-width:100%; max-height:70vh;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}

.alert{
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(246,242,255,.92);
}

.card{ padding: 18px; margin-top: 22px; }
.card.center{ max-width: 520px; margin: 32px auto 0; }
.form{ margin-top: 10px; }
.lbl{ display:block; color: var(--muted); font-size: 12px; margin: 10px 0 6px; }

footer{
  margin-top: 18px;
  color: rgba(246,242,255,.6);
  font-size: 12px;
  text-align:center;
  padding: 12px 0 0;
}

/* Floating hearts */
.float{ position: fixed; inset:0; pointer-events:none; overflow:hidden; z-index: 50; display:none; }
.float.on{ display:block; }
.heart{
  position:absolute;
  font-size:18px;
  opacity:0;
  transform: translateY(20px) scale(.9);
  animation: rise 2.6s ease forwards;
  text-shadow: 0 10px 25px rgba(0,0,0,.5);
}
@keyframes rise{
  0%{ opacity:0; transform: translateY(22px) scale(.9); }
  15%{ opacity:.95; }
  100%{ opacity:0; transform: translateY(-260px) scale(1.15); }
}


.chatActions{ display:flex; gap:8px; justify-content:flex-end; margin-top:8px; }
.chatBtn{ border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: rgba(246,242,255,.92); padding:6px 10px; border-radius: 12px; cursor:pointer; font-weight:700; font-size:12px; }
.chatBtn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.07); }

.meterMeta{ margin-top:10px; color: rgba(246,242,255,.72); font-size: 11px; }

.loveMessage {
  margin: 60px 0;
  display: flex;
  justify-content: center;
}

.loveCard {
  background: linear-gradient(135deg, #3a0d3f, #5e1a6e);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 700px;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  animation: fadeIn 1.2s ease-in-out;
}

.loveCard h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.loveCard p {
  font-size: 18px;
  line-height: 1.6;
}

.loveSignature {
  margin-top: 20px;
  font-style: italic;
  opacity: 0.85;
}

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



.loveImgWrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.loveImg {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ff8efb;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  transition: transform 0.4s ease;
}

.loveImg:hover {
  transform: scale(1.08) rotate(3deg);
}