@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@300;400;500;600;700&family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&family=Kanit:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #f9fafb;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-input: rgba(255, 255, 255, 0.95);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-hover: rgba(0, 0, 0, 0.15);

  --primary: #EB649B;
  /* ชมพูเข้ม (SS45 PINK) */
  --primary-hover: #d94a82;
  /* Darkened ชมพูเข้ม */
  --secondary: #64A231;
  /* เขียวเข้ม (SS45 GREEN) */
  --secondary-hover: #4e8025;
  /* Darkened เขียวเข้ม */
  --accent: #B7D69B;
  /* เขียวอ่อน (SS45 PASTEL GREEN) */

  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-inverse: #ffffff;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --font-outfit: 'Outfit', 'Sarabun', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Normal (Light) Mode specifics */
  --bg-overlay: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0.75) 100%);
  --header-bg: #f9d3e6;
  --header-text: #1f2937;
  --header-text-muted: #4b5563;
  --header-link-hover-bg: rgba(0, 0, 0, 0.05);
  --header-border: rgba(0, 0, 0, 0.08);
  --logo-bg: none;
  --logo-text-fill: #1f2937;

  --footer-bg: #64A231;
  --footer-text-muted: rgba(255, 255, 255, 0.75);
  --footer-border: rgba(255, 255, 255, 0.2);

  --badge-bg: rgba(235, 100, 155, 0.12);
  --badge-border: rgba(235, 100, 155, 0.3);
  --badge-color: #EB649B;
  --admin-badge-bg: rgba(100, 162, 49, 0.12);
  --admin-badge-border: rgba(100, 162, 49, 0.3);
  --admin-badge-color: #64A231;

  --dropdown-bg: rgba(255, 255, 255, 0.95);
  --dropdown-item-hover-color: #EB649B;
  --dropdown-item-hover-bg: rgba(235, 100, 155, 0.08);

  --card-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.05);
  --heading-gradient: linear-gradient(135deg, var(--text-main), var(--text-muted));
  --heading-gradient-start: #000000;
  --heading-gradient-end: var(--text-muted);
}

.dark-mode {
  --bg-dark: #090d16;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-input: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.15);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-inverse: #0f172a;

  --bg-overlay: linear-gradient(to bottom, rgba(9, 13, 22, 0.4) 0%, rgba(9, 13, 22, 0.7) 60%, rgba(9, 13, 22, 0.85) 100%);
  --header-bg: rgba(9, 13, 22, 0.8);
  --header-text: #f3f4f6;
  --header-text-muted: #9ca3af;
  --header-link-hover-bg: rgba(255, 255, 255, 0.05);
  --header-border: rgba(255, 255, 255, 0.08);
  --logo-bg: linear-gradient(135deg, var(--primary), var(--secondary));
  --logo-text-fill: transparent;

  --footer-bg: rgba(9, 13, 22, 0.9);
  --footer-text-muted: #9ca3af;
  --footer-border: rgba(255, 255, 255, 0.08);

  --badge-bg: rgba(236, 72, 153, 0.12);
  --badge-border: rgba(236, 72, 153, 0.3);
  --badge-color: var(--primary);
  --admin-badge-bg: rgba(16, 185, 129, 0.12);
  --admin-badge-border: rgba(16, 185, 129, 0.3);
  --admin-badge-color: var(--secondary);

  --dropdown-bg: rgba(17, 24, 39, 0.95);
  --dropdown-item-hover-color: var(--primary);
  --dropdown-item-hover-bg: rgba(255, 255, 255, 0.08);

  --card-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.4);
  --heading-gradient: linear-gradient(135deg, #ffffff, var(--text-muted));
  --heading-gradient-start: #ffffff;
  --heading-gradient-end: var(--text-muted);
}

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

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  background-image:
    var(--bg-overlay),
    linear-gradient(to bottom, #EB649B, #F9D3E6, #B7D69B, #64A231);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-outfit);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Scrollbar Style */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: var(--border-glass-hover);
}

/* Navigation Bar */
header {
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--logo-bg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: var(--logo-text-fill);
  color: var(--header-text, inherit);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-tag {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  color: var(--header-text, var(--text-main));
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  border: 1px solid var(--header-border, var(--border-glass));
  margin-left: 0.5rem;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--header-text-muted, var(--text-muted));
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--header-text, var(--text-main));
  background: var(--header-link-hover-bg, rgba(255, 255, 255, 0.05));
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--header-border, var(--border-glass));
}

.user-badge {
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-color);
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
}

.user-badge.admin-badge {
  background: var(--admin-badge-bg);
  border: 1px solid var(--admin-badge-border);
  color: var(--admin-badge-color);
}

/* Layout Containers */
.main-content {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 3vw, 2rem);
}

footer {
  border-top: 1px solid var(--footer-border);
  padding: 2rem clamp(1rem, 3vw, 2rem);
  text-align: center;
  color: var(--footer-text-muted);
  font-size: 0.9rem;
  background: var(--footer-bg);
  margin-top: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border-glass-hover);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--success);
}

.btn-success:hover {
  background: var(--success);
  color: #fff;
}

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

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-main);
  font-family: var(--font-outfit);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--bg-input);
  box-shadow: 0 0 0 3px rgba(235, 100, 155, 0.25);
}

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

@media (max-width: 1024px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-user {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Dashboard Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

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

.metric-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-title {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-val {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0;
  background: linear-gradient(135deg, var(--heading-gradient-start, #fff), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Event List Card */
.event-card {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .event-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.event-details {
  flex: 1;
}

.event-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.event-desc {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.event-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .event-action {
    align-items: flex-start;
    width: 100%;
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
  }
}

.price-tag {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.price-free {
  color: var(--success);
}

/* Profile Completeness Card */
.progress-container {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  margin: 0.75rem 0;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  transition: width 0.5s ease-in-out;
}

/* List/Table Styles */
.panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.panel-body {
  padding: 1.5rem;
}

.table-wrapper {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
}

table.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}

table.custom-table th {
  padding: 1rem;
  border-bottom: 2px solid var(--border-glass);
  color: var(--text-muted);
  font-weight: 600;
}

table.custom-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-glass);
}

table.custom-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pending,
.btn-pending-theme {
  background: #f9d3e6 !important;
  color: #eb649b !important;
  border: 1px solid #f9d3e6 !important;
}

.status-pending i,
.btn-pending-theme i {
  color: #eb649b !important;
}

.status-warning {
  background: #f9d3e6 !important;
  color: #eb649b !important;
  border: 1px solid #f9d3e6 !important;
}

.status-warning i {
  color: #eb649b !important;
}

.status-approved,
.btn-approved-theme {
  background: #b7d69b !important;
  color: #64a231 !important;
  border: 1px solid #b7d69b !important;
}

.status-approved i,
.btn-approved-theme i {
  color: #64a231 !important;
}

.status-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Flash Messages */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--success);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--danger);
}

/* Grid layout for Auth Cards */
.auth-container {
  width: 100%;
  max-width: 480px;
  margin: 4rem auto;
  padding: 2rem;
}

.auth-title {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title h2 {
  font-size: 2rem;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-title p {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* SVG Chart styling */
.chart-container {
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding-top: 2rem;
  border-bottom: 1px solid var(--border-glass);
}

.chart-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.chart-bar {
  width: 32px;
  background: linear-gradient(to top, var(--primary), var(--secondary));
  border-radius: 6px 6px 0 0;
  min-height: 5px;
  transition: height 0.5s ease;
  position: relative;
}

.chart-bar:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
}

.chart-tooltip {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.chart-bar:hover .chart-tooltip {
  opacity: 1;
}

.chart-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* Bank Slip Scanner elements */
.slip-uploader-box {
  border: 2px dashed var(--border-glass);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.slip-uploader-box:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.02);
}

.slip-preview-img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 8px;
  display: none;
  margin: 1rem auto;
}

.scan-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Digital Ticket */
.ticket-card {
  max-width: 500px;
  margin: 2rem auto;
  overflow: hidden;
  position: relative;
}

.ticket-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 1.5rem;
  text-align: center;
}

.ticket-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.ticket-body::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 20px;
  background-image: radial-gradient(circle, var(--bg-dark) 8px, transparent 8px);
  background-size: 24px 20px;
}

.ticket-qr {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.ticket-divider {
  width: 100%;
  border-top: 2px dashed var(--border-glass);
  margin: 1.5rem 0;
}

.ticket-info {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: left;
  font-size: 0.9rem;
}

.ticket-info-item span:first-child {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.ticket-info-item span:last-child {
  font-weight: 600;
}

/* Modal Dialog */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(9, 13, 22, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glass-hover);
  border-radius: 16px;
  width: 95%;
  max-width: 650px;
  padding: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--danger);
}

/* Ensure inline text gradient headers adapt nicely in both themes */
h1[style*="linear-gradient"],
h2[style*="linear-gradient"] {
  background: linear-gradient(135deg, var(--heading-gradient-start, #fff), var(--heading-gradient-end, var(--text-muted))) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Normal Mode (Default) Ticket backgrounds when no image is uploaded */
.entry-ticket-card {
  background: #EB6496 !important;
  border: 2px solid #EB6496 !important;
}

.souvenir-ticket-card {
  background: #64A231 !important;
  border: 2px solid #64A231 !important;
  margin-top: 2rem;
}

/* High contrast styles for elements inside colored cards in Light Mode */
.entry-ticket-card h4,
.entry-ticket-card p,
.entry-ticket-card span,
.entry-ticket-card strong,
.souvenir-ticket-card h4,
.souvenir-ticket-card p,
.souvenir-ticket-card span,
.souvenir-ticket-card strong {
  color: #ffffff !important;
}

/* Dark Mode Overrides (preserve original glass look) */
.dark-mode .entry-ticket-card {
  background: var(--bg-card) !important;
  border: 2px solid var(--success) !important;
}

.dark-mode .souvenir-ticket-card {
  background: var(--bg-card) !important;
  border: 2px solid #a855f7 !important;
}

/* Restore Dark Mode text colors */
.dark-mode .entry-ticket-card h4,
.dark-mode .entry-ticket-card span:last-child {
  color: var(--text-main) !important;
}

.dark-mode .entry-ticket-card p,
.dark-mode .entry-ticket-card span:first-child {
  color: var(--text-muted) !important;
}

.dark-mode .souvenir-ticket-card h4 {
  color: var(--accent) !important;
}

.dark-mode .souvenir-ticket-card span {
  color: var(--text-main) !important;
}

.dark-mode .souvenir-ticket-card strong {
  color: var(--primary) !important;
}

.dark-mode .souvenir-ticket-card p,
.dark-mode .souvenir-ticket-card span:first-child {
  color: var(--text-muted) !important;
}

/* ============ SAMSEN 45 NEW TEMPLATE OVERRIDES ============ */

/* --- Tokens & Base Overrides --- */
[data-theme-template="samsen45"] {
  --green: #64A231;
  --green-d: #4f8226;
  --green-l: #B7D69B;
  --green-xl: #eef5e4;
  --pink: #EB649B;
  --pink-d: #d44d84;
  --pink-l: #F9D3E6;
  --pink-xl: #fdeff5;
  --lime: #BDFF3C;
  --yellow: #FFFF22;
  --ink: #1b2015;
  --ink-soft: #5d6552;
  --ink-faint: #9aa28d;
  --bg: #fbfcf8;
  --bg-soft: #f1f4ea;
  --paper: #ffffff;
  --line: #e6e9dc;
  --brand: var(--green);
  --brand-d: var(--green-d);
  --brand-soft: var(--green-xl);
  --brand-l: var(--green-l);
  --brand2: var(--pink);
  --brand2-soft: var(--pink-xl);
  --accent: var(--pink);
  --accent-ink: #ffffff;
  --accent-d: var(--pink-d);
  --font-display: 'Anuphan';
  --font-body: 'IBM Plex Sans Thai';
  --maxw: 1180px;
  --shadow: 0 1px 2px rgba(27, 32, 21, .04), 0 18px 38px -22px rgba(27, 32, 21, .30);
  --shadow-lg: 0 30px 70px -34px rgba(27, 32, 21, .44);

  /* Override standard style.css theme vars */
  --bg-dark: var(--bg);
  --bg-card: var(--paper);
  --bg-input: var(--bg-soft);
  --border-glass: var(--line);
  --border-glass-hover: var(--brand-l);
  --primary: var(--brand2);
  --primary-hover: var(--brand2-d, #d44d84);
  --secondary: var(--brand);
  --secondary-hover: var(--brand-d);
  --text-main: var(--ink);
  --text-muted: var(--ink-soft);
  --font-outfit: var(--font-body), system-ui, sans-serif;

  /* Header & Footer & Badges high contrast overrides */
  --header-bg: rgba(251, 252, 248, 0.72);
  --header-text: var(--ink);
  --header-text-muted: var(--ink-soft);
  --header-link-hover-bg: var(--brand-soft);
  --header-border: var(--line);

  --footer-bg: var(--bg-soft);
  --footer-text-muted: var(--ink-soft);
  --footer-border: var(--line);

  --badge-bg: var(--brand2-soft);
  --badge-border: var(--brand2-soft);
  --badge-color: var(--brand2);
  --admin-badge-bg: var(--brand-soft);
  --admin-badge-border: var(--brand-l);
  --admin-badge-color: var(--brand-d);
}

[data-theme-template="samsen45"][data-primary="pink"] {
  --brand: var(--pink);
  --brand-d: var(--pink-d);
  --brand-soft: var(--pink-xl);
  --brand-l: var(--pink-l);
  --brand2: var(--green);
  --brand2-soft: var(--green-xl);
}

[data-theme-template="samsen45"][data-accent="lime"] {
  --accent: var(--lime);
  --accent-ink: #172012;
  --accent-d: #9ee01f;
}

[data-theme-template="samsen45"][data-accent="yellow"] {
  --accent: var(--yellow);
  --accent-ink: #1f2008;
  --accent-d: #ecec10;
}

[data-theme-template="samsen45"][data-accent="pink"] {
  --accent: var(--pink);
  --accent-ink: #fff;
  --accent-d: var(--pink-d);
}

[data-theme-template="samsen45"][data-accent="green"] {
  --accent: var(--green);
  --accent-ink: #fff;
  --accent-d: var(--green-d);
}

[data-theme-template="samsen45"][data-font="kanit"] {
  --font-display: 'Kanit';
}

/* Layout scoping */
[data-theme-template="samsen45"] html {
  scroll-behavior: smooth;
}

[data-theme-template="samsen45"] body {
  font-family: var(--font-body), system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  background-image: none !important;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

[data-theme-template="samsen45"] h1,
[data-theme-template="samsen45"] h2,
[data-theme-template="samsen45"] h3,
[data-theme-template="samsen45"] h4,
[data-theme-template="samsen45"] .display {
  font-family: var(--font-display), var(--font-body), sans-serif;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.01em;
}

[data-theme-template="samsen45"] ::selection {
  background: var(--brand);
  color: #fff;
}

[data-theme-template="samsen45"] .wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(26px, 6vw, 40px);
}

[data-theme-template="samsen45"] .eyebrow {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-d);
}

[data-theme-template="samsen45"] .en {
  font-family: var(--font-display);
  letter-spacing: .32em;
  text-transform: uppercase;
}

/* ============ CONSTELLATION ============ */
[data-theme-template="samsen45"] #constellation {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

[data-theme-template="samsen45"][data-constellation="false"] #constellation {
  display: none;
}

[data-theme-template="samsen45"] .page {
  position: relative;
  z-index: 1;
}

/* ============ NAV ============ */
[data-theme-template="samsen45"] header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 252, 248, .72);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: .3s;
}

[data-theme-template="samsen45"] header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 252, 248, .93);
}

[data-theme-template="samsen45"] .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 40px);
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

[data-theme-template="samsen45"] .logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;
  color: var(--ink);
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

[data-theme-template="samsen45"] .logo-tag {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: -2px;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

[data-theme-template="samsen45"] .nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

[data-theme-template="samsen45"] .nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 13px;
  border-radius: 10px;
  transition: .18s;
  background: transparent;
}

[data-theme-template="samsen45"] .nav-link:hover,
[data-theme-template="samsen45"] .nav-link.active {
  background: var(--brand-soft);
  color: var(--brand-d);
}

/* User Trigger settings styling */
[data-theme-template="samsen45"] .user-dropdown-trigger {
  background: rgba(27, 32, 21, 0.04);
  border: 1px solid var(--line);
}

[data-theme-template="samsen45"] .user-dropdown-trigger:hover {
  background: var(--brand-soft);
  border-color: var(--brand-l);
}

[data-theme-template="samsen45"] .user-dropdown-name {
  color: var(--ink);
}

[data-theme-template="samsen45"] .user-dropdown-name i {
  color: var(--ink-faint);
}

/* Dropdown menu light mode theme */
[data-theme-template="samsen45"] .user-dropdown-menu {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

[data-theme-template="samsen45"] .dropdown-item {
  color: var(--ink-soft);
}

[data-theme-template="samsen45"] .dropdown-item:hover,
[data-theme-template="samsen45"] .dropdown-item.active {
  color: var(--brand-d);
  background: var(--brand-soft);
}

[data-theme-template="samsen45"] .dropdown-divider {
  background: var(--line);
}

/* --- Buttons --- */
[data-theme-template="samsen45"] .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  transition: transform .15s, filter .2s, box-shadow .25s, background .2s;
  white-space: nowrap;
}

[data-theme-template="samsen45"] .btn:active {
  transform: translateY(1px)
}

[data-theme-template="samsen45"] .btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 20px;
  font-size: 14.5px;
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}

[data-theme-template="samsen45"] .btn-primary:hover {
  filter: brightness(.96);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}

[data-theme-template="samsen45"] .btn-secondary {
  background: transparent;
  color: var(--ink);
  padding: 10px 20px;
  font-size: 14.5px;
  border: 1.5px solid var(--line);
}

[data-theme-template="samsen45"] .btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand-d);
}

/* ============ STORY SPINE ============ */
[data-theme-template="samsen45"] .connector {
  position: relative;
  height: 118px;
  display: flex;
  justify-content: center
}

[data-theme-template="samsen45"] .connector .rail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand-l);
  opacity: .5;
  border-radius: 2px
}

[data-theme-template="samsen45"] .connector .fill {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(var(--brand), var(--brand2));
  transform: scaleY(0);
  transform-origin: top center;
  border-radius: 2px
}

/* the traveling dot is the Samsen 45 emblem riding down the spine */
[data-theme-template="samsen45"] .connector .comet {
  position: absolute;
  top: 0;
  left: 50%;
  width: 48px;
  height: 26px;
  margin-left: -24px;
  margin-top: -13px;
  background: url(assets/logo-mark-green.png) center/contain no-repeat;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--brand) 60%, transparent));
  opacity: 0;
  transition: opacity .3s
}

[data-theme-template="samsen45"] .connector.drawing .comet {
  opacity: 1
}

@media (prefers-reduced-motion:reduce) {
  [data-theme-template="samsen45"] .connector .fill {
    transform: scaleY(1) !important
  }
}

[data-theme-template="samsen45"] .node {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
  z-index: 3
}

[data-theme-template="samsen45"] .node .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--brand-l);
  position: relative;
  transition: .45s cubic-bezier(.2, .8, .2, 1)
}

[data-theme-template="samsen45"] .node .dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--brand);
  transform: scale(0);
  transition: .45s cubic-bezier(.2, .8, .2, 1)
}

[data-theme-template="samsen45"] .node.alt .dot::after {
  background: var(--brand2)
}

[data-theme-template="samsen45"] .node.lit .dot {
  border-color: var(--brand);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 13%, transparent), 0 0 22px color-mix(in srgb, var(--brand) 32%, transparent)
}

[data-theme-template="samsen45"] .node.alt.lit .dot {
  border-color: var(--brand2);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand2) 13%, transparent), 0 0 22px color-mix(in srgb, var(--brand2) 32%, transparent)
}

[data-theme-template="samsen45"] .node.lit .dot::after {
  transform: scale(1)
}

/* ============ SECTION SCAFFOLD ============ */
[data-theme-template="samsen45"] section {
  position: relative;
  z-index: 2;
  scroll-margin-top: 90px
}

[data-theme-template="samsen45"] .sec-pad {
  padding: 6px 0 14px
}

[data-theme-template="samsen45"] .band {
  background: var(--bg-soft);
  border-block: 1px solid var(--line)
}

[data-theme-template="samsen45"] .sec-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 30px
}

[data-theme-template="samsen45"] .sec-head .eyebrow {
  display: block;
  margin-bottom: 14px
}

[data-theme-template="samsen45"] .sec-head h2 {
  font-size: clamp(30px, 4.4vw, 46px)
}

[data-theme-template="samsen45"] .sec-head p {
  color: var(--ink-soft);
  font-size: 17px;
  margin-top: 16px;
  text-wrap: pretty
}

[data-theme-template="samsen45"] .reveal {
  opacity: 1
}

@media (prefers-reduced-motion:reduce) {
  [data-theme-template="samsen45"] .reveal {
    opacity: 1
  }
}

@media (prefers-reduced-motion:reduce) {
  [data-theme-template="samsen45"] .reveal {
    opacity: 1;
    transform: none
  }
}

/* --- Dark Mode overrides inside new template --- */
.dark-mode[data-theme-template="samsen45"] {
  --ink: #f3f4f6;
  --ink-soft: #9ca3af;
  --ink-faint: #6b7280;
  --bg: #090d16;
  --bg-soft: rgba(255, 255, 255, 0.03);
  --paper: rgba(17, 24, 39, 0.75);
  --line: rgba(255, 255, 255, 0.08);
}

.dark-mode[data-theme-template="samsen45"] header {
  background: rgba(9, 13, 22, 0.8);
  border-bottom: 1px solid var(--line);
}

.dark-mode[data-theme-template="samsen45"] .user-dropdown-menu {
  background: rgba(9, 13, 22, 0.95);
  border: 1px solid var(--line);
}

.dark-mode[data-theme-template="samsen45"] .dropdown-item {
  color: var(--ink-soft);
}

.dark-mode[data-theme-template="samsen45"] .dropdown-item:hover,
.dark-mode[data-theme-template="samsen45"] .dropdown-item.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.dark-mode[data-theme-template="samsen45"] .dropdown-divider {
  background: var(--line);
}

.dark-mode[data-theme-template="samsen45"] .user-dropdown-trigger {
  background: rgba(255, 255, 255, 0.05);
}

.dark-mode[data-theme-template="samsen45"] .user-dropdown-name {
  color: var(--text-main);
}

.dark-mode[data-theme-template="samsen45"] .btn-secondary {
  color: var(--text-main);
}

/* ============ HERO ============ */
[data-theme-template="reunion"] .hero {
  position: relative;
  padding-top: 96px
}

[data-theme-template="reunion"] .hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 48px;
  align-items: center;
  min-height: min(74vh, 640px);
  padding-bottom: 24px
}

[data-theme-template="reunion"] .hero-copy {
  position: relative;
  z-index: 2
}

[data-theme-template="reunion"] .kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 15px 6px 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow)
}

[data-theme-template="reunion"] .kicker b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand-soft);
  color: var(--brand-d);
  border-radius: 999px;
  padding: 3px 11px;
  font-weight: 700
}

[data-theme-template="reunion"] .kicker .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand2);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand2) 60%, transparent);
  animation: pulse 2s infinite
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand2) 55%, transparent)
  }

  70% {
    box-shadow: 0 0 0 7px transparent
  }

  100% {
    box-shadow: 0 0 0 0 transparent
  }
}

[data-theme-template="reunion"] .hero h1 {
  font-size: clamp(38px, 7.2vw, 80px);
  margin: 22px 0 0;
  letter-spacing: -.03em
}

[data-theme-template="reunion"] .hero h1 .l2 {
  color: var(--brand)
}

[data-theme-template="reunion"] .hero h1 .l3 {
  color: var(--brand2)
}

[data-theme-template="reunion"] .hero .motif {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(12px, 1.5vw, 15px);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 14px
}

/* RE | UNION kinetic wordplay — real brand dot-matrix letterforms */
[data-theme-template="reunion"] .rebanner {
  margin-top: 24px;
  height: clamp(74px, 10vw, 112px);
  display: flex;
  align-items: center;
  gap: clamp(3px, .5vw, 8px)
}

[data-theme-template="reunion"] .rebanner img {
  height: 100%;
  width: auto;
  display: block
}

[data-theme-template="reunion"] .re-swap {
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center
}

[data-theme-template="reunion"] .re-swap img {
  will-change: transform, opacity
}

[data-theme-template="reunion"] [data-hero="photo"] .rebanner img {
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .5))
}

[data-theme-template="reunion"] .hero .lead {
  font-size: clamp(16px, 2vw, 18.5px);
  color: var(--ink-soft);
  max-width: 31em;
  margin-top: 20px;
  text-wrap: pretty
}

[data-theme-template="reunion"] .datebar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap
}

[data-theme-template="reunion"] .bigdate {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1
}

[data-theme-template="reunion"] .bigdate span {
  font-size: clamp(38px, 6vw, 58px);
  letter-spacing: -.02em
}

[data-theme-template="reunion"] .bigdate .s {
  color: var(--brand);
  margin: 0 3px
}

[data-theme-template="reunion"] .bigdate .mo {
  color: var(--brand2)
}

[data-theme-template="reunion"] .bigdate .yr {
  color: var(--ink-faint)
}

[data-theme-template="reunion"] .dateinfo {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
  border-left: 2px solid var(--brand-l);
  padding-left: 14px
}

[data-theme-template="reunion"] .dateinfo b {
  color: var(--ink);
  font-weight: 600;
  display: block;
  font-size: 15.5px
}

[data-theme-template="reunion"] .hero .cta-row {
  display: flex;
  gap: 13px;
  margin-top: 32px;
  flex-wrap: wrap
}

[data-theme-template="reunion"] .scrollcue {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 500
}

[data-theme-template="reunion"] .scrollcue .ln {
  width: 34px;
  height: 1.5px;
  background: var(--brand-l);
  position: relative;
  overflow: hidden
}

[data-theme-template="reunion"] .scrollcue .ln::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--brand);
  animation: cue 1.8s ease-in-out infinite
}

@keyframes cue {
  0% {
    transform: translateX(-110%)
  }

  100% {
    transform: translateX(280%)
  }
}

[data-theme-template="reunion"] .hero-media {
  position: relative;
  z-index: 2
}

[data-theme-template="reunion"] .frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line)
}

[data-theme-template="reunion"] .frame>img {
  width: 100%;
  height: clamp(320px, 44vh, 460px);
  object-fit: cover
}

[data-theme-template="reunion"] .frame .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(20, 24, 14, .5))
}

[data-theme-template="reunion"] .frame .cap {
  position: absolute;
  left: 20px;
  bottom: 16px;
  color: #fff;
  z-index: 2
}

[data-theme-template="reunion"] .frame .cap .t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px
}

[data-theme-template="reunion"] .frame .cap .s {
  font-size: 12.5px;
  opacity: .82
}

[data-theme-template="reunion"] .floatcard {
  position: absolute;
  z-index: 3;
  background: var(--paper);
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 11px
}

[data-theme-template="reunion"] .floatcard.a {
  top: -20px;
  left: -24px
}

[data-theme-template="reunion"] .floatcard.b {
  bottom: 30px;
  right: -24px
}

[data-theme-template="reunion"] .floatcard .ic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: var(--brand-soft);
  color: var(--brand-d);
  flex: none
}

[data-theme-template="reunion"] .floatcard .ic.alt {
  background: var(--brand2-soft);
  color: var(--brand2)
}

[data-theme-template="reunion"] .floatcard b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  display: block;
  line-height: 1.2
}

[data-theme-template="reunion"] .floatcard span {
  font-size: 12px;
  color: var(--ink-faint)
}

[data-theme-template="reunion"] .stack2 {
  position: absolute;
  width: 142px;
  height: 142px;
  border-radius: 15px;
  overflow: hidden;
  border: 4px solid var(--paper);
  box-shadow: var(--shadow-lg);
  bottom: -28px;
  left: -30px;
  transform: rotate(-6deg)
}

[data-theme-template="reunion"] .stack2 img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

/* hero: photo mode */
[data-theme-template="reunion"] .hero-bg {
  display: none
}

[data-theme-template="reunion"] [data-hero="photo"] .hero {
  padding-top: 0
}

[data-theme-template="reunion"] [data-hero="photo"] .hero-grid {
  grid-template-columns: 1fr;
  min-height: 100vh;
  align-items: center;
  text-align: center;
  padding-top: 40px
}

[data-theme-template="reunion"] [data-hero="photo"] .hero-media {
  display: none
}

[data-theme-template="reunion"] [data-hero="photo"] .hero-bg {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden
}

[data-theme-template="reunion"] [data-hero="photo"] .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.15) contrast(1.04)
}

[data-theme-template="reunion"] [data-hero="photo"] .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 17, 9, .5), rgba(14, 17, 9, .4) 42%, rgba(14, 17, 9, .9)), radial-gradient(120% 90% at 50% 36%, transparent 38%, rgba(14, 17, 9, .55))
}

[data-theme-template="reunion"] [data-hero="photo"] .hero-copy {
  color: #fff;
  max-width: 880px;
  margin: 0 auto
}

[data-theme-template="reunion"] [data-hero="photo"] .kicker {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .25);
  color: #fff
}

[data-theme-template="reunion"] [data-hero="photo"] .kicker b {
  background: var(--brand);
  color: #fff
}

[data-theme-template="reunion"] [data-hero="photo"] .hero .lead {
  color: rgba(255, 255, 255, .84);
  margin-inline: auto
}

[data-theme-template="reunion"] [data-hero="photo"] .hero h1 .l2 {
  color: var(--brand-l)
}

[data-theme-template="reunion"] [data-hero="photo"] .hero h1 .l3 {
  color: var(--pink-l)
}

[data-theme-template="reunion"] [data-hero="photo"] .hero .motif {
  color: rgba(255, 255, 255, .6)
}

[data-theme-template="reunion"] [data-hero="photo"] .datebar {
  justify-content: center
}

[data-theme-template="reunion"] [data-hero="photo"] .bigdate span {
  color: #fff
}

[data-theme-template="reunion"] [data-hero="photo"] .bigdate .s {
  color: var(--brand-l)
}

[data-theme-template="reunion"] .hero [data-x] {}

[data-theme-template="reunion"] [data-hero="photo"] .bigdate .mo {
  color: var(--pink-l)
}

[data-theme-template="reunion"] [data-hero="photo"] .bigdate .yr {
  color: rgba(255, 255, 255, .55)
}

[data-theme-template="reunion"] [data-hero="photo"] .dateinfo {
  color: rgba(255, 255, 255, .82);
  border-color: var(--brand)
}

[data-theme-template="reunion"] [data-hero="photo"] .dateinfo b {
  color: #fff
}

[data-theme-template="reunion"] [data-hero="photo"] .hero .cta-row {
  justify-content: center
}

[data-theme-template="reunion"] [data-hero="photo"] .scrollcue {
  color: rgba(255, 255, 255, .72)
}

[data-theme-template="reunion"] [data-hero="photo"] .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .4)
}

[data-theme-template="reunion"] [data-hero="photo"] .btn-ghost:hover {
  border-color: #fff
}

/* hero: duo split mode */
[data-theme-template="reunion"] .hero-split {
  display: none
}

[data-theme-template="reunion"] [data-hero="duo"] .hero-split {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden
}

[data-theme-template="reunion"] [data-hero="duo"] .hero-split .pane {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 58%
}

[data-theme-template="reunion"] [data-hero="duo"] .hero-split .left {
  left: 0;
  background: linear-gradient(150deg, var(--green), var(--green-d));
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%)
}

[data-theme-template="reunion"] [data-hero="duo"] .hero-split .right {
  right: 0;
  background: linear-gradient(150deg, var(--pink), var(--pink-d));
  clip-path: polygon(43% 0, 100% 0, 100% 100%, 13% 100%)
}

[data-theme-template="reunion"] [data-hero="duo"] .hero-split::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(135% 100% at 50% 50%, rgba(251, 252, 248, .99) 0%, rgba(251, 252, 248, .97) 50%, rgba(251, 252, 248, .9) 66%, rgba(251, 252, 248, .5) 80%, transparent 92%)
}

[data-theme-template="reunion"] [data-hero="duo"] .hero .lead {
  color: var(--ink)
}

[data-theme-template="reunion"] [data-hero="duo"] .hero h1 .l2 {
  color: var(--green-d)
}

[data-theme-template="reunion"] [data-hero="duo"] .hero {
  padding-top: 120px
}

[data-theme-template="reunion"] [data-hero="duo"] .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
  min-height: min(82vh, 760px)
}

[data-theme-template="reunion"] [data-hero="duo"] .hero-media {
  display: none
}

[data-theme-template="reunion"] [data-hero="duo"] .hero-copy {
  max-width: 840px;
  margin: 0 auto
}

[data-theme-template="reunion"] [data-hero="duo"] .hero .lead {
  margin-inline: auto
}

[data-theme-template="reunion"] [data-hero="duo"] .kicker,
[data-theme-template="reunion"] [data-hero="duo"] .datebar,
[data-theme-template="reunion"] [data-hero="duo"] .hero .cta-row {
  justify-content: center
}

[data-theme-template="reunion"] [data-hero="duo"] .datebar {
  display: inline-flex
}

/* ============ EVENT + COUNTDOWN ============ */
[data-theme-template="reunion"] .countdown {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 36px;
  flex-wrap: wrap
}

[data-theme-template="reunion"] .cd-cell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 122px;
  padding: 18px 10px 14px;
  text-align: center;
  box-shadow: var(--shadow)
}

[data-theme-template="reunion"] .cd-cell .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 50px);
  line-height: 1;
  font-variant-numeric: tabular-nums
}

[data-theme-template="reunion"] .cd-cell:nth-child(1) .num {
  color: var(--brand)
}

[data-theme-template="reunion"] .cd-cell:nth-child(2) .num {
  color: var(--brand2)
}

[data-theme-template="reunion"] .cd-cell:nth-child(3) .num {
  color: var(--brand-d)
}

[data-theme-template="reunion"] .cd-cell .lbl {
  font-size: 12.5px;
  color: var(--ink-faint);
  font-weight: 600;
  margin-top: 8px
}

[data-theme-template="reunion"] .cd-tag {
  text-align: center;
  display: block;
  margin-bottom: 14px;
  color: var(--ink-faint);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em
}

[data-theme-template="reunion"] .infogrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 980px;
  margin: 0 auto
}

[data-theme-template="reunion"] .info {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: .25s
}

[data-theme-template="reunion"] .info:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-l)
}

[data-theme-template="reunion"] .info .ic {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--brand-soft);
  margin-bottom: 18px
}

[data-theme-template="reunion"] .info:nth-child(2) .ic {
  background: var(--brand2-soft)
}

[data-theme-template="reunion"] .info h3 {
  font-size: 12.5px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint)
}

[data-theme-template="reunion"] .info .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 7px 0 6px;
  line-height: 1.25
}

[data-theme-template="reunion"] .info p {
  font-size: 14.5px;
  color: var(--ink-soft)
}

[data-theme-template="reunion"] .info .maplink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-d)
}

[data-theme-template="reunion"] .info .maplink:hover {
  gap: 9px
}

/* ============ ABOUT + DOTMAP ============ */
[data-theme-template="reunion"] .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto
}

[data-theme-template="reunion"] .about-copy .eyebrow {
  display: block;
  margin-bottom: 14px
}

[data-theme-template="reunion"] .about-copy h2 {
  font-size: clamp(28px, 3.9vw, 40px)
}

[data-theme-template="reunion"] .about-copy h2 em {
  font-style: normal;
  color: var(--brand)
}

[data-theme-template="reunion"] .about-copy p {
  color: var(--ink-soft);
  font-size: 16px;
  margin-top: 16px;
  text-wrap: pretty
}

[data-theme-template="reunion"] .acts {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 24px
}

[data-theme-template="reunion"] .act {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15.5px;
  font-weight: 500
}

[data-theme-template="reunion"] .act .tick {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-d);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 13px
}

[data-theme-template="reunion"] .dotmap {
  position: relative
}

/* ============ COSMOS — universe of specialists ============ */
[data-theme-template="reunion"] .cosmos {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1/1;
  margin: 0 auto;
  border-radius: 26px;
  background: radial-gradient(120% 120% at 50% 42%, #ffffff 0%, #f6faf0 46%, #edf3e2 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: visible
}

[data-theme-template="reunion"] .cosmos svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible
}

/* rotating concentric orbit rings */
[data-theme-template="reunion"] .cosmos .orbits {
  transform-box: fill-box;
  transform-origin: center;
  animation: orbitSpin 100s linear infinite
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg)
  }
}

@media (prefers-reduced-motion:reduce) {

  [data-theme-template="reunion"] .cosmos .orbits,
  [data-theme-template="reunion"] .cosmos-hub::before {
    animation: none
  }

  [data-theme-template="reunion"] .cosmos.lit .cn.l2 .d,
  [data-theme-template="reunion"] .cosmos.lit .star {
    animation: none;
    opacity: 1
  }
}

[data-theme-template="reunion"] .cosmos .orbit {
  fill: none;
  stroke: var(--brand-l);
  opacity: .4;
  stroke-dasharray: .5 2.3;
  stroke-width: .35;
  stroke-linecap: round
}

/* connecting lines, drawn in on scroll */
[data-theme-template="reunion"] .cosmos .link {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: -1;
  transition: stroke-dashoffset .9s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--d, 0s)
}

[data-theme-template="reunion"] .cosmos.lit .link {
  stroke-dashoffset: 0
}

[data-theme-template="reunion"] .cosmos .link.l1 {
  stroke: var(--lk, var(--brand-l));
  stroke-width: .55;
  opacity: .78
}

[data-theme-template="reunion"] .cosmos .link.l2 {
  stroke: var(--lk, var(--brand-l));
  stroke-width: .34;
  opacity: .48
}

/* ambient background stars */
[data-theme-template="reunion"] .cosmos .star {
  fill: var(--brand);
  opacity: 0;
  transition: opacity .8s
}

[data-theme-template="reunion"] .cosmos.lit .star {
  animation: twinkle 4.2s ease-in-out infinite;
  animation-delay: var(--p, 0s)
}

@keyframes twinkle {

  0%,
  100% {
    opacity: .16
  }

  50% {
    opacity: .55
  }
}

/* hub — the Samsen 45 logo, center that connects everything */
[data-theme-template="reunion"] .cosmos-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26%;
  aspect-ratio: 1;
  z-index: 5;
  border-radius: 50%;
  background: #fff url('assets/hub-logo-green.png') center/132% no-repeat;
  box-shadow: 0 8px 26px rgba(100, 162, 49, .26), 0 0 0 1px var(--line), 0 0 0 9px color-mix(in srgb, var(--brand) 8%, transparent);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.55);
  transition: opacity .6s ease 1.6s, transform .75s cubic-bezier(.2, 1.4, .4, 1) 1.6s
}

[data-theme-template="reunion"] [data-primary="pink"] .cosmos-hub {
  background-image: url('assets/hub-logo-pink.png')
}

[data-theme-template="reunion"] .cosmos.lit .cosmos-hub {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1)
}

[data-theme-template="reunion"] .cosmos-hub::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 148%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: -1;
  border: 1.4px dashed color-mix(in srgb, var(--brand) 38%, transparent);
  animation: orbitSpin 40s linear infinite reverse
}

/* nodes */
[data-theme-template="reunion"] .cosmos-nodes {
  position: absolute;
  inset: 0;
  z-index: 3
}

[data-theme-template="reunion"] .cn {
  position: absolute;
  transform: translate(-50%, -50%)
}

[data-theme-template="reunion"] .cn .d {
  border-radius: 50%;
  background: var(--c, var(--brand));
  transform: scale(0);
  transition: transform .55s cubic-bezier(.2, 1.5, .4, 1);
  transition-delay: var(--d, 0s)
}

[data-theme-template="reunion"] .cosmos.lit .cn .d {
  transform: scale(1)
}

[data-theme-template="reunion"] .cn .lab {
  position: absolute;
  font-family: var(--font-display);
  white-space: nowrap;
  pointer-events: none
}

[data-theme-template="reunion"] .cn.l1 .d {
  width: 16px;
  height: 16px;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 15%, transparent), 0 0 16px color-mix(in srgb, var(--c) 50%, transparent)
}

[data-theme-template="reunion"] .cn.l1 .lab {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  opacity: 0;
  transition: opacity .5s ease;
  transition-delay: var(--d, 0s)
}

[data-theme-template="reunion"] .cosmos.lit .cn.l1 .lab {
  opacity: 1
}

[data-theme-template="reunion"] .lab-t .lab {
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%)
}

[data-theme-template="reunion"] .lab-b .lab {
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%)
}

[data-theme-template="reunion"] .lab-r .lab {
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%)
}

[data-theme-template="reunion"] .lab-l .lab {
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%)
}

[data-theme-template="reunion"] .cn.l2 .d {
  width: 9px;
  height: 9px;
  cursor: pointer;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 13%, transparent), 0 0 10px color-mix(in srgb, var(--c) 55%, transparent);
  transition: transform .55s cubic-bezier(.2, 1.5, .4, 1);
  transition-delay: var(--d, 0s)
}

[data-theme-template="reunion"] .cosmos.lit .cn.l2 .d {
  animation: starpulse 3.4s ease-in-out infinite;
  animation-delay: var(--p, 0s)
}

@keyframes starpulse {

  0%,
  100% {
    opacity: .62
  }

  50% {
    opacity: 1
  }
}

[data-theme-template="reunion"] .cn.l2:hover {
  z-index: 6
}

[data-theme-template="reunion"] .cn.l2:hover .d {
  transform: scale(1.4);
  animation: none;
  opacity: 1
}

[data-theme-template="reunion"] .cn.l2 .lab {
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .18)
}

[data-theme-template="reunion"] .cn.l2:hover .lab {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

[data-theme-template="reunion"] .cosmos-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  text-align: center;
  z-index: 4;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink-faint)
}

/* team-grid emblem — 16 rooms · 5 teams · all connected */
[data-theme-template="reunion"] .teamgrid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  flex-wrap: wrap;
  max-width: 1040px;
  margin: 50px auto 0;
  padding: 30px 38px;
  background: radial-gradient(120% 130% at 18% 30%, #ffffff 0%, #f7faf1 60%, #eef4e3 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow)
}

[data-theme-template="reunion"] .tg-mark {
  width: 158px;
  height: 158px;
  flex: none;
  overflow: visible
}

[data-theme-template="reunion"] .tg-link {
  fill: none;
  stroke: var(--brand-l);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .6;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s cubic-bezier(.45, 0, .2, 1) .15s
}

[data-theme-template="reunion"] .teamgrid.lit .tg-link {
  stroke-dashoffset: 0
}

[data-theme-template="reunion"] .tg-dots circle {
  fill: var(--c);
  stroke: rgba(27, 32, 21, .18);
  stroke-width: .7;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform .55s cubic-bezier(.2, 1.55, .4, 1);
  transition-delay: calc(.3s + var(--i)*.07s);
  filter: drop-shadow(0 2px 5px color-mix(in srgb, var(--c) 45%, transparent))
}

[data-theme-template="reunion"] .teamgrid.lit .tg-dots circle {
  transform: scale(1)
}

[data-theme-template="reunion"] .teamgrid.lit .tg-dots circle {
  animation: tgtw 4s ease-in-out infinite;
  animation-delay: calc(1.5s + var(--i)*.05s)
}

@keyframes tgtw {

  0%,
  100% {
    opacity: .82
  }

  50% {
    opacity: 1
  }
}

@media (prefers-reduced-motion:reduce) {
  [data-theme-template="reunion"] .teamgrid.lit .tg-dots circle {
    animation: none;
    opacity: 1
  }
}

[data-theme-template="reunion"] .tg-copy {
  max-width: 360px
}

[data-theme-template="reunion"] .tg-copy .eyebrow {
  display: block
}

[data-theme-template="reunion"] .tg-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.25;
  margin-top: 11px;
  color: var(--ink);
  text-wrap: pretty
}

[data-theme-template="reunion"] .tg-line em {
  font-style: normal;
  color: var(--brand)
}

[data-theme-template="reunion"] .tg-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 11px;
  text-wrap: pretty
}

[data-theme-template="reunion"] .tg-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-top: 18px
}

[data-theme-template="reunion"] .tg-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink)
}

[data-theme-template="reunion"] .tg-legend small {
  font-weight: 500;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: .01em
}

[data-theme-template="reunion"] .tg-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18)
}

/* ============ GALLERY ============ */
[data-theme-template="reunion"] .gallery-head {
  text-align: center;
  margin: 56px auto 22px;
  max-width: 680px
}

[data-theme-template="reunion"] .gallery-head .eyebrow {
  display: block;
  margin-bottom: 12px
}

[data-theme-template="reunion"] .gallery-head h3 {
  font-size: clamp(24px, 3vw, 32px)
}

[data-theme-template="reunion"] .gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  grid-auto-rows: 158px
}

[data-theme-template="reunion"] .gphoto {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line)
}

[data-theme-template="reunion"] .gphoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1)
}

[data-theme-template="reunion"] .gphoto:hover img {
  transform: scale(1.06)
}

[data-theme-template="reunion"] .gphoto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, .46))
}

[data-theme-template="reunion"] .gphoto .yr {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6)
}

[data-theme-template="reunion"] .g-a {
  grid-column: span 2;
  grid-row: span 2
}

[data-theme-template="reunion"] .g-b,
[data-theme-template="reunion"] .g-c,
[data-theme-template="reunion"] .g-d,
[data-theme-template="reunion"] .g-e,
[data-theme-template="reunion"] .g-f {
  grid-column: span 2
}

/* ============ REGISTER ============ */
[data-theme-template="reunion"] .register {
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--brand) 14%, var(--paper));
  color: var(--ink);
  border-radius: 32px;
  padding: 62px 40px;
  text-align: center;
  max-width: 1040px;
  margin: 0 auto;
  box-shadow: var(--shadow)
}

[data-theme-template="reunion"] .register::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(72% 120% at 16% 0%, color-mix(in srgb, var(--brand2) 12%, transparent), transparent 60%)
}

[data-theme-template="reunion"] .register .dots {
  position: absolute;
  inset: 0;
  background-image: url('assets/bg-tile.png');
  background-size: 560px auto;
  opacity: .16;
  mix-blend-mode: luminosity;
  mask-image: linear-gradient(180deg, transparent, #000 34%, #000 74%, transparent)
}

[data-theme-template="reunion"] .register .smiley {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 84px;
  height: 84px;
  z-index: 3;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .28));
  animation: spin 14s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

@media (prefers-reduced-motion:reduce) {
  [data-theme-template="reunion"] .register .smiley {
    animation: none
  }
}

[data-theme-template="reunion"] .register>* {
  position: relative;
  z-index: 2
}

[data-theme-template="reunion"] .register .eyebrow {
  color: var(--brand-d)
}

[data-theme-template="reunion"] .register h2 {
  font-size: clamp(30px, 5vw, 52px);
  margin: 14px 0 18px
}

[data-theme-template="reunion"] .register p {
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto
}

[data-theme-template="reunion"] .steps {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 26px 0 30px
}

[data-theme-template="reunion"] .step {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  border-radius: 999px;
  padding: 8px 17px 8px 8px;
  font-size: 14px;
  font-weight: 500
}

[data-theme-template="reunion"] .step b {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px
}

[data-theme-template="reunion"] .register .btn-lg {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .3)
}

[data-theme-template="reunion"] .register .btn-lg:hover {
  filter: brightness(.97);
  transform: translateY(-2px)
}

[data-theme-template="reunion"] .register .micro {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 7px
}

/* ============ FAQ + CONTACT ============ */
[data-theme-template="reunion"] .faq-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  max-width: 1040px;
  margin: 0 auto;
  align-items: start
}

[data-theme-template="reunion"] .faq-side .eyebrow {
  display: block;
  margin-bottom: 12px
}

[data-theme-template="reunion"] .faq-side h2 {
  font-size: clamp(28px, 3.6vw, 38px)
}

[data-theme-template="reunion"] .faq-side p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin: 14px 0 24px;
  text-wrap: pretty
}

[data-theme-template="reunion"] .contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 22px;
  box-shadow: var(--shadow)
}

[data-theme-template="reunion"] .contact-card .row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0
}

[data-theme-template="reunion"] .contact-card .row+.row {
  border-top: 1px solid var(--line)
}

[data-theme-template="reunion"] .contact-card .ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-d);
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 700;
  font-family: var(--font-display)
}

[data-theme-template="reunion"] .contact-card .row a {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px
}

[data-theme-template="reunion"] .contact-card .row a:hover {
  color: var(--brand-d)
}

[data-theme-template="reunion"] .contact-card .row small {
  font-size: 12.5px;
  color: var(--ink-faint);
  display: block;
  font-weight: 500
}

[data-theme-template="reunion"] .faqlist {
  display: flex;
  flex-direction: column;
  gap: 11px
}

[data-theme-template="reunion"] .qa {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: .25s
}

[data-theme-template="reunion"] .qa.open {
  border-color: var(--brand-l);
  box-shadow: var(--shadow)
}

[data-theme-template="reunion"] .qa>button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--ink)
}

[data-theme-template="reunion"] .qa .plus {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  position: relative;
  transition: .25s;
  color: var(--ink-soft)
}

[data-theme-template="reunion"] .qa.open .plus {
  background: var(--brand);
  color: #fff
}

[data-theme-template="reunion"] .qa .plus::before,
[data-theme-template="reunion"] .qa .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px
}

[data-theme-template="reunion"] .qa .plus::before {
  width: 12px;
  height: 2px
}

[data-theme-template="reunion"] .qa .plus::after {
  width: 2px;
  height: 12px;
  transition: transform .25s
}

[data-theme-template="reunion"] .qa.open .plus::after {
  transform: rotate(90deg)
}

[data-theme-template="reunion"] .qa .ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease
}

[data-theme-template="reunion"] .qa .ans p {
  padding: 0 20px 19px;
  color: var(--ink-soft);
  font-size: 15px
}

/* ============ FOOTER ============ */
[data-theme-template="reunion"] footer {
  position: relative;
  margin-top: 60px;
  background: var(--ink);
  color: #fff;
  z-index: 2
}

[data-theme-template="reunion"] .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 42px 0;
  flex-wrap: wrap
}

[data-theme-template="reunion"] .foot .fbrand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px
}

[data-theme-template="reunion"] .foot .fbrand .flockup {
  width: auto;
  height: 54px;
  filter: none
}

[data-theme-template="reunion"] .foot .fbrand .ftag {
  font-size: 13px;
  color: rgba(255, 255, 255, .55)
}

[data-theme-template="reunion"] .foot .fdate {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  text-align: right
}

[data-theme-template="reunion"] .foot .fdate small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .03em;
  margin-top: 4px
}

[data-theme-template="reunion"] .footbar {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .5);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap
}

[data-theme-template="reunion"] .footbar a:hover {
  color: #fff
}

/* ============ REG MODAL ============ */
[data-theme-template="reunion"] .reg-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(27, 32, 21, .55);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s
}

[data-theme-template="reunion"] .reg-overlay.show {
  opacity: 1;
  pointer-events: auto
}

[data-theme-template="reunion"] .reg-modal {
  position: relative;
  background: var(--paper);
  border-radius: 28px;
  max-width: 480px;
  width: 100%;
  padding: 52px 44px 40px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: translateY(20px) scale(.97);
  transition: transform .38s cubic-bezier(.2, 1.2, .4, 1)
}

[data-theme-template="reunion"] .reg-overlay.show .reg-modal {
  transform: none
}

[data-theme-template="reunion"] .reg-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .15s
}

[data-theme-template="reunion"] .reg-close:hover {
  background: var(--line)
}

[data-theme-template="reunion"] .reg-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px color-mix(in srgb, var(--brand) 42%, transparent))
}

[data-theme-template="reunion"] .reg-modal .eyebrow {
  display: block;
  margin-bottom: 12px
}

[data-theme-template="reunion"] .reg-modal h2 {
  font-size: clamp(26px, 5vw, 34px);
  margin-bottom: 20px
}

[data-theme-template="reunion"] .reg-modal p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin-bottom: 12px;
  text-wrap: pretty
}

[data-theme-template="reunion"] .reg-modal p strong {
  color: var(--brand-d);
  font-family: var(--font-display)
}

[data-theme-template="reunion"] .reg-modal .btn {
  margin: 14px auto 0;
  display: inline-flex
}

[data-theme-template="reunion"] .reg-note {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--ink-faint);
  font-weight: 600;
  letter-spacing: .04em
}

@media(max-width:640px) {
  [data-theme-template="reunion"] .reg-modal {
    padding: 44px 26px 34px;
    border-radius: 22px
  }
}

/* ============ TWEAKS PANEL ============ */
[data-theme-template="reunion"] #tw {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  width: 248px;
  display: none;
  flex-direction: column;
  background: rgba(251, 252, 248, .82);
  color: var(--ink);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: .5px solid rgba(255, 255, 255, .7);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 14px 44px rgba(20, 24, 14, .22);
  font-family: var(--font-body)
}

[data-theme-template="reunion"] #tw.show {
  display: flex
}

[data-theme-template="reunion"] #tw .hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 9px 11px 15px
}

[data-theme-template="reunion"] #tw .hd b {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display)
}

[data-theme-template="reunion"] #tw .x {
  border: 0;
  background: transparent;
  color: rgba(27, 32, 21, .45);
  width: 24px;
  height: 24px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 15px
}

[data-theme-template="reunion"] #tw .x:hover {
  background: rgba(0, 0, 0, .06)
}

[data-theme-template="reunion"] #tw .bd {
  padding: 0 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 13px
}

[data-theme-template="reunion"] #tw .lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(27, 32, 21, .45);
  margin-bottom: 6px
}

[data-theme-template="reunion"] #tw .seg {
  display: flex;
  padding: 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .06);
  gap: 2px
}

[data-theme-template="reunion"] #tw .seg button {
  flex: 1;
  border: 0;
  background: transparent;
  color: rgba(27, 32, 21, .6);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: 7px;
  cursor: pointer;
  transition: .15s
}

[data-theme-template="reunion"] #tw .seg button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12)
}

[data-theme-template="reunion"] #tw .sw {
  display: flex;
  gap: 7px
}

[data-theme-template="reunion"] #tw .sw button {
  flex: 1;
  height: 30px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12)
}

[data-theme-template="reunion"] #tw .sw button[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--ink)
}

[data-theme-template="reunion"] #tw .tgrow {
  display: flex;
  align-items: center;
  justify-content: space-between
}

[data-theme-template="reunion"] #tw .tg {
  position: relative;
  width: 36px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .18);
  cursor: pointer;
  transition: .15s
}

[data-theme-template="reunion"] #tw .tg[data-on="1"] {
  background: var(--green)
}

[data-theme-template="reunion"] #tw .tg i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: .15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25)
}

[data-theme-template="reunion"] #tw .tg[data-on="1"] i {
  transform: translateX(16px)
}

[data-theme-template="reunion"] #tw .note {
  font-size: 11px;
  color: rgba(27, 32, 21, .4);
  line-height: 1.4
}

/* ============ RESPONSIVE ============ */
@media (max-width:960px) {
  [data-theme-template="reunion"] .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px
  }

  [data-theme-template="reunion"] .hero-media {
    max-width: 440px;
    margin: 6px auto 22px;
    order: -1
  }

  [data-theme-template="reunion"] .about-grid {
    grid-template-columns: 1fr;
    gap: 36px
  }

  [data-theme-template="reunion"] .cosmos {
    order: -1;
    max-width: 400px
  }

  [data-theme-template="reunion"] .faq-grid {
    grid-template-columns: 1fr;
    gap: 30px
  }

  [data-theme-template="reunion"] .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 140px
  }
}

@media (max-width:640px) {
  [data-theme-template="reunion"] .nav-links {
    display: none
  }

  [data-theme-template="reunion"] .nav>.btn-cta {
    display: none
  }

  [data-theme-template="reunion"] .menu-btn {
    display: flex
  }

  [data-theme-template="reunion"] .mobile-menu {
    display: block
  }

  [data-theme-template="reunion"] .hero-media {
    margin: 50px auto 26px
  }

  [data-theme-template="reunion"] .floatcard.a {
    top: -54px
  }

  [data-theme-template="reunion"] .floatcard.b {
    bottom: -4px;
    top: auto
  }

  [data-theme-template="reunion"] .stack2 {
    left: 8px
  }

  [data-theme-template="reunion"] .wrap {
    padding-inline: 32px
  }

  [data-theme-template="reunion"] .infogrid {
    grid-template-columns: 1fr;
    max-width: 420px
  }

  [data-theme-template="reunion"] .register {
    padding: 46px 26px
  }

  [data-theme-template="reunion"] .register .smiley {
    width: 60px;
    height: 60px;
    top: 14px;
    right: 14px
  }

  [data-theme-template="reunion"] .cd-cell {
    width: calc(50% - 7px);
    max-width: 160px
  }

  [data-theme-template="reunion"] .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 128px
  }

  [data-theme-template="reunion"] .cosmos {
    max-width: 330px
  }

  [data-theme-template="reunion"] .g-a {
    grid-column: span 2;
    grid-row: span 1
  }

  [data-theme-template="reunion"] .g-b,
  [data-theme-template="reunion"] .g-c,
  [data-theme-template="reunion"] .g-d,
  [data-theme-template="reunion"] .g-e,
  [data-theme-template="reunion"] .g-f {
    grid-column: span 1
  }

  [data-theme-template="reunion"] .foot {
    flex-direction: column;
    align-items: flex-start
  }

  [data-theme-template="reunion"] .foot .fdate {
    text-align: left
  }

  [data-theme-template="reunion"] .teamgrid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
    padding: 26px 22px
  }

  [data-theme-template="reunion"] .tg-legend {
    justify-content: center
  }
}

/* ============ ADAPTIVE WELCOME CARD ============ */
.welcome-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-glass) !important;
  color: var(--text-main) !important;
}
.welcome-card h1 {
  color: var(--text-main) !important;
}
.welcome-card p {
  color: var(--text-muted) !important;
}
.welcome-card .welcome-icon {
  color: rgba(0, 0, 0, 0.03) !important;
}
.dark-mode .welcome-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(17, 24, 39, 0.8) 100%) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.dark-mode .welcome-card h1 {
  color: #ffffff !important;
}
.dark-mode .welcome-card p {
  color: rgba(255, 255, 255, 0.7) !important;
}
.dark-mode .welcome-card .welcome-icon {
  color: rgba(255, 255, 255, 0.02) !important;
}