/* ========================================
   WEDDING DASHBOARD — Modern UI
   Glass morphism + rose gold accent
   ======================================== */

:root {
  --rose: #e11d48;
  --rose-light: #fdf2f8;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --gold: #d97706;
  --gold-light: #fef3c7;
  --bg: #fdf2f8;
  --white: #ffffff;
  --text: #1c1917;
  --text-dim: #78716c;
  --text-light: #a8a29e;
  --border: rgba(255,255,255,0.5);
  --border-light: #f0edea;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --font: 'Inter', system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --sidebar-w: 260px;
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font);
  background: #f8f6f4;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--rose-600); text-decoration: none; }
input, select, textarea, button { font-family: inherit; }
img { max-width: 100%; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

/* ========== GLASS ========== */
.glass {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.8);
}
.glass-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.25s var(--transition), box-shadow 0.25s var(--transition);
}
.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.page { min-height: 100vh; }

.login-bg {
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 40%, #fefce8 100%);
  overflow: hidden;
}
.login-bg-shapes { position: absolute; inset: 0; }
.shape {
  position: absolute; border-radius: 50%;
  background: linear-gradient(135deg, rgba(251,113,133,0.15), rgba(244,63,94,0.08));
  animation: floatShape 20s ease-in-out infinite;
}
.shape-1 { width: 400px; height: 400px; top: -100px; right: -80px; }
.shape-2 { width: 300px; height: 300px; bottom: -60px; left: -60px; animation-delay: -5s; background: linear-gradient(135deg, rgba(253,224,71,0.12), rgba(217,119,6,0.06)); }
.shape-3 { width: 200px; height: 200px; top: 40%; left: 10%; animation-delay: -10s; }
.shape-4 { width: 150px; height: 150px; top: 20%; right: 20%; animation-delay: -15s; background: linear-gradient(135deg, rgba(251,113,133,0.1), rgba(253,224,71,0.08)); }
@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.login-particles { position: absolute; inset: 0; }
.particle {
  position: absolute; bottom: -10px;
  background: linear-gradient(135deg, #fb7185, #fbbf24);
  border-radius: 50%;
  animation: riseUp linear infinite;
}
@keyframes riseUp {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.login-container {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 20px;
  position: relative;
}

.login-card {
  width: 100%; max-width: 440px;
  padding: 44px 40px 36px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 28px;
  box-shadow: 0 8px 48px rgba(225,29,72,0.1), 0 2px 8px rgba(0,0,0,0.04);
  text-align: center;
  position: relative;
  z-index: 2;
  animation: cardEntry 0.7s var(--transition);
}
@keyframes cardEntry {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-header { margin-bottom: 32px; }

.login-icon-wrap {
  position: relative; display: inline-block;
  width: 80px; height: 80px; margin-bottom: 20px;
}
.login-icon-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(251,113,133,0.2), rgba(244,63,94,0.1));
  animation: pulseRing 2.5s ease-in-out infinite;
}
@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.3; }
}
.login-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  animation: iconFloat 3s ease-in-out infinite;
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.login-title {
  font-family: var(--serif); font-size: 30px;
  background: linear-gradient(135deg, #1c1917, #e11d48);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.login-sub { font-size: 14px; color: var(--text-dim); }

.login-form {
  display: flex; flex-direction: column; gap: 18px;
  text-align: left;
  padding: 0 4px;
}

.login-field label {
  font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 4px; display: block;
}

.input-icon-wrap {
  position: relative; display: flex; align-items: center;
}
.input-icon-wrap .input-icon {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: #a8a29e;
  pointer-events: none;
  transition: color 0.2s;
  flex-shrink: 0;
  z-index: 1;
}

.login-field .input-icon-wrap input {
  width: 100%; padding: 14px 16px 14px 48px;
  border-radius: 14px;
  border: 1.5px solid #e7e5e4;
  background: rgba(255,255,255,0.9);
  font-size: 14px; color: var(--text);
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  line-height: 1.5;
}
.login-field .input-icon-wrap input:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244,63,94,0.08);
  background: #fff;
}
.login-field .input-icon-wrap:has(input:focus) .input-icon {
  color: var(--rose-500);
}
.login-field .input-icon-wrap input::placeholder { color: #c8c2bc; }

.login-btn {
  margin-top: 4px;
  padding: 15px 24px; font-size: 15px; font-weight: 600;
  border-radius: 14px;
  position: relative; overflow: hidden;
  transition: all 0.3s var(--transition);
  letter-spacing: 0.2px;
}
.login-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.login-btn:hover::before { transform: translateX(100%); }
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(225,29,72,0.35); }
.login-btn:active { transform: translateY(0); }

.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.login-footer { margin-top: 28px; text-align: center; }
.login-divider-text {
  font-size: 10px; color: var(--text-light);
  letter-spacing: 2px; text-transform: uppercase;
}

.login-deco {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 520px; height: 520px;
  pointer-events: none; z-index: 1;
}
.deco-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(251,113,133,0.1);
}
.deco-ring-1 { inset: 0; animation: spinSlow 30s linear infinite; }
.deco-ring-2 { inset: 50px; animation: spinSlow 25s linear infinite reverse; border-color: rgba(253,224,71,0.08); }
@keyframes spinSlow { to { transform: rotate(360deg); } }


/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  position: fixed; top: 0; left: 0; height: 100vh; width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--border-light);
  display: flex; flex-direction: column;
  z-index: 50;
  transition: transform 0.35s var(--transition);
}

.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-logo-wrap {
  display: flex; align-items: center; gap: 12px;
}
.sidebar-logo-icon {
  font-size: 24px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(244,63,94,0.08), rgba(253,224,71,0.05));
  border-radius: 12px;
  flex-shrink: 0;
}
.sidebar-logo {
  font-family: var(--serif); font-size: 20px; color: var(--text);
  line-height: 1.2; letter-spacing: -0.3px;
}
.sidebar-tag {
  font-size: 10px; color: var(--text-light);
  display: block; margin-top: 2px;
  letter-spacing: 0.5px; text-transform: uppercase;
  font-weight: 500;
}

.sidebar-nav {
  flex: 1; overflow-y: auto; padding: 16px 12px;
  display: flex; flex-direction: column; gap: 2px;
}

.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 500;
  color: var(--text-dim);
  transition: all 0.2s var(--transition);
  position: relative;
  letter-spacing: -0.1px;
}
.sidebar-nav a:hover {
  background: #fafaf9;
  color: var(--text);
}
.sidebar-nav a.active {
  background: linear-gradient(135deg, rgba(244,63,94,0.08), rgba(244,63,94,0.04));
  color: var(--rose-600);
  font-weight: 600;
}
.sidebar-nav a.active::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, #f43f5e, #e11d48);
}
.sidebar-nav a .nav-icon {
  font-size: 17px; width: 22px; text-align: center;
  flex-shrink: 0;
}

.sidebar-user {
  padding: 16px 16px;
  border-top: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-avatar {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, #fb7185, #f43f5e);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.sidebar-userinfo {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}
.sidebar-userinfo span:first-child {
  font-weight: 600; color: var(--text); font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-userinfo span:last-child {
  color: var(--text-light); font-size: 11px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}


/* ============================================
   MAIN LAYOUT
   ============================================ */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

.topbar {
  position: sticky; top: 0; z-index: 30;
  padding: 20px 32px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border-light);
}
.topbar h2 {
  font-family: var(--serif); font-size: 24px; color: var(--text);
  letter-spacing: -0.3px;
}
.topbar span {
  font-size: 13px; color: var(--text-dim); display: block; margin-top: 3px;
}

.content {
  padding: 28px 32px;
  animation: contentFade 0.3s ease;
}
@keyframes contentFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 12px; font-size: 14px; font-weight: 500;
  border: none; cursor: pointer;
  transition: all 0.25s var(--transition);
  letter-spacing: -0.1px;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  box-shadow: 0 2px 8px rgba(244,63,94,0.25);
}
.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(244,63,94,0.35);
  transform: translateY(-1px);
  background: linear-gradient(135deg, #fb7185, #f43f5e);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(244,63,94,0.2); }

.btn-secondary {
  background: var(--white); color: var(--text-dim);
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.btn-secondary:hover { background: #fafaf9; color: var(--text); border-color: #e7e5e4; }

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff; box-shadow: 0 2px 8px rgba(239,68,68,0.2);
}
.btn-danger:hover { box-shadow: 0 4px 16px rgba(239,68,68,0.3); transform: translateY(-1px); }

.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 14px; }
.btn-full { width: 100%; }

.btn-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer;
  font-size: 16px; color: var(--text-light);
  transition: all 0.2s;
}
.btn-icon:hover { background: #f5f5f4; color: var(--rose-600); }
.btn-icon.danger:hover { background: #fef2f2; color: #ef4444; }


/* ============================================
   FORM FIELDS
   ============================================ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px; font-weight: 600; color: var(--text);
  letter-spacing: -0.1px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  border: 1.5px solid #e7e5e4; background: var(--white);
  font-size: 14px; color: var(--text);
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244,63,94,0.06);
}
.field select { cursor: pointer; }
.field textarea { resize: vertical; min-height: 80px; }
.field input::placeholder, .field textarea::placeholder { color: #c8c2bc; }


/* ============================================
   STAT CARDS
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.cards-grid > * {
  animation: cardSlide 0.4s var(--transition) backwards;
}
.cards-grid > *:nth-child(1) { animation-delay: 0.05s; }
.cards-grid > *:nth-child(2) { animation-delay: 0.1s; }
.cards-grid > *:nth-child(3) { animation-delay: 0.15s; }
.cards-grid > *:nth-child(4) { animation-delay: 0.2s; }
.cards-grid > *:nth-child(5) { animation-delay: 0.25s; }
@keyframes cardSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
}
.stat-card .stat-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.stat-card .stat-value {
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.5px; line-height: 1;
}
.stat-card .stat-label {
  font-size: 12px; color: var(--text-dim);
  margin-top: 2px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.3px;
}


/* ============================================
   TABLE
   ============================================ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
thead th {
  padding: 14px 16px; text-align: left;
  font-weight: 600; color: var(--text-dim); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.6px;
  background: #fafaf9;
  border-bottom: 1px solid var(--border-light);
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid #f5f5f4;
  vertical-align: middle;
}
tbody tr {
  transition: background 0.15s;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover {
  background: linear-gradient(90deg, rgba(254,226,226,0.15), rgba(254,226,226,0.03));
}


/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  letter-spacing: -0.1px;
}
.badge-success { background: #ecfdf5; color: #059669; }
.badge-danger  { background: #fef2f2; color: #dc2626; }
.badge-warning { background: #fffbeb; color: #d97706; }
.badge-info    { background: #eff6ff; color: #2563eb; }
.badge-default { background: #f5f5f4; color: #78716c; }


/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay::before {
  content: ''; position: fixed; inset: 0;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-box {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px; max-height: 85vh;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  animation: modalEntry 0.35s var(--transition);
}
@keyframes modalEntry {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.modal-header h3 {
  font-family: var(--serif); font-size: 20px;
  letter-spacing: -0.3px;
}
.modal-body { display: flex; flex-direction: column; gap: 16px; }
.modal-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border-light);
}


/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  padding: 14px 24px; border-radius: 14px;
  font-size: 14px; font-weight: 600; color: #fff;
  animation: toastEntry 0.4s var(--transition);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.06);
  letter-spacing: -0.1px;
}
.toast.success { background: linear-gradient(135deg, #059669, #047857); }
.toast.error   { background: linear-gradient(135deg, #ef4444, #dc2626); }
.toast.info    { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
@keyframes toastEntry {
  from { transform: translateY(20px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}


/* ============================================
   HELPERS
   ============================================ */
.msg-error {
  padding: 12px 16px; border-radius: 12px;
  background: #fef2f2; color: #dc2626;
  font-size: 13px; text-align: center; font-weight: 500;
  border: 1px solid #fecaca;
}
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mb-16 { margin-bottom: 16px; }
.mt-16 { margin-top: 16px; }
.text-center { text-align: center; }
.text-dim { color: var(--text-dim); }


/* ============================================
   GALLERY GRID
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.gallery-item {
  position: relative; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s var(--transition), box-shadow 0.3s;
}
.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px;
  opacity: 0; transition: opacity 0.25s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item .gallery-title { color: #fff; font-size: 13px; font-weight: 600; }


/* ============================================
   SEARCH BAR
   ============================================ */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 12px;
  border: 1.5px solid var(--border-light); background: var(--white);
  width: 260px;
  transition: border 0.2s, box-shadow 0.2s;
}
.search-bar:focus-within {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 3px rgba(244,63,94,0.06);
}
.search-bar input {
  border: none; outline: none; background: transparent;
  font-size: 14px; flex: 1; color: var(--text);
}
.search-bar input::placeholder { color: #c8c2bc; }


/* ============================================
   MENU TOGGLE (MOBILE)
   ============================================ */
.menu-toggle {
  display: none; position: fixed; top: 14px; left: 14px; z-index: 60;
  width: 40px; height: 40px; border-radius: 12px; font-size: 20px;
  border: 1px solid var(--border-light); background: var(--white);
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.2s;
}
.menu-toggle:hover { background: #fafaf9; }


/* ============================================
   IMAGE PREVIEW / THUMBNAIL
   ============================================ */
.img-preview {
  width: 100%; max-height: 200px; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--border-light);
}
.img-thumb {
  width: 60px; height: 60px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--border-light);
}


/* ============================================
   WHATSAPP MESSAGE BOX
   ============================================ */
.wa-msg-box {
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 14px; padding: 16px;
  font-size: 13px; white-space: pre-wrap;
  max-height: 200px; overflow-y: auto;
  color: #166534; line-height: 1.7;
}


/* ============================================
   CONFIRM DIALOG
   ============================================ */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 150;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.confirm-box {
  background: var(--white); border-radius: 20px; padding: 28px;
  max-width: 400px; width: 100%; text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  animation: modalEntry 0.35s var(--transition);
}
.confirm-box h3 { font-family: var(--serif); margin-bottom: 8px; font-size: 20px; }
.confirm-box p { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; line-height: 1.6; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }


/* ============================================
   STORY CARD
   ============================================ */
.story-card {
  display: flex; gap: 16px; padding: 18px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 12px;
  transition: transform 0.25s var(--transition), box-shadow 0.25s;
}
.story-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.story-card img {
  width: 100px; height: 100px; object-fit: cover;
  border-radius: 12px; flex-shrink: 0;
}
.story-content { flex: 1; }
.story-content h4 {
  font-family: var(--serif); font-size: 18px;
  margin-bottom: 4px; letter-spacing: -0.2px;
}
.story-content .story-date {
  font-size: 12px; color: var(--text-light); margin-bottom: 8px;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px;
}
.story-content p { font-size: 14px; color: var(--text-dim); line-height: 1.7; }


/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center; padding: 56px 24px;
  color: var(--text-dim);
}
.empty-state .empty-icon {
  font-size: 52px; margin-bottom: 16px;
  opacity: 0.7;
}
.empty-state h4 { font-size: 18px; margin-bottom: 6px; color: var(--text); }
.empty-state p { font-size: 14px; max-width: 320px; margin: 0 auto; line-height: 1.6; }


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .topbar { padding: 16px 60px 16px 60px; }
  .content { padding: 20px 16px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .search-bar { width: 100%; }
}


/* ============================================
   REGISTER WIZARD
   ============================================ */
.register-container {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 20px;
  position: relative;
}
.register-card {
  width: 100%; max-width: 680px;
  padding: 32px 36px 28px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 28px;
  box-shadow: 0 8px 48px rgba(225,29,72,0.1), 0 2px 8px rgba(0,0,0,0.04);
  position: relative; z-index: 2;
  animation: cardEntry 0.7s var(--transition);
}

.register-link {
  color: var(--rose-600); font-size: 13px;
  transition: color 0.2s;
}
.register-link:hover { color: var(--rose-700); }

.register-footer {
  margin-top: 20px; text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* Stepper */
.wizard-stepper {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 28px;
  padding: 0 8px;
}
.wizard-stepper .step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 60px;
}
.wizard-stepper .step-num {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  background: #f5f5f4; color: var(--text-light);
  border: 2px solid var(--border-light);
  transition: all 0.3s var(--transition);
}
.wizard-stepper .step-label {
  font-size: 11px; font-weight: 600; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.3px;
  transition: color 0.3s;
}
.wizard-stepper .step.active .step-num {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff; border-color: transparent;
  box-shadow: 0 2px 10px rgba(244,63,94,0.3);
}
.wizard-stepper .step.active .step-label {
  color: var(--rose-600);
}
.wizard-stepper .step.completed .step-num {
  background: #059669; color: #fff; border-color: transparent;
}
.wizard-stepper .step.completed .step-label {
  color: #059669;
}
.wizard-stepper .step-line {
  flex: 1; height: 2px; background: var(--border-light);
  margin: 0 4px; margin-bottom: 22px;
  border-radius: 2px;
  transition: background 0.3s;
}
.wizard-stepper .step.completed + .step-line,
.wizard-stepper .step.active + .step-line {
  background: linear-gradient(90deg, #059669, var(--border-light));
}

/* Wizard Content */
.wizard-content {
  transition: opacity 0.25s, transform 0.25s var(--transition);
  min-height: 280px;
}
.wizard-title {
  font-family: var(--serif); font-size: 24px;
  letter-spacing: -0.3px; margin-bottom: 6px;
  text-align: center;
}
.wizard-desc {
  font-size: 14px; color: var(--text-dim);
  text-align: center; margin-bottom: 24px;
}
.wizard-form {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 400px; margin: 0 auto;
}

/* Wizard Navigation */
.wizard-nav {
  display: flex; align-items: center; gap: 10px;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

/* Wizard Event Card */
.wizard-event-card {
  background: #fafaf9; border: 1px solid var(--border-light);
  border-radius: 14px; padding: 16px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.wizard-event-card:focus-within {
  border-color: var(--rose-500);
}

/* ============================================
   THEME SELECTION GRID
   ============================================ */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
.theme-card {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border-light);
  background: var(--white);
  transition: all 0.25s var(--transition);
  animation: cardSlide 0.4s var(--transition) backwards;
}
.theme-card:nth-child(1) { animation-delay: 0.05s; }
.theme-card:nth-child(2) { animation-delay: 0.1s; }
.theme-card:nth-child(3) { animation-delay: 0.15s; }
.theme-card:nth-child(4) { animation-delay: 0.2s; }
.theme-card:nth-child(5) { animation-delay: 0.25s; }
.theme-card:nth-child(6) { animation-delay: 0.3s; }
.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d6d3d1;
}
.theme-card.selected {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 3px rgba(244,63,94,0.12), var(--shadow-md);
}
.theme-preview {
  position: relative;
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.theme-preview-inner {
  width: 80%;
  text-align: center;
}
.theme-check {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--rose-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(225,29,72,0.3);
  animation: checkPop 0.3s var(--transition);
}
@keyframes checkPop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.theme-info {
  padding: 12px 14px;
}
.theme-info h4 {
  font-family: var(--serif); font-size: 15px;
  margin-bottom: 3px; letter-spacing: -0.2px;
}
.theme-info p {
  font-size: 11px; color: var(--text-light);
  line-height: 1.4;
}

/* Responsive theme grid */
@media (max-width: 768px) {
  .register-card { padding: 24px 20px 20px; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .theme-preview { height: 120px; }
  .wizard-title { font-size: 20px; }
}
