:root{
  --bg:#070316;
  --bg-2:#0d0825;
  --panel:rgba(13,9,35,.78);
  --panel-strong:rgba(14,10,40,.92);
  --text:#f7f7fb;
  --muted:#b7b4c8;
  --line:rgba(255,255,255,.12);
  --gold:#f0cf55;
  --gold-2:#d4a928;
  --cyan:#39d9ff;
  --pink:#ff4fd8;
  --violet:#8b5cff;
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(57,217,255,.14), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(255,79,216,.14), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(139,92,255,.12), transparent 40%),
    linear-gradient(160deg,#05020f 0%,#0a061c 45%,#060314 100%);
  overflow-x:hidden;
}
body.site-home{position:relative}
.bg-orb{
  position:fixed;
  width:340px;
  height:340px;
  border-radius:50%;
  filter:blur(70px);
  opacity:.22;
  pointer-events:none;
  z-index:0;
}
.orb-a{background:#3bd7ff;left:-100px;top:10vh}
.orb-b{background:#ff3fd5;right:-120px;top:28vh}
.orb-c{background:#7f5cff;left:35%;bottom:-140px}

.page-shell{
  position:relative;
  z-index:1;
  width:min(1180px,calc(100% - 28px));
  margin:0 auto;
  padding:36px 0 56px;
}
.invite-stage{
  border:1px solid rgba(255,255,255,.10);
  border-radius:28px;
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.015));
  box-shadow:0 30px 90px rgba(0,0,0,.42);
  backdrop-filter:blur(10px);
  overflow:hidden;
  padding:18px;
}
.eyebrow{
  text-align:center;
  letter-spacing:.22em;
  font-size:.76rem;
  color:var(--gold);
  font-weight:800;
  margin:4px 0 18px;
}

.names-title{
  text-align:center;
  color:#fff;
  font-size:clamp(1.55rem,3.2vw,2.35rem);
  line-height:1.05;
  letter-spacing:.06em;
  font-weight:900;
  margin:-4px 0 22px;
  text-shadow:
    0 0 14px rgba(255,255,255,.12),
    0 0 26px rgba(57,217,255,.10);
}
.invite-grid{
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(360px,.98fr);
  gap:22px;
  align-items:stretch;
}
.invite-visual,.rsvp-panel{
  min-width:0;
}
.image-frame{
  position:relative;
  height:100%;
  min-height:620px;
  border-radius:22px;
  overflow:hidden;
  background:#0c0820;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.02),0 18px 50px rgba(0,0,0,.28);
}
.image-frame img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.image-frame:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 65%,rgba(4,2,14,.28));
  pointer-events:none;
}
.image-glow{
  position:absolute;
  inset:auto 12% -20px 12%;
  height:80px;
  background:linear-gradient(90deg,var(--cyan),var(--violet),var(--pink));
  filter:blur(32px);
  opacity:.28;
}
.rsvp-panel{
  border-radius:22px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025)),
    rgba(9,6,27,.84);
  border:1px solid rgba(255,255,255,.10);
  padding:34px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.panel-kicker{
  color:var(--cyan);
  font-weight:800;
  font-size:.78rem;
  letter-spacing:.18em;
  margin-bottom:10px;
}
.rsvp-panel h1{
  margin:0;
  font-size:clamp(2.2rem,5vw,4rem);
  line-height:.98;
  letter-spacing:-.045em;
}
.lead{
  color:var(--muted);
  font-size:1.02rem;
  line-height:1.55;
  margin:16px 0 20px;
}
.event-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:12px;
}
.meta-item{
  padding:14px 15px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.035);
}
.meta-label{
  display:block;
  color:var(--muted);
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.09em;
  margin-bottom:4px;
}
.meta-value{
  font-weight:700;
  font-size:.94rem;
}
.venue-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--gold);
  text-decoration:none;
  font-weight:800;
  font-size:.92rem;
  margin:2px 0 20px;
}
.venue-link:hover{color:#ffe789}
.rsvp-form{margin-top:4px}
.field{margin-bottom:16px}
.field label{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
  font-weight:800;
  font-size:.95rem;
}
.field label span{
  color:var(--muted);
  font-weight:500;
  font-size:.86rem;
}
input[type="text"],input[type="password"],select,textarea{
  width:100%;
  border:1px solid rgba(255,255,255,.13);
  background:rgba(255,255,255,.055);
  color:var(--text);
  border-radius:14px;
  padding:15px 16px;
  outline:none;
  font:inherit;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
input[type="text"]::placeholder,textarea::placeholder{color:#8e8aa3}
input[type="text"]:focus,input[type="password"]:focus,select:focus,textarea:focus{
  border-color:rgba(57,217,255,.68);
  box-shadow:0 0 0 3px rgba(57,217,255,.10),0 0 28px rgba(57,217,255,.08);
  background:rgba(255,255,255,.07);
}
select option{color:#111}
textarea{min-height:102px;resize:vertical}
.field-hint{
  color:var(--muted);
  font-size:.82rem;
  margin-top:6px;
}
.choice-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:16px;
}
.choice{position:relative}
.choice input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.choice span{
  display:flex;
  min-height:96px;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  background:rgba(255,255,255,.04);
  padding:16px;
  cursor:pointer;
  transition:.18s ease;
}
.choice b{font-size:1rem}
.choice small{color:var(--muted);line-height:1.25}
.choice span:hover{
  border-color:rgba(255,255,255,.24);
  transform:translateY(-1px);
}
.choice input:checked + span{
  border-color:rgba(240,207,85,.72);
  background:linear-gradient(180deg,rgba(240,207,85,.14),rgba(240,207,85,.06));
  box-shadow:0 0 0 3px rgba(240,207,85,.08),0 10px 24px rgba(0,0,0,.18);
}
.submit-btn{
  width:100%;
  border:0;
  border-radius:16px;
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:1rem;
  font-weight:900;
  color:#160f00;
  background:linear-gradient(90deg,#f5de77,#e7bd3d);
  box-shadow:0 12px 28px rgba(218,178,47,.20),inset 0 1px 0 rgba(255,255,255,.35);
  cursor:pointer;
  transition:transform .18s ease,filter .18s ease;
}
.submit-btn:hover{transform:translateY(-1px);filter:brightness(1.04)}
.submit-arrow{font-size:1.2rem}
.error{
  border:1px solid rgba(255,98,98,.42);
  background:rgba(255,70,70,.10);
  color:#ffd9d9;
  padding:12px 14px;
  border-radius:12px;
  margin:0 0 16px;
}
.bottom-note{
  text-align:center;
  color:#918da5;
  font-size:.82rem;
  letter-spacing:.06em;
  padding:18px 4px 4px;
}

/* Shared/admin styles */
.wrap{
  width:min(1000px,calc(100% - 28px));
  margin:0 auto;
  padding:34px 0 48px;
}
.card{
  margin:0 auto;
  max-width:700px;
  padding:28px;
  border-radius:22px;
  background:var(--panel-strong);
  border:1px solid var(--line);
  box-shadow:0 20px 60px rgba(0,0,0,.32);
}
.card h1,.card h2{margin-top:0;color:var(--gold)}
.center{text-align:center}
.small{color:var(--muted)}
button,.button{
  display:inline-block;
  border:0;
  border-radius:12px;
  padding:13px 16px;
  font-weight:800;
  background:linear-gradient(90deg,#f5de77,#e7bd3d);
  color:#180f00;
  text-decoration:none;
  cursor:pointer;
}
.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin:18px 0;
}
.stat{
  text-align:center;
  padding:14px 8px;
  border-radius:14px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
}
.stat strong{display:block;font-size:1.65rem;color:var(--gold)}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;margin-top:14px}
th,td{padding:11px 9px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
th{color:var(--gold)}
.comment-cell{min-width:220px;white-space:pre-wrap}
.inline{display:inline}
.delete{
  width:auto;
  padding:7px 10px;
  font-size:.85rem;
  background:rgba(255,90,90,.14);
  color:#ffd1d1;
  border:1px solid rgba(255,90,90,.30);
}

@media(max-width:900px){
  .invite-grid{grid-template-columns:1fr}
  .image-frame{min-height:0}
  .image-frame img{height:auto;object-fit:contain}
}
@media(max-width:620px){
  .page-shell{width:min(100% - 14px,1180px);padding:10px 0 24px}
  .invite-stage{padding:10px;border-radius:20px}
  .eyebrow{font-size:.66rem;margin:6px 0 12px}
  .rsvp-panel{padding:22px 16px;border-radius:18px}
  .event-meta{grid-template-columns:1fr}
  .choice-grid{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr 1fr}
}

@media(max-width:620px){
  .names-title{
    font-size:clamp(1.35rem,6vw,1.8rem);
    margin:-2px 0 14px;
    letter-spacing:.035em;
  }
}


/* v7: laga aðeins desktop myndina. Mobile/tablet hegðun helst óbreytt. */
@media (min-width: 901px) {
  .invite-grid {
    align-items: start;
  }

  .image-frame {
    height: auto;
    min-height: 0;
    aspect-ratio: 905 / 639;
  }

  .image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
}
