
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Playfair+Display:ital,wght@0,500;0,700;1,500&display=swap');

:root {
  --sage-bg: #79948c;
  --sage-dark: #5c756e;
  --sage-soft: #e6eeeb;
  --cream-bg: #f6f5f0;
  --accent-yellow: #f4c16e;
  --text-dark: #232b28;
  --text-muted: #646e6a;
  --white: #ffffff;
  --border-light: rgba(0, 0, 0, 0.08);
  --danger-red: #c94a4a;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--cream-bg);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  animation: pageFadeIn 0.45s var(--ease-smooth);
}

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

/* --- TOP NAVIGATION BAR --- */
.navbar {
  background-color: var(--sage-bg);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4%;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.25s var(--ease-smooth);
}

.brand:hover {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-item {
  position: relative;
  padding: 0.5rem 0;
}

.nav-item > a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.25s var(--ease-smooth);
}

.nav-item > a:hover {
  opacity: 0.8;
}

/* Smooth Hover Dropdowns */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s var(--ease-smooth);
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 225px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0;
  list-style: none;
  z-index: 1001;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.65rem 1.2rem;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-menu li a:hover {
  background-color: var(--cream-bg);
  color: var(--sage-dark);
  padding-left: 1.45rem;
}

/* --- AVATARS --- */
.pfp-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--accent-yellow);
  flex-shrink: 0;
}

.pfp-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--accent-yellow);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* --- USER PROFILE PILL --- */
.user-menu {
  position: relative;
}

.user-trigger {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.9rem 0.35rem 0.4rem;
  border-radius: 50px;
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: background 0.25s var(--ease-smooth), transform 0.2s ease;
}

.user-trigger:hover {
  background: rgba(255, 255, 255, 0.24);
}

.profile-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s var(--ease-smooth);
  position: absolute;
  right: 0;
  top: 118%;
  background: var(--white);
  min-width: 205px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  padding: 0.6rem 0;
  list-style: none;
}

.profile-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-dropdown li a {
  display: block;
  padding: 0.65rem 1.2rem;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.profile-dropdown li a:hover {
  background: var(--cream-bg);
}

.divider {
  height: 1px;
  background: var(--border-light);
  margin: 0.4rem 0;
}

/* --- HERO SECTION --- */
.hero {
  background-color: var(--sage-bg);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4.5rem 8% 5.5rem;
  gap: 3rem;
}

.hero-tag {
  font-size: 0.75rem;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: italic;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 2rem;
}

.btn-outline {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.3s var(--ease-smooth);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--sage-dark);
  transform: translateY(-2px);
}

.hero-collage {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-collage .circle-accent {
  position: absolute;
  bottom: -25px;
  right: 10%;
  width: 240px;
  height: 240px;
  background: var(--accent-yellow);
  border-radius: 50%;
  z-index: 1;
}

.hero-collage img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  border-radius: 6px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
  transition: transform 0.4s var(--ease-smooth);
}

.hero-collage img:hover {
  transform: scale(1.015);
}

/* --- FEED & CARDS --- */
.feed-container {
  max-width: 720px;
  margin: 3.5rem auto;
  padding: 0 1.2rem;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.live-badge {
  background: #e3f2ed;
  color: #1f6e56;
  padding: 0.32rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

.post-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.6rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.event-date-pill {
  background: var(--cream-bg);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sage-dark);
}

.post-caption {
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.post-image {
  width: 100%;
  border-radius: 12px;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.post-admin-bar {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}

/* --- LIVE EVENT UPDATES GALLERY (/username.id/Live-Event-Updates) --- */
.showcase-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.showcase-banner {
  background: var(--white);
  border-radius: 18px;
  padding: 2.2rem 2.5rem;
  margin-bottom: 2.8rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.route-pill {
  display: inline-block;
  background: var(--sage-soft);
  color: var(--sage-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.showcase-banner h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  line-height: 1.2;
}

.showcase-banner p {
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 560px;
  margin-top: 0.35rem;
}

.admin-controls-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* 5 Unique Editorial Slot Designs */
.gallery-slots {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.slot-card {
  background: var(--white);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
}

.slot-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
}

/* Design 1: Full-Width Hero Editorial */
.slot-design-1 .slot-media-frame {
  height: 410px;
  border-radius: 14px;
}

/* Design 2: Split Left Photo + Right Editorial Story */
.slot-design-2 {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: center;
}
.slot-design-2 .slot-media-frame {
  height: 330px;
  border-radius: 14px;
}

/* Design 3: Arch Top Portrait + Side Elaboration */
.slot-design-3 {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: center;
}
.slot-design-3 .slot-media-frame {
  order: 2;
  height: 360px;
  border-radius: 180px 180px 16px 16px;
}
.slot-design-3 .slot-content {
  order: 1;
}

/* Design 4: Soft Sage Polaroid Spotlight */
.slot-design-4 {
  background: linear-gradient(135deg, #ffffff 65%, #edf3f0 100%);
  border: 1px solid rgba(121, 148, 140, 0.2);
}
.slot-design-4 .slot-media-frame {
  height: 350px;
  border-radius: 12px;
  border: 8px solid var(--cream-bg);
}

/* Design 5: Warm Yellow Accent Capsule Frame */
.slot-design-5 {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: center;
  border-left: 6px solid var(--accent-yellow);
}
.slot-design-5 .slot-media-frame {
  height: 300px;
  border-radius: 28px;
}

/* Blank Dropzone & Uploaded Image Frame */
.slot-media-frame {
  position: relative;
  width: 100%;
  background: var(--cream-bg);
  border: 2px dashed rgba(92, 117, 110, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem;
  transition: all 0.3s var(--ease-smooth);
}

.slot-media-frame.has-image {
  border: none;
  padding: 0;
}

.slot-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-smooth);
}

.slot-card:hover .slot-media-frame img {
  transform: scale(1.02);
}

.blank-placeholder {
  color: var(--sage-dark);
  pointer-events: none;
}

.blank-placeholder strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.blank-placeholder span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.slot-upload-overlay {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.slot-content {
  padding-top: 1.2rem;
}

.slot-design-2 .slot-content,
.slot-design-3 .slot-content,
.slot-design-5 .slot-content {
  padding-top: 0;
}

.slot-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--sage-dark);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.slot-title-display {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  line-height: 1.25;
  margin-bottom: 0.65rem;
  color: var(--text-dark);
}

.slot-desc-display {
  font-size: 0.98rem;
  color: #46504c;
  line-height: 1.75;
  white-space: pre-line;
}

/* Editable Inputs inside Slot when Admin Mode is ON */
.slot-edit-fields {
  display: none;
  margin-top: 0.8rem;
}

body.admin-editing .slot-edit-fields {
  display: block;
}

body.admin-editing .slot-view-text {
  display: none;
}

.slot-title-input {
  width: 100%;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 0.6rem;
}

.slot-desc-input {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0.7rem 0.85rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: vertical;
}

/* --- BUTTONS --- */
.btn-primary {
  width: 100%;
  padding: 0.85rem;
  background: var(--sage-dark);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.25s var(--ease-smooth);
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  background: var(--sage-dark);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.86rem;
  transition: all 0.25s var(--ease-smooth);
}

.btn-sm:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-danger-sm {
  padding: 0.45rem 0.95rem;
  background: #fdecec;
  color: var(--danger-red);
  border: 1px solid #f5c2c2;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.btn-danger-sm:hover {
  background: var(--danger-red);
  color: var(--white);
}

.btn-ghost-sm {
  padding: 0.45rem 0.95rem;
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.btn-ghost-sm:hover {
  background: var(--cream-bg);
}

.btn-google {
  width: 100%;
  padding: 0.8rem;
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid #ccc;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.8rem;
}

/* --- FLOATING MESSENGER --- */
.messenger-fab {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--sage-dark);
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 1200;
  transition: transform 0.25s var(--ease-smooth);
}

.messenger-fab:hover {
  transform: scale(1.06);
}

.chat-drawer {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s var(--ease-smooth);
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 330px;
  height: 430px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1200;
}

.chat-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-header {
  background: var(--sage-bg);
  color: var(--white);
  padding: 1rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}

.chat-search {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.chat-search input {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
}

.friend-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
}

.friend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem;
  border-radius: 8px;
}

.friend-row:hover {
  background: var(--cream-bg);
}

.friend-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.friend-names span {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
}

.friend-names small {
  color: #777;
  font-size: 0.78rem;
}

/* --- AUTH & SETTINGS SHARED --- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-bg);
  padding: 1.5rem;
}

.auth-card {
  background: var(--white);
  width: 100%;
  max-width: 410px;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.auth-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.auth-card p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  background: var(--white);
}

.auth-switch {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.88rem;
}

.settings-layout {
  max-width: 960px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

.settings-sidebar {
  background: var(--white);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.settings-user-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.settings-user-badge strong {
  display: block;
  font-size: 0.95rem;
}

.settings-user-badge small {
  color: #777;
  font-size: 0.8rem;
}

.settings-tabs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.settings-tab-btn {
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.9rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
}

.settings-tab-btn:hover {
  background: var(--cream-bg);
}

.settings-tab-btn.active {
  background: var(--sage-bg);
  color: var(--white);
  font-weight: 700;
}

.settings-panel {
  display: none;
  background: var(--white);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.settings-panel.active {
  display: block;
}

.settings-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  margin-bottom: 0.3rem;
}

.settings-panel > p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border-light);
  gap: 1rem;
}

.setting-row-info strong {
  display: block;
  font-size: 0.95rem;
}

.setting-row-info span {
  font-size: 0.84rem;
  color: #666;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 25px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: 0.25s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.25s;
}

input:checked + .slider {
  background-color: var(--sage-dark);
}

input:checked + .slider:before {
  transform: translateX(21px);
}

.status-pill {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #fdf3dc;
  color: #8a6419;
}

.status-pill.enabled {
  background: #e3f2ed;
  color: #1f6e56;
}

.session-box {
  background: var(--cream-bg);
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  margin-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.storage-meter {
  background: var(--cream-bg);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
}

.storage-bar-bg {
  width: 100%;
  height: 10px;
  background: #e2e0d8;
  border-radius: 50px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.storage-bar-fill {
  height: 100%;
  background: var(--sage-dark);
  width: 5%;
  transition: width 0.3s ease;
}

.photo-preview-box {
  position: relative;
  margin-top: 0.8rem;
  display: none;
}

.photo-preview-box img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 820px) {
  .hero,
  .settings-layout,
  .slot-design-2,
  .slot-design-3,
  .slot-design-5 {
    grid-template-columns: 1fr;
  }
  .slot-design-3 .slot-media-frame {
    order: 1;
  }
  .slot-design-3 .slot-content {
    order: 2;
  }
}

/* Functional additions only: original gallery and homepage design above is unchanged. */
[hidden] {display:none!important}
.friends-panel {max-width:900px;margin:2rem auto;padding:1.5rem;background:white;border-radius:18px;box-shadow:0 8px 26px #0000000a}
.friends-panel h2 {font-family:'Playfair Display',serif;margin-bottom:1rem}
.friends-panel input {width:100%;padding:.8rem;border:1px solid #ccc;border-radius:9px;font:inherit}
.friend-result {display:flex;align-items:center;gap:.8rem;padding:1rem;border-bottom:1px solid #eee}
.friend-result strong {display:block}
.friend-result small {color:#666}
.friend-result button {margin-left:auto}
.gallery-image-button {display:block;width:100%;height:100%;padding:0;border:0;background:none;cursor:zoom-in}
.gallery-image-button img {width:100%;height:100%;object-fit:cover}
.image-lightbox {position:fixed;inset:0;z-index:5000;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center;padding:3rem 1rem}
.image-lightbox img {max-width:100%;max-height:100%;object-fit:contain}
.image-lightbox button {position:absolute;top:1rem;right:1rem;border:0;border-radius:50%;background:white;color:#222;font-size:1.6rem;width:44px;height:44px;cursor:pointer}
.notice {color:#a13434;margin:.7rem 0}
@media(max-width:820px){.nav-links{gap:.5rem;flex-wrap:wrap}.navbar{flex-wrap:wrap;gap:1rem}.friends-panel{margin:1rem;padding:1rem}}

/* Standalone Friends pages */
.showcase-wrapper > .friends-panel{max-width:760px;margin:0 auto;background:#fff;border-radius:18px;padding:2rem;box-shadow:0 8px 26px rgba(0,0,0,.05)}
.showcase-wrapper > .friends-panel h1{font-family:'Playfair Display',serif;font-size:2rem;margin-bottom:.6rem}
.showcase-wrapper > .friends-panel p{margin-bottom:1rem;color:var(--text-muted)}
.showcase-wrapper > .friends-panel input{width:100%;padding:.85rem;border:1px solid #ccc;border-radius:8px;margin:.5rem 0 1rem;font:inherit}
.showcase-wrapper .friend-result{display:flex;align-items:center;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--border-light)}
.showcase-wrapper .friend-result small{display:block;color:var(--text-muted)}

/* Gallery setup notice; does not modify original frame designs */
.gallery-setup-notice{padding:1rem 1.2rem;margin-bottom:1.5rem;border:1px solid #e5d4a9;border-radius:12px;background:#fff9e9;color:#73561e;font-size:.9rem}

/* Centered, blurred modal system (preserves the existing page design). */
.wellness-modal-open{overflow:hidden}
.wellness-modal-overlay{position:fixed;inset:0;z-index:9000;display:grid;place-items:center;padding:20px;background:rgba(20,32,29,.48);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);animation:wellnessOverlayIn .22s ease}
.wellness-modal-window{background:#fff;color:var(--text-dark);width:min(100%,480px);max-height:calc(100dvh - 40px);overflow:auto;border-radius:18px;padding:26px;box-shadow:0 24px 80px rgba(0,0,0,.22);animation:wellnessWindowIn .26s var(--ease-smooth)}
.wellness-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.wellness-modal-head h2{font-family:'Playfair Display',serif;font-size:1.45rem}.wellness-modal-x{border:0;background:transparent;font-size:1.7rem;cursor:pointer;color:var(--text-dark)}.wellness-modal-message{margin:16px 0;white-space:pre-wrap;overflow-wrap:anywhere}.wellness-modal-actions{display:flex;justify-content:flex-end;gap:10px}
@keyframes wellnessOverlayIn{from{opacity:0}to{opacity:1}}@keyframes wellnessWindowIn{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
.image-lightbox{background:rgba(16,24,22,.72);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.image-lightbox[hidden]{display:none!important}
@media(max-width:600px){.wellness-modal-window{padding:20px}.wellness-modal-actions{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.wellness-modal-overlay,.wellness-modal-window{animation:none}}

/* Non-destructive photo framing and original-image previews. Existing card geometry untouched. */
.gallery-image-button{overflow:hidden;position:relative}.gallery-image-button img{transition:transform .25s ease;max-width:none}
.slot-card:hover .gallery-image-button img{transform:inherit} /* crop settings control zoom */
.image-hover-preview{position:fixed;inset:0;z-index:4500;pointer-events:none;display:grid;place-items:center;padding:5vh 5vw;background:rgba(21,33,29,.40);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);animation:wellnessOverlayIn .18s ease}
.image-hover-preview img{display:block;max-width:min(88vw,1100px);max-height:85vh;width:auto;height:auto;object-fit:contain;border-radius:10px;box-shadow:0 24px 70px #0006;background:#fff}
.image-lightbox{background:rgba(21,33,29,.48);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);flex-direction:column;gap:12px}
.lightbox-image-stage{display:grid;place-items:center;width:100%;height:calc(100dvh - 135px);overflow:hidden}
.image-lightbox .lightbox-image-stage img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;cursor:grab;touch-action:none;user-select:none;transition:none}
.image-lightbox .lightbox-image-stage img:active{cursor:grabbing}
.lightbox-tools{display:flex;align-items:center;gap:10px;background:#fff;padding:8px 12px;border-radius:30px;box-shadow:0 10px 35px #0003}
.image-lightbox .lightbox-tools button{position:static;width:auto;height:auto;border-radius:20px;background:#e6eeeb;font-size:1rem;padding:6px 12px}
.crop-window{width:min(100%,700px)}.crop-help{margin:12px 0;color:var(--text-muted);font-size:.9rem}
.crop-preview{height:320px;background:var(--cream-bg);overflow:hidden;display:grid;place-items:center;border-radius:12px;border:1px solid #d6dfda;touch-action:none;cursor:grab;position:relative}
.crop-preview img{width:100%;height:100%;object-fit:cover;user-select:none;pointer-events:none}
.crop-preview.slot-design-3{width:min(100%,320px);margin:auto;border-radius:180px 180px 16px 16px;display:grid;grid-template-columns:1fr}
.crop-preview.slot-design-5{width:min(100%,320px);margin:auto;border-radius:28px;display:grid;grid-template-columns:1fr}
.crop-preview.slot-design-2{height:300px;display:grid;grid-template-columns:1fr}
.crop-preview.slot-design-4{height:260px;border:8px solid var(--cream-bg)}
.crop-label{display:block;font-size:.9rem;font-weight:600;margin:14px 0}.crop-label input{display:block;width:100%;accent-color:var(--sage-dark);margin-top:5px}.crop-label output{float:right}
@media(max-width:600px){.crop-preview{height:230px}.image-hover-preview{display:none!important}}

/* Login and signup split layout restoration. Scoped to auth pages only. */
.auth-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,1fr);min-height:100vh;background:var(--cream-bg)}
.auth-visual{background:var(--sage-bg);color:#fff;padding:clamp(36px,6vw,100px);display:flex;flex-direction:column;justify-content:center;gap:18px;position:relative;overflow:hidden;min-height:100vh}
.auth-visual::after{content:"";position:absolute;width:270px;height:270px;border-radius:50%;background:var(--accent-yellow);opacity:.8;right:-110px;bottom:-110px;pointer-events:none}
.auth-visual-tag{font-family:'Playfair Display',serif;font-size:1.35rem;position:relative;z-index:1}
.auth-visual h1{font-family:'Playfair Display',serif;font-size:clamp(2.6rem,4.4vw,4.8rem);font-weight:500;line-height:1.14;position:relative;z-index:1}
.auth-visual h1 em{font-style:italic}
.auth-visual p{max-width:490px;font-size:1.05rem;opacity:.94;position:relative;z-index:1}
.auth-visual-badge{font-size:.85rem;letter-spacing:.02em;position:relative;z-index:1}
.auth-form-side{display:flex;align-items:center;justify-content:center;padding:40px 28px;min-width:0}
.auth-form-side .auth-card{width:100%;max-width:480px;padding:clamp(26px,3.5vw,48px);box-shadow:0 14px 45px rgba(26,43,36,.08);border-radius:20px}
.auth-form-side .auth-card h2{margin-bottom:8px}
.auth-form-side .auth-card>p{margin-bottom:25px}
.auth-form-side .form-group{margin-bottom:17px}
.auth-form-side .form-group input{min-height:46px}
.password-wrapper{position:relative;display:flex;align-items:center}
.password-wrapper input{padding-right:52px!important}
.eye-toggle-btn{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:36px;height:36px;display:grid;place-items:center;border:0;background:transparent;color:var(--sage-dark);cursor:pointer;border-radius:8px}
.eye-toggle-btn:hover{background:var(--sage-soft)}
.eye-toggle-btn svg{display:block}
.eye-toggle-btn svg[style*="display:none"],.eye-toggle-btn svg[style*="display: none"]{display:none}
.auth-divider{display:flex;align-items:center;gap:14px;margin:18px 0;color:var(--text-muted);font-size:.9rem}
.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:var(--border-light)}
.auth-form-side .btn-primary,.auth-form-side .btn-google{font-family:'DM Sans',sans-serif;font-size:.95rem;min-height:46px}
.auth-form-side .btn-google{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:0}
.auth-alert{padding:12px 14px;border-radius:9px;margin-bottom:18px;font-size:.9rem}
@media(max-width:850px){.auth-split{grid-template-columns:1fr}.auth-visual{min-height:230px;padding:38px 28px;gap:10px}.auth-visual h1{font-size:2.6rem}.auth-visual::after{width:160px;height:160px;right:-70px;bottom:-75px}.auth-form-side{padding:26px 18px 48px}.auth-form-side .auth-card{max-width:560px}}
@media(max-width:420px){.auth-visual h1{font-size:2.2rem}.auth-form-side .auth-card{padding:25px 20px}}
