@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Rye&family=Dancing+Script:wght@700&display=swap');

:root {
  --gold: #d4af37;
  --gold-light: #f9e596;
  --gold-dark: #8c6a1d;
  --brown-dark: #1f140e;
  --brown-panel: #2a1a11;
}

body {
  margin: 0;
  padding: 0;
  background: #110a06 url('https://images.unsplash.com/photo-1550684376-efcbd6e3f031?q=80&w=2070&auto=format&fit=crop') center/cover fixed;
  font-family: 'Playfair Display', serif;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.overlay {
  background: rgba(0, 0, 0, 0.65);
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  margin: 40px 20px;
  text-align: center;
}

/* Lights decoration */
.lights {
  width: 100%;
  height: 50px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><circle cx="20" cy="25" r="5" fill="%23fff" filter="drop-shadow(0 0 10px %23f9e596)"/><circle cx="50" cy="30" r="5" fill="%23fff" filter="drop-shadow(0 0 10px %23f9e596)"/><circle cx="80" cy="25" r="5" fill="%23fff" filter="drop-shadow(0 0 10px %23f9e596)"/><path d="M0,10 Q20,30 50,20 T100,10" fill="none" stroke="%23333" stroke-width="2"/></svg>') center/cover;
  position: absolute;
  top: -60px;
  left: 0;
  opacity: 0.8;
}

.title-board {
  background: url('https://www.transparenttextures.com/patterns/wood-pattern.png'), var(--brown-panel);
  border: 6px solid var(--brown-dark);
  border-radius: 20px;
  padding: 40px 20px 50px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.9), inset 0 0 30px #000;
  margin-bottom: 40px;
  position: relative;
}

.title-board::before {
  content: '';
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  border: 2px solid var(--gold-dark);
  border-radius: 12px;
  pointer-events: none;
}

.name {
  font-family: 'Rye', serif;
  font-size: 3.5rem;
  color: var(--gold-light);
  text-transform: uppercase;
  margin: 0;
  text-shadow: 3px 3px 6px #000;
  line-height: 1;
}

.age-group {
  margin-top: 15px;
  position: relative;
  display: inline-block;
}

.age {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 7rem;
  color: var(--gold);
  line-height: 1;
  text-shadow: 4px 4px 10px #000;
  background: -webkit-linear-gradient(top, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.anos {
  font-family: 'Dancing Script', cursive;
  font-size: 4rem;
  color: var(--gold-light);
  position: absolute;
  bottom: -30px;
  right: -50px;
  transform: rotate(-12deg);
  text-shadow: 2px 2px 4px #000;
}

.info-panel {
  background: rgba(10, 5, 0, 0.95);
  border: 3px solid var(--gold-dark);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.9);
  margin-bottom: 40px;
  text-align: left;
  position: relative;
}

.info-panel::before, .info-panel::after {
  content: '★';
  color: var(--gold-dark);
  font-size: 1.5rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.info-panel::before { top: 10px; }
.info-panel::after { bottom: 10px; }

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px dashed var(--gold-dark);
}
.info-item:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-right: 20px;
  min-width: 50px;
  text-align: center;
  text-shadow: 1px 1px 3px #000;
}

.info-content strong {
  display: block;
  font-family: 'Rye', serif;
  color: var(--gold-dark);
  font-size: 1.1rem;
  margin-bottom: 5px;
  letter-spacing: 2px;
}

.info-content span {
  font-size: 1.3rem;
  color: #f0f0f0;
}
.info-content small {
  display: block;
  font-size: 1rem;
  color: #bbb;
  margin-top: 3px;
}

.rsvp-panel {
  background: rgba(20, 13, 8, 0.95);
  border: 2px solid var(--gold);
  border-radius: 15px;
  padding: 35px 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.9);
}

.rsvp-panel h3 {
  font-family: 'Rye', serif;
  color: var(--gold-light);
  text-align: center;
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 25px;
  text-shadow: 2px 2px 4px #000;
}

.form-group {
  margin-bottom: 25px;
  text-align: left;
}

.form-group label {
  display: block;
  color: var(--gold);
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 15px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--gold-dark);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  border-radius: 8px;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 10px rgba(249, 229, 150, 0.3);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  background: rgba(0,0,0,0.4);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--brown-dark);
  transition: border-color 0.3s;
}
.radio-label:hover { border-color: var(--gold-dark); }

.radio-label input {
  margin-right: 15px;
  accent-color: var(--gold);
  transform: scale(1.5);
}

.btn-submit {
  width: 100%;
  background: linear-gradient(to bottom, var(--gold-light), var(--gold-dark));
  color: #2a1a11;
  font-family: 'Rye', serif;
  font-size: 1.4rem;
  padding: 18px;
  border: 2px solid #000;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(249, 229, 150, 0.4);
}

.message-box {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  display: none;
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
}
.message-success {
  background: rgba(40, 167, 69, 0.2);
  color: #4cd137;
  border: 1px solid #4cd137;
}
.message-error {
  background: rgba(220, 53, 69, 0.2);
  color: #e84118;
  border: 1px solid #e84118;
}

/* Admin Styles */
.admin-container {
  max-width: 900px;
}
.admin-card {
  background: rgba(20, 13, 8, 0.95);
  border: 2px solid var(--gold-dark);
  border-radius: 15px;
  padding: 40px;
}
.admin-card h2 {
  font-family: 'Rye', serif;
  color: var(--gold-light);
  margin-top: 0;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
}
th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--brown-panel);
}
th {
  font-family: 'Rye', serif;
  color: var(--gold);
  border-bottom: 2px solid var(--gold-dark);
}
tr:hover td {
  background: rgba(212, 175, 55, 0.1);
}
.status-sim { color: #4cd137; font-weight: bold; }
.status-nao { color: #e84118; font-weight: bold; }

.btn-download {
  display: inline-block;
  background: #27ae60;
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  font-family: 'Rye', serif;
  border-radius: 5px;
  font-size: 1.2rem;
  margin-bottom: 20px;
  transition: background 0.3s;
}
.btn-download:hover { background: #2ecc71; }
