:root {
  --cream: #fdf6e3;
  --warm-white: #fffef7;
  --gold: #c9922a;
  --gold-light: #f0c46a;
  --charcoal: #2c2c2c;
  --muted: #7a6f5e;
  --note-1: #fff9c4;
  --note-2: #ffd3b6;
  --note-3: #c8e6c9;
  --note-4: #b3e0f2;
  --note-5: #e1bee7;
  --note-6: #ffccbc;
  --note-7: #f8bbd0;
  --note-8: #dcedc8;
  --shadow: rgba(100, 80, 40, 0.18);
}

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

body {
  background-color: var(--cream);
  background-image: radial-gradient(circle at 20% 20%, rgba(201, 146, 42, 0.07) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(180, 200, 150, 0.09) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9922a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  min-height: 100vh;
  font-family: "Lato", sans-serif;
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
}

/* HEADER */
.site-header {
  text-align: center;
  padding: 48px 20px 28px;
  position: relative;
}

.header-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid #ddd3be;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.18s;
  cursor: pointer;
}

.header-link:hover {
  border-color: var(--gold);
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.55);
}

.header-link.as-button {
  appearance: none;
  background: rgba(255, 255, 255, 0.35);
}

.cross-icon {
  display: inline-block;
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 10px;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    text-shadow: 0 0 8px rgba(201, 146, 42, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(201, 146, 42, 0.7);
  }
}

header h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

header h1 span {
  color: var(--gold);
  font-style: italic;
}

header p.subtitle {
  margin-top: 12px;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.5px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.verse {
  margin-top: 14px;
  font-family: "Caveat", cursive;
  font-size: 1.1rem;
  color: var(--gold);
  opacity: 0.85;
}

/* ADD NOTE BUTTON */
.add-btn-wrap {
  display: flex;
  justify-content: center;
  margin: 20px 0 36px;
}

.add-btn {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 14px 34px;
  border-radius: 50px;
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.add-btn:hover {
  background: #b07a1e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 146, 42, 0.45);
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 44, 44, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--warm-white);
  border-radius: 18px;
  padding: 36px 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from {
    transform: scale(0.88) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.modal p.modal-sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.modal label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  margin-top: 16px;
}

.modal input,
.modal textarea,
.modal select {
  width: 100%;
  border: 1.5px solid #e2d9c8;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: "Lato", sans-serif;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: #fffdf5;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.modal input:focus,
.modal textarea:focus,
.modal select:focus {
  border-color: var(--gold);
}

.modal textarea {
  min-height: 180px;
}

.char-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

.color-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  background: transparent;
  padding: 0;
}

.color-dot:hover {
  transform: scale(1.15);
}

.color-dot.selected {
  border-color: var(--charcoal);
  transform: scale(1.15);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.btn-post {
  flex: 1;
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-post:hover {
  background: #b07a1e;
}

.btn-cancel {
  background: #f0ebe0;
  color: var(--muted);
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cancel:hover {
  background: #e2dbd0;
}

/* FILTER BAR */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 20px 28px;
}

.filter-chip {
  padding: 7px 18px;
  border-radius: 50px;
  border: 1.5px solid #ddd3be;
  background: transparent;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
  font-family: "Lato", sans-serif;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* NOTES WALL */
.wall {
  columns: 280px 4;
  column-gap: 20px;
  padding: 0 24px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.note {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 4px 16px 16px 16px;
  padding: 22px 20px 18px;
  box-shadow: 3px 4px 12px var(--shadow), 0 1px 3px rgba(0, 0, 0, 0.07);
  position: relative;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  animation: dropIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.note::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 22px;
  width: 26px;
  height: 16px;
  background: rgba(200, 180, 100, 0.55);
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.note:hover {
  transform: rotate(0deg) scale(1.03) translateY(-4px);
  box-shadow: 6px 10px 30px rgba(100, 80, 40, 0.22);
  z-index: 10;
}

@keyframes dropIn {
  from {
    transform: rotate(var(--tilt, 0deg)) translateY(-30px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: rotate(var(--tilt, 0deg)) translateY(0) scale(1);
    opacity: 1;
  }
}

.note-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.note-title {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2c2413;
  line-height: 1.25;
  margin: 2px 0 10px;
  letter-spacing: -0.2px;
  word-break: break-word;
}

.note-text {
  font-family: "Caveat", cursive;
  font-size: 1.08rem;
  line-height: 1.55;
  color: #3a3228;
  word-break: break-word;
  white-space: pre-wrap;
}

.note-author {
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.note-hearts {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
  background: transparent;
  border: none;
  padding: 0;
  font-weight: 700;
}

.note-hearts:hover {
  color: #e05a5a;
}

.note-hearts.loved {
  color: #e05a5a;
}

.note-date {
  font-size: 0.72rem;
  color: rgba(0, 0, 0, 0.3);
  margin-top: 6px;
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  display: none;
}

.empty-state.show {
  display: block;
}

.empty-state .big-cross {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state p {
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
}

/* LOAD MORE */
.load-more-wrap {
  display: none;
  justify-content: center;
  padding: 0 20px 30px;
}

.load-more-wrap.show {
  display: flex;
}

.load-more-btn {
  background: rgba(255, 255, 255, 0.55);
  color: var(--charcoal);
  border: 1.5px solid #ddd3be;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.18s;
}

.load-more-btn:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(201, 146, 42, 0.18);
  transform: translateY(-1px);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* READ MORE link on card */
.read-more-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.38);
  text-decoration: none;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: color 0.15s;
}

.read-more-link:hover {
  color: var(--gold);
}

/* STORY DRAWER */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 24, 14, 0.52);
  backdrop-filter: blur(5px);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
}

.drawer-overlay.open {
  display: flex;
}

.drawer {
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  padding: 36px 36px 48px;
  position: relative;
  animation: slideUp 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
  scrollbar-width: thin;
}

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

.drawer-handle {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.18);
  margin: 0 auto 28px;
}

.drawer-cat-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.drawer-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: #2c2413;
  line-height: 1.3;
  margin-bottom: 20px;
}

.drawer-body {
  font-family: "Caveat", cursive;
  font-size: 1.22rem;
  line-height: 1.7;
  color: #3a3228;
  white-space: pre-wrap;
  word-break: break-word;
}

.drawer-divider {
  border: none;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  margin: 24px 0;
}

.drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.drawer-author {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.drawer-date {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.3);
  margin-top: 3px;
}

.drawer-hearts {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  user-select: none;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.18s;
}

.drawer-hearts:hover {
  border-color: #e05a5a;
  color: #e05a5a;
}

.drawer-hearts.loved {
  border-color: #e05a5a;
  color: #e05a5a;
  background: rgba(224, 90, 90, 0.07);
}

.drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.45);
  transition: background 0.15s;
}

.drawer-close:hover {
  background: rgba(0, 0, 0, 0.16);
}

/* AUTH PAGES */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: var(--warm-white);
  border-radius: 18px;
  padding: 34px 28px;
  border: 1px solid rgba(201, 146, 42, 0.12);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 130px;
  height: 34px;
  background: rgba(200, 180, 100, 0.45);
  border-radius: 7px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.auth-top {
  text-align: center;
  margin-bottom: 22px;
}

.auth-brand {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4.2vw, 2.5rem);
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.4px;
  line-height: 1.1;
  margin-top: 6px;
}

.auth-brand span {
  color: var(--gold);
  font-style: italic;
}

.auth-title {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  margin-top: 12px;
  color: rgba(0, 0, 0, 0.6);
  letter-spacing: 0.3px;
}

.auth-subtitle {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.4px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.auth-verse {
  margin-top: 12px;
  font-family: "Caveat", cursive;
  font-size: 1.05rem;
  color: var(--gold);
  opacity: 0.86;
}

.auth-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  margin-top: 14px;
}

.auth-form input {
  width: 100%;
  border: 1.5px solid #e2d9c8;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: "Lato", sans-serif;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: #fffdf5;
  outline: none;
  transition: border-color 0.2s;
}

.auth-form input:focus {
  border-color: var(--gold);
}

.otp-wrap {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.otp-box {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 12px 0;
}

.otp-box:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 146, 42, 0.18);
}

@media (max-width: 380px) {
  .otp-wrap {
    gap: 8px;
  }
  .otp-box {
    font-size: 1.05rem;
    padding: 11px 0;
  }
}

.auth-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 18px;
}

.auth-row .header-link {
  padding: 10px 16px;
  flex: 1 1 0;
  min-width: 160px;
  height: 44px;
}

.auth-row .btn-post {
  flex: 1 1 0;
  min-width: 160px;
  height: 44px;
}

/* PIN PAGE */
.pin-shell {
    width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 10px 22px 58px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}

.pin-form-card {
  background: var(--warm-white);
  border-radius: 18px;
  padding: 30px 28px;
  border: 1px solid rgba(201, 146, 42, 0.12);
  position: relative;
  overflow: hidden;
}

.pin-form-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 38px;
  width: 120px;
  height: 30px;
  background: rgba(200, 180, 100, 0.42);
  border-radius: 7px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  transform: rotate(-2deg);
}

.pin-title {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.pin-sub {
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 18px;
}

.pin-form-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  margin-top: 16px;
}

.pin-form-card input,
.pin-form-card textarea,
.pin-form-card select {
  width: 100%;
  border: 1.5px solid #e2d9c8;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: "Lato", sans-serif;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.pin-form-card input:focus,
.pin-form-card textarea:focus,
.pin-form-card select:focus {
  border-color: var(--gold);
}

.pin-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.pin-cancel {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pin-preview {
  position: sticky;
  top: 18px;
  padding: 10px 0;
}

.pin-preview-title {
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.45);
  margin: 0 0 12px;
}

.pin-preview-note {
  cursor: default;
  animation: none;
  transform: rotate(var(--tilt, 0deg));
}

.pin-preview-note:hover {
  transform: rotate(var(--tilt, 0deg));
  box-shadow: 3px 4px 12px var(--shadow), 0 1px 3px rgba(0, 0, 0, 0.07);
}

.pin-preview-hint {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .pin-shell {
    grid-template-columns: 1fr;
  }
  .pin-preview {
    position: static;
  }
}

/* PROFILE PAGE */
.profile-shell {
  max-width: 1150px;
  margin: 0 auto;
  padding: 10px 22px 58px;
  display: grid;
  gap: 22px;
}

.profile-card {
  background: var(--warm-white);
  border-radius: 18px;
  padding: 26px 24px;
  border: 1px solid rgba(201, 146, 42, 0.12);
}

.profile-name {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.profile-meta {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 300;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.profile-stat {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 14px 14px;
  text-align: center;
}

.profile-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--charcoal);
}

.profile-stat-label {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.profile-section-title {
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.45);
  margin: 2px 0 12px;
}

.profile-wall {
  columns: 340px 2;
  column-gap: 20px;
}

@media (max-width: 750px) {
  .profile-wall {
    columns: 1;
  }
}

.auth-links {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.auth-links a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-error {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(192, 57, 43, 0.08);
  color: #922b21;
  border: 1px solid rgba(192, 57, 43, 0.16);
  font-weight: 700;
  font-size: 0.9rem;
}

.auth-error.show {
  display: block;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid #e8dfce;
  margin-top: auto;
}

footer span {
  color: var(--gold);
}

/* TOASTS */
.toast-container {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: grid;
  gap: 10px;
  z-index: 9999;
  width: min(520px, calc(100vw - 24px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  color: var(--charcoal);
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
  font-weight: 700;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(10px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast--success {
  border-color: rgba(34, 139, 34, 0.25);
}

.toast--error {
  border-color: rgba(192, 57, 43, 0.25);
}

/* Responsive */
@media (max-width: 600px) {
  .filter-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 14px 18px;
    gap: 8px;
    margin-left: 10px;
    scroll-snap-type: x mandatory;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: 0.82rem;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .wall {
    padding: 0 14px 40px;
  }
  .load-more-wrap {
    padding: 0 14px 26px;
  }
  .modal {
    padding: 28px 20px;
  }
  .header-actions {
    position: static;
    justify-content: center;
    margin-bottom: 16px;
  }
  .profile-shell {
    margin: 0;
  }
}