:root {
  --bg-primary: #0f1117;
  --bg-secondary: #1a1e29;
  --bg-card: rgba(26, 30, 41, 0.85);
  --accent-gold: #d4af37;
  --accent-gold-light: #f5d77f;
  --accent-gold-dark: #aa8210;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(212, 175, 55, 0.25);
  --border-focus: #d4af37;
  --error-bg: rgba(239, 68, 68, 0.15);
  --error-text: #fca5a5;
  --error-border: rgba(239, 68, 68, 0.4);
  --success-bg: rgba(34, 197, 94, 0.15);
  --success-text: #86efac;
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.1);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 20% 15%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 85%, rgba(170, 130, 16, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Card */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-card);
  animation: fadeIn 0.6s ease-out;
}

.card-wide {
  max-width: 920px;
}

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

/* Header & Typography */
.header-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold-light);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(15, 17, 23, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  background: rgba(15, 17, 23, 0.95);
}

.form-input::placeholder {
  color: #64748b;
}

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: #0f1117;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.2);
  width: auto;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background: rgba(148, 163, 184, 0.2);
  border-color: var(--text-muted);
}

/* Alerts / Banners */
.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  display: none;
}

.alert-error {
  background-color: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
  display: block;
}

.alert-success {
  background-color: var(--success-bg);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: var(--success-text);
  display: block;
}

/* Welcome Page Elements */
.user-greeting {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-bottom: 1rem;
}

.event-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  text-align: left;
}

.detail-item {
  background: rgba(15, 17, 23, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.detail-item h4 {
  font-size: 0.8rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.detail-item p {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 500;
}

.nav-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.session-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-user {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--accent-gold-light);
}

.footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(148, 163, 184, 0.05);
}

/* Hero Gold Button & Banner */
.hero-confirm-container {
  margin: 1.5rem 0 2rem 0;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn-gold-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 480px;
  padding: 1.1rem 2rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #0f1117;
  background: linear-gradient(135deg, #ffe082 0%, #d4af37 40%, #aa8210 100%);
  border: 2px solid #fff5c0;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.45), 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.btn-gold-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.btn-gold-hero:hover::before {
  left: 100%;
}

.btn-gold-hero:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 35px rgba(245, 215, 127, 0.7), 0 12px 28px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #ffffff 0%, #f5d77f 50%, #d4af37 100%);
}

.btn-gold-hero:active {
  transform: translateY(1px) scale(0.99);
}

.attendance-confirmed-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.75rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: var(--radius-md);
  color: var(--success-text);
  font-weight: 700;
  font-size: 1rem;
  animation: fadeIn 0.4s ease-out;
}

/* Renaissance Banner Image */
.hero-banner-img {
  width: 100%;
  /* max-height: 220px; */
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* Feature Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin-top: 2rem;
}

.card-feature {
  background: rgba(22, 27, 38, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.15);
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.2);
  padding-bottom: 0.75rem;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-icon {
  font-size: 1.75rem;
}

.card-feature h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-gold-light);
}

.card-badge-count {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.card-feature p.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

/* Feature Item Lists */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 17, 23, 0.5);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item-icon {
  font-size: 1.1rem;
}

/* Guest list grid inside card */
.guests-chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.guest-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.guest-chip.is-you {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.card-footer-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

/* Modal Overlay & Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 12, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card), 0 0 40px rgba(212, 175, 55, 0.15);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 17, 23, 0.7);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-title-icon {
  font-size: 1.75rem;
}

.modal-title-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-gold-light);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-form-section {
  background: rgba(15, 17, 23, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.recommendation-input-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

@media (max-width: 480px) {
  .recommendation-input-group {
    flex-direction: column;
  }
}

.modal-list-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recommendation-item {
  background: rgba(15, 17, 23, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all 0.2s ease;
}

.recommendation-item:hover {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(15, 17, 23, 0.85);
}

.rec-author-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.rec-author-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.rec-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.rec-text {
  font-size: 0.925rem;
  color: var(--text-main);
  line-height: 1.4;
}

.card-feature {
  cursor: pointer;
}

.card-feature-action-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  color: var(--accent-gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.card-feature:hover .card-feature-action-prompt {
  color: #ffffff;
}

/* Renaissance "Huzzah!" Upvote Button */
.rec-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.btn-huzzah {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-huzzah:hover {
  background: rgba(212, 175, 55, 0.28);
  border-color: var(--accent-gold);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
  color: #ffffff;
}

.btn-huzzah:active {
  transform: translateY(0) scale(0.97);
}

.btn-huzzah.voted {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35) 0%, rgba(170, 130, 16, 0.35) 100%);
  border-color: var(--accent-gold);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.btn-huzzah-disabled {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: default;
  user-select: none;
}

/* Attending Badge & Garb Link */
.badge-attending {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: var(--success-text);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
  animation: fadeIn 0.4s ease-out;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.garb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-gold-light);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.garb-link:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--accent-gold);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.guests-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--accent-gold-light);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.guests-banner-btn:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--accent-gold);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

/* Message Board & Chat Styles */
.card-wide-board {
  grid-column: 1 / -1;
}

.thread-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: rgba(15, 17, 23, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.thread-row:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(15, 17, 23, 0.85);
  transform: translateX(2px);
}

.thread-card-item {
  transition: all 0.2s ease;
}

.thread-card-item:hover {
  border-color: rgba(212, 175, 55, 0.45) !important;
  background: rgba(212, 175, 55, 0.12) !important;
  transform: translateX(2px);
}


.thread-title-text {
  font-weight: 700;
  color: var(--accent-gold-light);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.thread-meta-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Chat Messages Container */
.chat-messages-box {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 380px;
  min-height: 200px;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(15, 17, 23, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  line-height: 1.45;
  font-size: 0.925rem;
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

.chat-bubble.other {
  align-self: flex-start;
  background: rgba(26, 30, 41, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-main);
  border-bottom-left-radius: 2px;
}

.chat-bubble.own {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(170, 130, 16, 0.22) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--text-main);
  border-bottom-right-radius: 2px;
}

.chat-author {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chat-bubble.own .chat-author {
  color: #ffe082;
}

.chat-text {
  color: var(--text-main);
  word-break: break-word;
}

.chat-msg-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0.4rem;
  padding-top: 0.25rem;
}

.chat-huzzah-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.chat-huzzah-btn:hover {
  background: rgba(212, 175, 55, 0.28);
  border-color: var(--accent-gold);
  color: #ffffff;
  transform: scale(1.05);
}

.chat-huzzah-btn.voted {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35) 0%, rgba(170, 130, 16, 0.35) 100%);
  border-color: var(--accent-gold);
  color: #ffffff;
}

.chat-huzzah-disabled {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: default;
  user-select: none;
}

.hero-meta-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.event-date-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--accent-gold-light);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   Responsive & Mobile Friendly Overrides
   ========================================================================== */

/* Tablets & Laptops (<= 900px) */
@media (max-width: 900px) {
  .container {
    padding: 1.25rem 1rem;
  }
  .card-wide {
    max-width: 100%;
  }
}

/* Mobile Devices & Small Tablets (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0.75rem 0.5rem;
  }

  .card {
    padding: 1.5rem 1.15rem;
    border-radius: 12px;
  }

  .nav-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .session-info {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }

  .header-right-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
  }

  .garb-link {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.825rem;
    padding: 0.55rem 0.85rem;
  }

  #logoutBtn {
    width: 100%;
    padding: 0.55rem;
  }

  .title {
    font-size: 1.75rem;
  }

  .user-greeting {
    font-size: 1.25rem;
  }

  .hero-meta-badges {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.5rem;
  }

  .event-date-badge,
  .guests-banner-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.875rem;
    padding: 0.55rem 0.85rem;
  }

  .hero-banner-img {
    max-height: 160px;
    margin-bottom: 1rem;
  }

  .hero-confirm-container {
    margin: 1rem 0 1.25rem 0;
  }

  .btn-gold-hero {
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
  }

  .card-feature {
    padding: 1.25rem 1rem;
  }

  /* Prevent iOS input focus auto-zoom by enforcing 16px min font size */
  .form-input {
    font-size: 16px;
  }

  /* Modals on Mobile */
  .modal-overlay {
    padding: 0.5rem;
  }

  .modal-box {
    max-height: 92vh;
    width: 100%;
    border-radius: 12px;
  }

  .modal-header {
    padding: 0.85rem 1rem;
  }

  .modal-title-text {
    font-size: 1.05rem;
  }

  .modal-body {
    padding: 1rem 0.85rem;
  }

  .modal-form-section {
    padding: 1rem 0.85rem;
  }

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

  .recommendation-input-group .btn {
    width: 100%;
  }

  .thread-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .chat-bubble {
    max-width: 92%;
    padding: 0.75rem 0.85rem;
    font-size: 0.875rem;
  }
}

/* Extra Small Phones (<= 400px) */
@media (max-width: 400px) {
  .card {
    padding: 1.15rem 0.75rem;
  }

  .card-feature {
    padding: 1rem 0.75rem;
  }

  .title {
    font-size: 1.5rem;
  }
  .badge-attending {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
  }

  .badge-attending:hover {
    transform: scale(1.05);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.4);
  }
}

.btn-gold-modal-affirmative {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 480px;
  padding: 1.1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #0f1117;
  background: linear-gradient(135deg, #ffe082 0%, #d4af37 40%, #aa8210 100%);
  border: 2px solid #fff5c0;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.45), 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.btn-gold-modal-affirmative::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.btn-gold-modal-affirmative:hover::before {
  left: 100%;
}

.btn-gold-modal-affirmative:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 35px rgba(245, 215, 127, 0.7), 0 12px 28px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #ffffff 0%, #f5d77f 50%, #d4af37 100%);
}

.btn-gold-modal-affirmative:active {
  transform: translateY(1px) scale(0.99);
}

/* .btn-gold-modal-affirmative {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 440px;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #0f1117;
  background: linear-gradient(135deg, #ffe082 0%, #d4af37 40%, #aa8210 100%);
  border: 2px solid #fff5c0;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 4px 15px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.btn-gold-modal-affirmative::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.btn-gold-modal-affirmative:hover::before {
  left: 100%;
}

.btn-gold-modal-affirmative:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 0 30px rgba(245, 215, 127, 0.65), 0 8px 20px rgba(0, 0, 0, 0.45);
  background: linear-gradient(135deg, #ffffff 0%, #f5d77f 50%, #d4af37 100%);
} */

.btn-gold-modal-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 440px;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #d4af37;
  background: linear-gradient(135deg, #2b2010 0%, #1a1309 100%);
  border: 1.5px solid #6e521c;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.btn-gold-modal-dark:hover {
  background: linear-gradient(135deg, #3a2c16 0%, #251b0d 100%);
  border-color: #946f27;
  color: #ffe082;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.flash-toast {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1c1912 0%, #2a2315 100%);
  border: 2px solid #d4af37;
  color: #fff8e7;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.025rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85), 0 0 25px rgba(212, 175, 55, 0.5);
  z-index: 999999 !important;
  pointer-events: none;
  text-align: center;
  max-width: 90vw;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}








