@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --main: #f7b28f;
  --main-dark: #e8875e;
  --main-light: #ffd6c1;
  --bg: #101218;
  --surface: rgba(255, 255, 255, .04);
  --surface-muted: rgba(255, 255, 255, .02);
  --border: rgba(255, 255, 255, .08);
  --text: #f8f8fb;
  --text-muted: #a8adbb;
  --accent: #f7b28f;
  --accent-dark: #e8875e;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 16px 48px rgba(0, 0, 0, .35);
}

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

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(247, 178, 143, .25), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(255, 214, 193, .12), transparent 25%),
    linear-gradient(180deg, #101218, #12141c 45%, #0f1117);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(247, 178, 143, .35) 1px, transparent 1.6px);
  background-size: 90px 90px;
  animation: moveParticles 26s linear infinite;
  opacity: .28;
}

@keyframes moveParticles {
  to { transform: translate(-90px, -90px); }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
}

/* Master App Layout (collapsible sidebar) */
.app-layout {
  display: flex;
  min-height: 100vh;
  min-width: 0;
  position: relative;
}

/* Sidebar Backdrop (for Mobile Overlay) */
.app-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.app-sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Collapsible Sidebar styling */
.app-sidebar {
  width: 260px;
  background: rgba(16, 18, 24, 0.95);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  flex-shrink: 0;
}

/* Collapsed state */
.app-sidebar.collapsed {
  width: 76px;
  padding: 24px 12px;
}

.app-sidebar.collapsed .brand-text,
.app-sidebar.collapsed .nav-label,
.app-sidebar.collapsed .nav-section-title,
.app-sidebar.collapsed .footer-label,
.app-sidebar.collapsed .sidebar-lang-selector span,
.app-sidebar.collapsed .sidebar-lang-selector select {
  display: none;
}

.app-sidebar.collapsed .sidebar-brand {
  justify-content: center;
}

.app-sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 12px;
}

.app-sidebar.collapsed .nav-icon {
  margin-right: 0;
  font-size: 1.25rem;
}

.app-sidebar.collapsed .footer-account-menu {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.app-sidebar.collapsed .footer-link,
.app-sidebar.collapsed .logout-btn {
  justify-content: center;
  padding: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.app-sidebar.collapsed .sidebar-toggle-btn {
  transform: rotate(180deg);
}

/* Mobile responsive sidebar rules */
@media (max-width: 900px) {
  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    height: 100vh;
  }
  .app-sidebar.mobile-open {
    transform: translateX(0);
  }
  .app-sidebar.collapsed {
    width: 260px; /* Keep full size on mobile overlay toggle */
  }
  .app-sidebar.collapsed .brand-text,
  .app-sidebar.collapsed .nav-label,
  .app-sidebar.collapsed .nav-section-title,
  .app-sidebar.collapsed .footer-label {
    display: inline-block;
  }
  .app-sidebar.collapsed .sidebar-lang-selector select {
    display: inline-block;
  }
  .app-sidebar.collapsed .nav-link {
    justify-content: flex-start;
  }
  .app-sidebar.collapsed .nav-icon {
    margin-right: 12px;
  }
  .app-sidebar.collapsed .footer-account-menu {
    flex-direction: row;
  }
  .app-sidebar.collapsed .footer-link,
  .app-sidebar.collapsed .logout-btn {
    width: auto;
    height: auto;
    border-radius: 12px;
    justify-content: flex-start;
  }
  .app-sidebar.collapsed .sidebar-toggle-btn {
    display: none;
  }
}

/* Brand Header */
.sidebar-brand {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  min-height: 48px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  max-height: 38px;
  border-radius: 8px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--main), var(--main-dark));
  color: #24130d;
  font-weight: 900;
  font-size: 20px;
}

.brand-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: white;
}

/* Navigation Links */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 24px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: white;
}

.nav-link.active {
  background: rgba(247, 178, 143, 0.08);
  color: var(--main);
  border-left-color: var(--main);
  font-weight: 700;
}

.nav-icon {
  margin-right: 12px;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-section-title {
  list-style: none;
  padding: 18px 14px 8px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Sidebar Footer, Language & collapse button */
.sidebar-footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-lang-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.lang-globe {
  font-size: 14px;
}

.lang-select {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

.lang-select option {
  background: #12141c;
  color: white;
}

.footer-account-menu {
  display: flex;
  gap: 8px;
}

.footer-link, .logout-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  justify-content: center;
}

.footer-link:hover, .logout-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.logout-btn {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.sidebar-toggle-btn {
  align-self: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  transition: transform 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle-btn:hover {
  color: white;
}

/* Main content wrapper */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(247, 178, 143, .12), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(255, 214, 193, .06), transparent 25%),
    linear-gradient(180deg, #101218, #12141c 45%, #0f1117);
  color: var(--text);
  position: relative;
  min-height: 100vh;
}

/* Background floating particles animation */
.app-main:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(247, 178, 143, .18) 1px, transparent 1.6px);
  background-size: 90px 90px;
  animation: moveParticles 26s linear infinite;
  opacity: .25;
}

@keyframes moveParticles {
  to { transform: translate(-90px, -90px); }
}

/* App Topbar Header */
.app-topbar {
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(16, 18, 24, 0.75);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 98;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

@media (max-width: 900px) {
  .mobile-menu-toggle-btn {
    display: inline-block;
  }
}

.topbar-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.user-badge {
  font-size: 13px;
  font-weight: 700;
  background: rgba(247, 178, 143, 0.08);
  border: 1px solid rgba(247, 178, 143, 0.2);
  color: var(--main-light);
  padding: 6px 12px;
  border-radius: 99px;
}

.app-content {
  padding: 32px 24px;
  flex: 1;
}

/* Premium Dashboard Card Panels */
.panel,
.event-summary,
.empty-panel,
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 24px;
}

.panel:hover,
.event-summary:hover {
  border-color: rgba(247, 178, 143, .2);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .45);
}

.muted-text {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

/* Grids */
.owner-grid,
.detail-grid {
  display: grid;
  gap: 24px;
}

.owner-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.detail-grid {
  grid-template-columns: 1.3fr 0.9fr;
}

/* Event Summary Cards */
.event-summary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 0;
}

.event-summary-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.event-summary-header h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 6px;
}

.event-stats,
.metric-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 24px;
}

.event-stats div,
.metric-list div {
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-muted);
  border: 1px solid rgba(255,255,255,0.03);
  text-align: center;
}

.event-stats dt,
.metric-list dt {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.event-stats dd,
.metric-list dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
}

.event-summary-actions {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Buttons (Premium SaaS styling) */
.button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px; /* Smooth square-round corners for linear dashboard styling */
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.button-primary, .btn-primary {
  background: linear-gradient(135deg, var(--main), var(--main-dark));
  color: #24130d;
  box-shadow: 0 8px 24px rgba(247, 178, 143, .15);
}

.button-secondary, .btn-secondary {
  background: rgba(255, 255, 255, .04);
  border-color: var(--border);
  color: white;
}

.button-ghost, .btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.button-ghost:hover, .btn-ghost:hover {
  color: white;
  background: rgba(255,255,255,0.04);
}

.button:hover, .btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

/* Premium Filter Bar */
.filter-bar {
  padding: 24px;
}

.filter-bar form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.filter-bar label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Inputs & Form Fields */
.owner-form {
  display: grid;
  gap: 20px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label, .form-field span, .share-field label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea,
.filter-bar input,
.filter-bar select,
.share-field input {
  width: 100%;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  color: white;
  outline: none;
  transition: all 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.share-field input:focus {
  border-color: var(--main);
  box-shadow: 0 0 0 3px rgba(247, 178, 143, .12);
  background: rgba(255, 255, 255, .05);
}

.form-field select option,
.filter-bar select option {
  background: #12141c;
  color: white;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

/* Global announcement override */
.global-announcement {
  background: linear-gradient(90deg, var(--main-dark), var(--main)) !important;
  color: #24130d !important;
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 15px rgba(247, 178, 143, 0.15);
  border-radius: 12px;
  margin-bottom: 24px;
}

/* Banners & Success feedback */
.success-banner {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #4ade80;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.banner-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.banner-danger {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Badges */
.badge, .owner-badge, .owner-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.badge-primary, .owner-badge {
  background: rgba(247, 178, 143, .08);
  border: 1px solid rgba(247, 178, 143, 0.2);
  color: var(--main-light);
}

.badge-success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Status Indicator Dot */
.status-dot-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
}

.status-dot:after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.4;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Empty State */
.empty-panel {
  text-align: center;
  padding: 60px 40px;
  border-style: dashed;
  border-width: 2px;
  grid-column: 1 / -1;
}

.empty-panel h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

/* Owner Footer */
.owner-footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--border) !important;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: auto;
}

/* Premium Dashboard Widgets */
.trial-banner {
  background: radial-gradient(circle at top right, rgba(247, 178, 143, .15), transparent 38%), rgba(255,255,255,0.03);
  border: 1px solid rgba(247, 178, 143, .2);
  color: white;
  padding: 20px 28px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  gap: 20px;
}
.trial-banner-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.trial-banner-gift {
  font-size: 32px;
}
.trial-banner h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--main-light);
}
.trial-banner p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}
.trial-banner-right {
  text-align: right;
  background: rgba(255, 255, 255, .03);
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.trial-banner-title {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--text-muted);
}
.trial-banner-time {
  font-size: 18px;
  font-weight: 900;
  color: var(--main);
}

.premium-stats-panel {
  margin-bottom: 24px;
  background: radial-gradient(circle at bottom left, rgba(247, 178, 143, .08), transparent 45%), var(--surface);
  border-color: rgba(247, 178, 143, .15);
}
.premium-stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.premium-stats-header h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: white;
}
.premium-stats-badge {
  background: rgba(247, 178, 143, .08);
  color: var(--main);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(247, 178, 143, .2);
  letter-spacing: 0.05em;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.metric-card {
  background: rgba(255, 255, 255, .02);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .04);
  transition: transform 0.2s;
}
.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(247, 178, 143, .1);
}
.metric-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.metric-card-value {
  font-size: 32px;
  font-weight: 900;
  margin-top: 6px;
  color: var(--main);
  line-height: 1;
}

.become-organizer-panel {
  text-align: center;
  border-style: dashed;
  border-width: 2px;
  background: rgba(255, 255, 255, .02);
}
.become-organizer-panel h3 {
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}
.become-organizer-panel p {
  max-width: 500px;
  margin: 0 auto 20px;
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .app-content {
    padding: 24px 16px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .filter-bar form {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .filter-bar form div,
  .filter-bar form button {
    width: 100% !important;
  }
  .trial-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .trial-banner-right {
    text-align: left;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .owner-grid {
    grid-template-columns: 1fr;
  }
  .event-stats, .metric-list {
    grid-template-columns: 1fr;
    margin: 18px 20px;
  }
  .event-stats div, .metric-list div {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .event-summary-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .event-summary-actions .button {
    width: 100%;
  }
}

/* Gift registry list & sharing fields layout styles */
.gift-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.gift-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.gift-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(247, 178, 143, 0.15);
}
.gift-row-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.share-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.qr-code {
  display: block;
  max-width: 220px;
  margin: 20px auto;
  border-radius: var(--radius);
  background: white;
  padding: 12px;
  box-shadow: var(--shadow);
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Constrains form content width to keep SaaS look aligned */
.owner-shell-narrow {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}




/* Extracted Utility and Component Classes for Event Detail & Gift List */
.content-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; gap: 20px; flex-wrap: wrap; }
.header-status-wrapper { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.gradient-title-large { font-size: 28px; font-weight: 900; letter-spacing: -0.04em; background: linear-gradient(135deg, #fff, var(--main), var(--main-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.pt-4 { padding-top: 24px; }
.flex-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.button-locked { background: rgba(255,255,255,0.02) !important; color: var(--text-muted) !important; cursor: not-allowed; border: 1px solid var(--border) !important; }
.button-danger-outline { background: rgba(239, 68, 68, 0.08) !important; border: 1px solid rgba(239, 68, 68, 0.2) !important; color: #f87171 !important; }
.banner-title { display: block; font-size: 16px; }
.banner-text { margin: 4px 0 0; font-size: 14px; opacity: 0.85; }
.banner-icon { font-size: 24px; }
.banner-flex { display: flex; align-items: center; gap: 8px; }
.banner-between { justify-content: space-between; }
.banner-muted { background: rgba(255,255,255,0.02); border-color: var(--border); color: var(--text); }
.btn-full-width { width: 100%; text-align: center; justify-content: center; display: flex; }
.btn-left-align { justify-content: flex-start; text-align: left; }
.panel-title { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.panel-subtitle { font-size: 13px; margin-top: 6px; margin-bottom: 18px; line-height: 1.4; }
.collab-link-box { margin-top: 20px; background: rgba(34, 197, 94, 0.05); padding: 16px; border-radius: 12px; border: 1px solid rgba(34, 197, 94, 0.15); }
.collab-text-green { color: #4ade80; }
.collab-eyebrow { color: #4ade80; display: block; margin-bottom: 6px; font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.05em; }
.flex-input-group { display: flex; gap: 8px; width: 100%; }
.input-flex-1 { flex: 1; }
.activate-box { background: rgba(247,178,143,0.06); border: 1px solid rgba(247,178,143,0.15); border-radius: 16px; padding: 20px; margin-top: 20px; }
.activate-title { margin-top: 0; color: var(--main-light); font-size: 16px; font-weight: 800; }
.activate-text { font-size: 13px; color: var(--text-muted); margin-bottom: 15px; line-height: 1.5; }
.border-top-section { border-top: 1px solid var(--border); }
.section-title-sm { margin: 0; font-size: 1.1rem; font-weight: 800; }
.flex-col-gap { display: flex; flex-direction: column; gap: 8px; }
.gift-title { font-size: 18px; font-weight: 800; color: white; margin: 0 0 6px 0; }
.gift-price { color: var(--main-light); font-size: 15px; }
.gift-reserved-text { font-size: 13px; font-weight: 600; }
.gift-actions { margin-top: 10px; display: flex; gap: 8px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-md { min-height: 42px; font-size: 13px; }
.btn-lg { min-height: 46px; }
.empty-state-box { padding: 48px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius); background: rgba(255,255,255,0.01); }
.empty-state-icon { font-size: 40px; display: block; margin-bottom: 12px; }
.badge-outline { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }
