/* ═══════════════════════════════════════════════════════════════
   Kirim Undangan Digital — Design System
   Theme: Deep Purple & Gold (Elegant Wedding/Event)
═══════════════════════════════════════════════════════════════ */

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

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-base:       #080810;
  --bg-surface:    #0f0f1a;
  --bg-card:       #141428;
  --bg-elevated:   #1a1a30;

  --purple-900:    #1e1b4b;
  --purple-800:    #2d2666;
  --purple-700:    #3d3580;
  --purple-600:    #5b21b6;
  --purple-500:    #7c3aed;
  --purple-400:    #a78bfa;
  --purple-300:    #c4b5fd;

  --gold-500:      #d97706;
  --gold-400:      #f59e0b;
  --gold-300:      #fbbf24;
  --gold-200:      #fde68a;

  --text-primary:  #f0f0ff;
  --text-secondary:#a0a0c0;
  --text-muted:    #60607a;

  --border-subtle: rgba(124, 58, 237, 0.15);
  --border-light:  rgba(124, 58, 237, 0.3);

  --green-500:  #10b981;
  --green-bg:   rgba(16, 185, 129, 0.1);
  --yellow-500: #f59e0b;
  --yellow-bg:  rgba(245, 158, 11, 0.1);
  --red-500:    #ef4444;
  --red-bg:     rgba(239, 68, 68, 0.1);
  --blue-500:   #3b82f6;
  --blue-bg:    rgba(59, 130, 246, 0.1);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.2);

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--purple-600); border-radius: 3px; }

/* ─── Layout ────────────────────────────────────────────────── */
.app-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* ─── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--purple-500), var(--gold-500));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.sidebar-logo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple-300), var(--gold-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.sidebar-logo p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sidebar-nav {
  padding: 12px 0;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
  border-left: 3px solid transparent;
  font-weight: 500;
  font-size: 13.5px;
  user-select: none;
}

.nav-item:hover {
  background: rgba(124, 58, 237, 0.08);
  color: var(--purple-300);
}

.nav-item.active {
  background: rgba(124, 58, 237, 0.12);
  color: var(--purple-300);
  border-left-color: var(--purple-400);
}

.nav-item .nav-icon { font-size: 16px; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
}

.server-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.status-dot.online { background: var(--green-500); box-shadow: 0 0 6px var(--green-500); animation: pulse 2s infinite; }
.status-dot.offline { background: var(--red-500); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ─── Main Content ──────────────────────────────────────────── */
.main-content {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.page-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(to right, var(--bg-surface), var(--bg-base));
}

.page-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.page-header p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.page-body {
  padding: 28px 32px;
  flex: 1;
}

/* ─── Stats Cards ───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
}

.stat-card.total::before    { background: linear-gradient(90deg, var(--purple-500), var(--purple-300)); }
.stat-card.terkirim::before { background: linear-gradient(90deg, var(--blue-500), #60a5fa); }
.stat-card.dibuka::before   { background: linear-gradient(90deg, var(--green-500), #34d399); }
.stat-card.draft::before    { background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); }

.stat-card:hover { transform: translateY(-2px); border-color: var(--border-light); }

.stat-icon {
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card.total    .stat-value { color: var(--purple-300); }
.stat-card.terkirim .stat-value { color: #60a5fa; }
.stat-card.dibuka   .stat-value { color: var(--green-500); }
.stat-card.draft    .stat-value { color: var(--gold-300); }

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-body { padding: 24px; }

/* ─── Form ──────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.span2 { grid-column: span 2; }

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="tel"],
textarea,
select {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

input::placeholder,
textarea::placeholder { color: var(--text-muted); }

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

select option { background: var(--bg-elevated); }

.input-hint {
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
  color: white;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-400), var(--purple-500));
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: #1a1a00;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red-500);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--red-500);
}

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-full { width: 100%; }

.btn-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}
.btn-wa:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  transform: translateY(-1px);
}

/* ─── Share Buttons Row ─────────────────────────────────────── */
.share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ─── Preview Box ───────────────────────────────────────────── */
.preview-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-secondary);
  min-height: 100px;
  line-height: 1.7;
  font-family: 'Inter', monospace;
}

.preview-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

/* ─── Link Box ──────────────────────────────────────────────── */
.link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  font-family: monospace;
  color: var(--purple-300);
  word-break: break-all;
}

.link-box .copy-icon {
  cursor: pointer;
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 14px;
  transition: color var(--transition);
}
.link-box .copy-icon:hover { color: var(--purple-400); }

/* ─── Status Badges ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.badge-draft    { background: var(--yellow-bg); color: var(--yellow-500); border: 1px solid rgba(245,158,11,0.2); }
.badge-terkirim { background: var(--blue-bg); color: var(--blue-500); border: 1px solid rgba(59,130,246,0.2); }
.badge-dibuka   { background: var(--green-bg); color: var(--green-500); border: 1px solid rgba(16,185,129,0.2); }

.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ─── Table ─────────────────────────────────────────────────── */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead tr {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

tbody tr {
  transition: background var(--transition);
}

tbody tr:hover { background: rgba(124, 58, 237, 0.04); }
tbody tr:last-child td { border-bottom: none; }

.td-name { font-weight: 600; color: var(--text-primary); }
.td-wa   { font-family: monospace; color: var(--text-secondary); font-size: 12px; }
.td-time { color: var(--text-muted); font-size: 12px; }
.td-actions { white-space: nowrap; }

/* ─── Filters & Search ──────────────────────────────────────── */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-input-wrap input {
  padding-left: 36px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.filter-tab {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
  border: none;
  background: none;
  font-family: inherit;
}

.filter-tab:hover { color: var(--text-primary); }
.filter-tab.active {
  background: var(--purple-600);
  color: white;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

/* ─── Empty State ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h4 { font-size: 15px; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state p { font-size: 13px; }

/* ─── Toast Notifications ───────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  min-width: 260px;
  max-width: 380px;
}

.toast.success { border-color: rgba(16, 185, 129, 0.4); }
.toast.error   { border-color: rgba(239, 68, 68, 0.4); }
.toast.info    { border-color: rgba(124, 58, 237, 0.4); }

.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-out { animation: slideOut 0.3s ease forwards; }

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

/* ─── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  max-width: 520px;
  width: 100%;
  animation: scaleIn 0.2s ease;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 { font-size: 16px; font-weight: 700; }

.modal-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--red-bg); color: var(--red-500); }

.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ─── Contact Picker ────────────────────────────────────────── */
.contact-picker {
  position: relative;
}

.contact-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
}

.contact-option {
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-option:hover { background: rgba(124, 58, 237, 0.1); }

.contact-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-800));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-200);
  flex-shrink: 0;
}

.contact-info .name  { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.contact-info .phone { font-size: 11px; color: var(--text-muted); }

/* ─── Divider ───────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 20px 0;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* ─── Section in Send Form ──────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--purple-400);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-light), transparent);
}

/* ─── Spinner ───────────────────────────────────────────────── */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Page: Undangan (Public) ───────────────────────────────── */
.invitation-page {
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #1e1b4b 0%, #080810 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.inv-bg-ornament {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.inv-bg-ornament::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.inv-bg-ornament::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(217,119,6,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.invitation-card {
  background: rgba(20, 20, 40, 0.85);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow),
              inset 0 1px 0 rgba(255,255,255,0.05);
  max-width: 480px;
  width: 100%;
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(20px);
  animation: floatIn 0.8s ease;
}

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

.inv-header {
  background: linear-gradient(135deg, var(--purple-800), var(--purple-900));
  padding: 40px 32px 32px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.inv-ornament {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
  animation: rotate 20s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }

.inv-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-400);
  margin-bottom: 8px;
  font-weight: 600;
}

.inv-couple {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.inv-body {
  padding: 32px;
}

.inv-to-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.inv-to-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--purple-300);
  margin-bottom: 24px;
}

.inv-message {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

.inv-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.inv-detail {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.inv-detail .detail-icon { font-size: 20px; margin-bottom: 8px; display: block; }
.inv-detail .detail-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}
.inv-detail .detail-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
}

.inv-footer {
  background: var(--bg-elevated);
  padding: 16px 32px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .app-wrapper { grid-template-columns: 1fr; padding-bottom: 70px; }
  .sidebar {
    height: auto;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    top: auto;
    z-index: 99;
    border-right: none;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
  }
  .sidebar-logo { display: none; }
  .sidebar-footer { display: none; }
  
  .sidebar-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 0;
  }
  .nav-item {
    flex: 1;
    flex-direction: column;
    padding: 10px 4px;
    border-left: none;
    border-top: 3px solid transparent;
    font-size: 11px;
    gap: 4px;
    text-align: center;
  }
  .nav-item.active {
    border-top-color: var(--purple-400);
    background: rgba(124, 58, 237, 0.08);
  }
  .nav-item .nav-icon { font-size: 20px; }
  
  .page-header { padding: 16px 20px; }
  .page-body { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.span2 { grid-column: span 1; }
}

@media (max-width: 600px) {
  .share-buttons { grid-template-columns: 1fr; }
  .page-header h2 { font-size: 18px; }
  .stat-value { font-size: 24px; }
  .stat-card { padding: 16px; }
  
  /* Buat grid content jadi stacked di mobile */
  #tab-content > div { grid-template-columns: 1fr !important; }
  
  /* Table responsive wrapper scrollable */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Undangan Fullscreen di Mobile */
  .invitation-page {
    padding: 0;
  }
  .invitation-card {
    border-radius: 0;
    border: none;
    min-height: 100vh;
    box-shadow: none;
  }
}
