*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #333;
  background: #f8f9fa;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #1a237e;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }

a { color: #1a237e; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

nav {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a237e 50%, #283593 100%);
  padding: 0.65rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3), transparent);
}

.nav-brand {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #d4af37 0%, #f5d76e 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: none;
  position: relative;
  white-space: nowrap;
  text-transform: uppercase;
}

.nav-brand::after {
  content: '◆';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.4rem;
  -webkit-text-fill-color: #d4af37;
  color: #d4af37;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  transition: all 0.25s ease;
  position: relative;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

.nav-links a.active {
  color: #d4af37;
  background: rgba(212,175,55,0.1);
  font-weight: 500;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: #d4af37;
  border-radius: 1px;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.btn-primary {
  background: linear-gradient(135deg, #1a237e, #283593);
  color: #fff;
  box-shadow: 0 3px 10px rgba(26,35,126,0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #283593, #3949ab);
  box-shadow: 0 5px 16px rgba(26,35,126,0.35);
  color: #fff;
}

.btn-secondary {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.btn-secondary:hover {
  background: #eeeeee;
  border-color: #ccc;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  color: #333;
}

.btn-gold {
  background: linear-gradient(135deg, #d4af37, #c9a84c);
  color: #fff;
  box-shadow: 0 3px 10px rgba(212,175,55,0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #c9a84c, #b8942c);
  box-shadow: 0 5px 16px rgba(212,175,55,0.35);
  color: #fff;
}

.btn-danger {
  background: linear-gradient(135deg, #c62828, #d32f2f);
  color: #fff;
  box-shadow: 0 3px 10px rgba(198,40,40,0.2);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #d32f2f, #e53935);
  box-shadow: 0 5px 16px rgba(198,40,40,0.35);
  color: #fff;
}

.btn-full { width: 100%; text-align: center; }

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  border-radius: 6px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  transition: border-color 0.2s;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #333;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #1a237e;
  box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.radio-label input[type="radio"] {
  width: auto;
  accent-color: #1a237e;
}

.form-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  max-width: 600px;
  margin: 0 auto;
}

.event-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-top: 3px solid #1a237e;
}

.stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.85rem;
  border-bottom: 1px solid #f0f0f0;
}

.table th {
  background: #1a237e;
  color: #fff;
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tr:hover td {
  background: #f8f9fa;
}

.table tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 20px;
}

.badge-success {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-warning {
  background: #fff8e1;
  color: #f57f17;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.alert-error {
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #f8bbd0;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: #888;
}

.section {
  margin-top: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.page-header {
  margin-bottom: 1rem;
}

.back-link {
  color: #666;
  font-size: 0.9rem;
}

.event-details {
  margin: 1rem 0;
}

.event-details p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.event-details .label {
  font-weight: 500;
  color: #666;
  min-width: 60px;
  display: inline-block;
}

.link-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.link-section label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 0.35rem;
}

.link-copy {
  display: flex;
  gap: 0.5rem;
}

.link-copy input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  background: #f8f9fa;
  color: #333;
}

.link-copy input:focus {
  outline: none;
}

.event-type-label {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 4px;
  background: #e8eaf6;
  color: #1a237e;
}

.link {
  font-weight: 500;
  font-size: 0.85rem;
}

/* Login page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d1b2a 0%, #1a237e 40%, #283593 70%, #1a237e 100%);
  position: relative;
  overflow: hidden;
}

.login-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #d4af37, transparent);
  top: -150px;
  right: -150px;
  animation: floatShape 15s ease-in-out infinite;
}

.shape-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #fff, transparent);
  bottom: -100px;
  left: -100px;
  animation: floatShape 12s ease-in-out infinite reverse;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #d4af37, transparent);
  top: 50%;
  left: 10%;
  animation: floatShape 18s ease-in-out infinite;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.login-container {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
  animation: slideUp 0.6s ease-out;
  position: relative;
  z-index: 1;
}

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

.login-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #1a237e, #283593);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #d4af37;
  box-shadow: 0 4px 15px rgba(26,35,126,0.3);
}

.login-header h1 {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #d4af37 0%, #f5d76e 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.6rem;
  margin-bottom: 0.15rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.login-subtitle {
  color: #888;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
}

.login-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 1rem 0;
}

.divider-line {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.divider-diamond {
  color: #d4af37;
  font-size: 0.6rem;
}

.login-form {
  margin-top: 0.5rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 14px;
  color: #bbb;
  font-size: 0.9rem;
  transition: color 0.3s;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 0.8rem 0.85rem 0.8rem 2.5rem;
  font-size: 0.9rem;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
  background: #fafafa;
  color: #333;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #1a237e;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26,35,126,0.08);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper input:focus ~ .input-icon,
.input-wrapper:focus-within .input-icon {
  color: #1a237e;
}

.input-wrapper input::placeholder {
  color: #bbb;
  font-weight: 300;
}

.btn-login {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(135deg, #1a237e, #283593);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #d4af37, #c9a84c);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-login:hover::before {
  opacity: 1;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26,35,126,0.35);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login span,
.btn-login i {
  position: relative;
  z-index: 1;
}

.btn-login i {
  font-size: 0.85rem;
  transition: transform 0.3s;
}

.btn-login:hover i {
  transform: translateX(4px);
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #d4af37;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Public contribution page */
.public-page {
  min-height: 100vh;
  background: #fff;
}

.wedding-header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  background: linear-gradient(180deg, #1a237e 0%, #283593 100%);
  color: #fff;
}

.wedding-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  background: linear-gradient(135deg, #d4af37 0%, #f5d76e 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.wedding-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
}

.wedding-date {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.25rem;
}

.wedding-venue {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.contribution-container {
  max-width: 520px;
  margin: -1.5rem auto 2rem;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.tabs {
  display: flex;
  background: #fff;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  border: none;
  background: #f5f5f5;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  color: #888;
}

.tab-btn.active {
  background: #fff;
  color: #1a237e;
  font-weight: 600;
  box-shadow: 0 2px 0 #1a237e;
}

.tab-btn:hover {
  background: #fafafa;
}

.tab-content {
  display: none;
  background: #fff;
  padding: 1.5rem;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.tab-content.active {
  display: block;
}

.result-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.result-message.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.result-message.error {
  display: block;
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #f8bbd0;
}

.promise-details {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 0.85rem;
  color: #666;
}

.detail-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1a237e;
}

.payment-form {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.payment-form h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #1a237e;
  margin-bottom: 1rem;
}

.success-message {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

.contributor-id-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  background: #1a237e;
  color: #d4af37;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

.progress-bar-container {
  background: #f0f0f0;
  border-radius: 8px;
  height: 28px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a237e, #283593);
  border-radius: 8px;
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-size: 0.78rem;
  color: #fff;
  font-weight: 600;
  min-width: fit-content;
}

.detail-info {
  margin: 1rem 0;
}

.detail-info p {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.match-card {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}

.match-card:hover {
  border-color: #1a237e;
}

.notif-bell {
  font-size: 1rem !important;
  padding: 0.45rem 0.7rem !important;
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #c62828;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(198,40,40,0.4);
  font-family: 'Inter', sans-serif;
}

.notif-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 30px rgba(0,0,0,0.15);
  z-index: 200;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.notif-panel.open {
  right: 0;
}

.notif-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.notif-panel-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #1a237e;
  font-size: 1.1rem;
  margin: 0;
}

.notif-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.notif-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
}

.notif-item.unread {
  background: #e8eaf6;
}

.notif-item:hover {
  background: #f5f5f5;
}

.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8eaf6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a237e;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.notif-item.unread .notif-icon {
  background: #1a237e;
  color: #fff;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-msg {
  font-size: 0.82rem;
  color: #333;
  line-height: 1.4;
}

.notif-time {
  font-size: 0.7rem;
  color: #999;
  margin-top: 0.2rem;
}

.notif-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 199;
}

@media (max-width: 480px) {
  .notif-panel {
    width: 100%;
    right: -100%;
  }
}

.notif-item a, .notif-item .notif-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.notif-item a:hover, .notif-item .notif-link:hover {
  text-decoration: none;
}

.notif-toast-wrap {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 360px;
}
.notif-toast {
  background: #1a237e;
  color: #fff;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  cursor: pointer;
  animation: toastIn 0.3s ease;
  position: relative;
}
.notif-toast.toast-hide { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(12px); } }
.notif-toast .toast-title { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.2rem; }
.notif-toast .toast-msg { font-size: 0.8rem; opacity: 0.9; }
.notif-toast .toast-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  border: none;
  background: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.7;
  padding: 0.2rem;
  line-height: 1;
}
.notif-toast .toast-close:hover { opacity: 1; }

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1rem;
}

.modal-content {
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
}

.chart-container {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.chart-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.chart-label {
  width: 140px;
  font-size: 0.8rem;
  color: #333;
  font-weight: 500;
  flex-shrink: 0;
  text-align: right;
}

.chart-bar-wrap {
  flex: 1;
  height: 22px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.chart-bar {
  height: 100%;
  background: linear-gradient(90deg, #283593, #1a237e);
  border-radius: 4px;
  transition: width 0.6s ease;
  min-width: 2px;
}

.chart-value {
  width: 120px;
  font-size: 0.78rem;
  color: #555;
  font-weight: 500;
  text-align: right;
  flex-shrink: 0;
}

.notes-section textarea {
  transition: border-color 0.2s;
}

.notes-section textarea:focus {
  outline: none;
  border-color: #1a237e;
  box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}

@media (max-width: 768px) {
  .container { padding: 1rem; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .wedding-title {
    font-size: 1.5rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-brand::after {
    display: none;
  }

  .nav-links {
    gap: 0.25rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }
  .nav-links::-webkit-scrollbar {
    height: 3px;
  }
  .nav-links::-webkit-scrollbar-thumb {
    background: rgba(212,175,55,0.3);
    border-radius: 3px;
  }

  .nav-links a {
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 0.35rem 0.6rem;
  }

  .login-container {
    margin: 1rem;
    padding: 1.5rem;
  }

  .table th,
  .table td {
    padding: 0.5rem 0.6rem;
    font-size: 0.78rem;
  }

  .event-card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.5rem;
  }
}
