/* ============================================================
   LNK Parfums — Main Stylesheet
   Aesthetic: French editorial luxury · Botanical elegance
   Fonts: Cormorant Garamond (display) + Jost (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@300;400;500&family=Cormorant+SC:wght@300;400;500&display=swap');

:root {
  /* Palette — aged parchment, deep forest, champagne gold */
  --cream:        #f7f3ee;
  --cream-dark:   #ede7de;
  --parchment:    #e8ddd0;
  --ink:          #1a1410;
  --ink-mid:      #3d3229;
  --ink-soft:     #7a6a5a;
  --ink-ghost:    #b0a090;
  --forest:       #2d4a3e;
  --forest-light: #3d6b5a;
  --forest-mist:  #e8f0ec;
  --gold:         #c4a45a;
  --gold-light:   #e8d9b5;
  --gold-pale:    #f5f0e4;
  --blush:        #c9968a;
  --blush-light:  #f2e8e5;
  --surface:      #ffffff;
  --border:       rgba(26,20,16,.10);
  --border-mid:   rgba(26,20,16,.18);

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-sc:      'Cormorant SC', 'Georgia', serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --shadow-sm:  0 1px 6px rgba(26,20,16,.06);
  --shadow-md:  0 6px 32px rgba(26,20,16,.10);
  --shadow-lg:  0 16px 56px rgba(26,20,16,.14);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Botanical SVG pattern overlay (subtle) ─────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231a1410' stroke-width='0.4' opacity='0.04'%3E%3Cellipse cx='60' cy='60' rx='20' ry='32'/%3E%3Cellipse cx='60' cy='60' rx='32' ry='20'/%3E%3Ccircle cx='60' cy='60' r='8'/%3E%3Cpath d='M60 28 Q72 44 60 60 Q48 44 60 28'/%3E%3Cpath d='M60 92 Q72 76 60 60 Q48 76 60 92'/%3E%3Cpath d='M28 60 Q44 48 60 60 Q44 72 28 60'/%3E%3Cpath d='M92 60 Q76 48 60 60 Q76 72 92 60'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

/* ── Header ─────────────────────────────────────────────────── */
.app-header {
  background: var(--forest);
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0);
  border-bottom: 1px solid rgba(196,164,90,.25);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}

.logo-lnk {
  font-family: var(--font-sc);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .18em;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: .55rem;
  font-weight: 300;
  color: rgba(196,164,90,.6);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-top: .1rem;
}

/* ── Desktop nav (hidden on mobile) ── */
.main-nav {
  display: flex;
  gap: .1rem;
  flex: 1;
  flex-wrap: nowrap;
}

.nav-link {
  text-decoration: none;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(247,243,238,.55);
  padding: .4rem .65rem;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--gold); }
.nav-link.nav-admin { color: var(--gold); opacity: .7; }
.nav-link.nav-admin:hover { opacity: 1; }

.header-user {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-left: auto;
  flex-shrink: 0;
}

.user-name {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 300;
  color: rgba(247,243,238,.4);
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-logout {
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(196,164,90,.6);
  text-decoration: none;
  border: 1px solid rgba(196,164,90,.25);
  padding: .28rem .65rem;
  border-radius: var(--radius-sm);
  transition: all .2s;
  white-space: nowrap;
}

.btn-logout:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ── Hamburger (mobile only) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: .4rem;
  margin-left: auto;
  background: none;
  border: none;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: rgba(247,243,238,.7);
  border-radius: 2px;
  transition: all .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ── Mobile drawer ── */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  pointer-events: none;
}
.mobile-drawer.open {
  pointer-events: all;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,20,15,.55);
  opacity: 0;
  transition: opacity .25s;
}
.mobile-drawer.open .drawer-backdrop { opacity: 1; }

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 240px;
  background: var(--forest);
  border-left: 1px solid rgba(196,164,90,.2);
  padding: calc(env(safe-area-inset-top,0) + 4.5rem) 0 2rem;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open .drawer-panel { transform: translateX(0); }

.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 0 .75rem;
  gap: .2rem;
  flex: 1;
}

.drawer-nav .nav-link {
  font-size: .78rem;
  letter-spacing: .14em;
  padding: .75rem 1rem;
  border-radius: var(--radius-md);
  display: block;
}
.drawer-nav .nav-link:hover {
  background: rgba(196,164,90,.08);
  color: var(--gold);
}

.drawer-footer {
  padding: 1rem 1.75rem 0;
  border-top: 1px solid rgba(196,164,90,.12);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.drawer-user {
  font-family: var(--font-body);
  font-size: .72rem;
  color: rgba(247,243,238,.35);
  letter-spacing: .08em;
  text-decoration: none;
}

/* ── Responsive breakpoint ── */
@media (max-width: 680px) {
  .main-nav    { display: none; }
  .header-user { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-drawer { display: block; }
  .header-inner { padding: .65rem 1rem; }
}

/* ── Hero banner (collection page only) ────────────────────── */
.collection-hero {
  background: var(--forest);
  padding: 3rem 1.25rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(196,164,90,.2);
}

.collection-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c4a45a' stroke-width='0.5' opacity='0.12'%3E%3Cellipse cx='100' cy='100' rx='40' ry='65'/%3E%3Cellipse cx='100' cy='100' rx='65' ry='40'/%3E%3Ccircle cx='100' cy='100' r='18'/%3E%3Cpath d='M100 35 Q120 68 100 100 Q80 68 100 35'/%3E%3Cpath d='M100 165 Q120 132 100 100 Q80 132 100 165'/%3E%3Cpath d='M35 100 Q68 80 100 100 Q68 120 35 100'/%3E%3Cpath d='M165 100 Q132 80 100 100 Q132 120 165 100'/%3E%3Ccircle cx='100' cy='35' r='5'/%3E%3Ccircle cx='100' cy='165' r='5'/%3E%3Ccircle cx='35' cy='100' r='5'/%3E%3Ccircle cx='165' cy='100' r='5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.collection-hero-eyebrow {
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .7;
  margin-bottom: .6rem;
}

.collection-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: .5rem;
  letter-spacing: .02em;
}

.collection-hero-sub {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(247,243,238,.35);
}

/* Gold divider */
.gold-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem auto;
  max-width: 200px;
}
.gold-divider::before,
.gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: .35;
}
.gold-divider-diamond {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: .5;
  flex-shrink: 0;
}

/* ── Main ───────────────────────────────────────────────────── */
.app-main {
  flex: 1;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  padding-bottom: calc(3rem + var(--safe-bottom));
}

/* ── Footer ─────────────────────────────────────────────────── */
.app-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border);
}
.app-footer p {
  font-family: var(--font-sc);
  font-size: .72rem;
  font-weight: 300;
  letter-spacing: .18em;
  color: var(--ink-ghost);
  text-transform: uppercase;
}

/* ── Page headings ──────────────────────────────────────────── */
.page-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--forest);
  line-height: 1.15;
  margin-bottom: .25rem;
}

.page-subtitle {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-ghost);
  margin-bottom: 1.75rem;
}

/* ── Search bar ─────────────────────────────────────────────── */
.search-bar {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: .6rem .75rem;
  box-shadow: var(--shadow-sm);
}

.search-bar input,
.search-bar select {
  flex: 1;
  min-width: 120px;
  padding: .5rem .6rem;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  appearance: none;
}

.search-bar input::placeholder { color: var(--ink-ghost); }

.search-bar select {
  cursor: pointer;
  color: var(--ink-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237a6a5a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .4rem center;
  padding-right: 1.5rem;
}

.search-bar-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: .2rem 0;
}

/* ── Perfume grid ───────────────────────────────────────────── */
.perfume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 1.25rem;
}

.perfume-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .25s, transform .2s, border-color .25s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.perfume-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gold-light);
}

.perfume-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  background: var(--cream);
  padding: 1rem .75rem .5rem;
}

.perfume-card-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--cream-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  position: relative;
  overflow: hidden;
}

.perfume-card-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231a1410' stroke-width='0.4' opacity='0.08'%3E%3Cellipse cx='40' cy='40' rx='14' ry='22'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3Cpath d='M40 18 Q48 29 40 40 Q32 29 40 18'/%3E%3Cpath d='M40 62 Q48 51 40 40 Q32 51 40 62'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.perfume-placeholder-icon {
  font-size: 2rem;
  opacity: .35;
  position: relative;
}

.perfume-card-body {
  padding: .85rem 1rem 1rem;
  border-top: 1px solid var(--border);
  flex: 1;
}

.perfume-card-house {
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .2rem;
}

.perfume-card-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: .5rem;
}

.perfume-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .4rem;
}

/* ── Tags ───────────────────────────────────────────────────── */
.tag {
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 99px;
  background: var(--cream-dark);
  color: var(--ink-soft);
  white-space: nowrap;
  border: 1px solid var(--border);
}
.tag-gold  { background: var(--gold-pale);   color: #7a5c20; border-color: rgba(196,164,90,.2); }
.tag-green { background: var(--forest-mist); color: var(--forest); border-color: rgba(45,74,62,.15); }
.tag-blue  { background: #e8eef5; color: #1a3a5a; border-color: rgba(26,58,90,.15); }

/* ── Rating stars ───────────────────────────────────────────── */
.rating-display { display: flex; gap: .05rem; }
.rating-star      { color: var(--gold);     font-size: .7rem; }
.rating-star.empty { color: var(--parchment); font-size: .7rem; }

/* ── Cards (generic content cards) ─────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-section-title {
  font-family: var(--font-sc);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  margin-bottom: .85rem;
}
.form-row.single { grid-template-columns: 1fr; }
.form-row.triple { grid-template-columns: 1fr 1fr 1fr; }

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

.form-group { display: flex; flex-direction: column; gap: .3rem; }

.form-label {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.form-label .req { color: var(--blush); margin-left: .15rem; }

.form-input, .form-select, .form-textarea {
  padding: .65rem .9rem;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 300;
  background: var(--cream);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
  appearance: none;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(196,164,90,.10);
}
.form-textarea { min-height: 90px; resize: vertical; }

/* Pill checkboxes */
.check-group { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .15rem; }
.check-pill input[type=checkbox] { display: none; }
.check-pill label {
  display: inline-block;
  padding: .3rem .75rem;
  border: 1px solid var(--border-mid);
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .06em;
  cursor: pointer;
  user-select: none;
  color: var(--ink-soft);
  background: var(--cream);
  transition: all .15s;
}
.check-pill input:checked + label {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

/* Star rating input */
.star-input { display: flex; gap: .15rem; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { display: none; }
.star-input label { font-size: 1.3rem; cursor: pointer; color: var(--parchment); transition: color .1s; }
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--gold); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all .18s;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--forest);
  color: var(--cream);
}
.btn-primary:hover { background: var(--forest-light); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: #d4b46a; }

.btn-secondary {
  background: var(--forest-mist);
  color: var(--forest);
  border: 1px solid rgba(45,74,62,.15);
}
.btn-secondary:hover { background: #d4e4dc; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--ink-soft);
}
.btn-outline:hover { border-color: var(--ink-soft); color: var(--ink); background: var(--cream-dark); }

.btn-sm     { padding: .4rem .9rem; font-size: .68rem; }
.btn-block  { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; pointer-events: none; }

.btn-ai {
  background: var(--forest);
  color: var(--gold);
  border: 1px solid rgba(196,164,90,.3);
  letter-spacing: .08em;
}
.btn-ai:hover { background: var(--forest-light); }

/* AI result box */
.ai-result-box {
  background: var(--gold-pale);
  border: 1px solid rgba(196,164,90,.3);
  border-radius: var(--radius-md);
  padding: .85rem 1rem;
  margin-top: .75rem;
  font-size: .85rem;
  font-weight: 300;
  color: var(--ink-mid);
  display: none;
}
.ai-result-box.visible { display: block; }

/* ── Detail page ────────────────────────────────────────────── */
.detail-hero {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.detail-bottle {
  width: 160px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-dark);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.detail-bottle img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; }

.detail-info { flex: 1; min-width: 200px; padding-top: .25rem; }

.detail-house {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}
.detail-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: .85rem;
}

/* Notes pyramid */
.notes-pyramid { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.notes-layer { flex: 1; min-width: 90px; }
.notes-layer-title {
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .35rem;
}
.notes-layer-items {
  font-family: var(--font-display);
  font-size: .95rem;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.5;
}

/* ── Usage diary ────────────────────────────────────────────── */
.diary-list { display: flex; flex-direction: column; gap: .75rem; }

.diary-entry {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  transition: box-shadow .15s;
}
.diary-entry:hover { box-shadow: var(--shadow-sm); }

.diary-date { text-align: center; min-width: 44px; flex-shrink: 0; }
.diary-date-day { font-family: var(--font-display); font-size: 1.6rem; font-weight: 300; color: var(--forest); line-height: 1; }
.diary-date-mon { font-family: var(--font-body); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-ghost); margin-top: .1rem; }

.diary-entry-name { font-family: var(--font-display); font-size: 1rem; font-style: italic; font-weight: 400; }
.diary-entry-meta { font-size: .78rem; color: var(--ink-soft); font-weight: 300; margin-top: .15rem; }

/* ── Recommender ────────────────────────────────────────────── */
.occasion-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.occasion-chip {
  padding: .45rem 1rem;
  border: 1px solid var(--border-mid);
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--surface);
  color: var(--ink-soft);
  transition: all .15s;
}
.occasion-chip:hover { border-color: var(--forest); color: var(--forest); }
.occasion-chip.selected { background: var(--forest); border-color: var(--forest); color: var(--cream); }

.recommend-card {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  transition: all .2s;
}
.recommend-card:hover { box-shadow: var(--shadow-md); border-color: var(--gold-light); transform: translateX(4px); }

.recommend-rank {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--parchment);
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.recommend-why { font-family: var(--font-display); font-size: .92rem; font-style: italic; color: var(--ink-soft); margin-top: .2rem; }

/* ── Login page ─────────────────────────────────────────────── */
.login-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.login-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c4a45a' stroke-width='0.6' opacity='0.1'%3E%3Cellipse cx='80' cy='80' rx='28' ry='46'/%3E%3Cellipse cx='80' cy='80' rx='46' ry='28'/%3E%3Ccircle cx='80' cy='80' r='10'/%3E%3Cpath d='M80 34 Q94 57 80 80 Q66 57 80 34'/%3E%3Cpath d='M80 126 Q94 103 80 80 Q66 103 80 126'/%3E%3Cpath d='M34 80 Q57 66 80 80 Q57 94 34 80'/%3E%3Cpath d='M126 80 Q103 66 80 80 Q103 94 126 80'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.login-card {
  background: var(--cream);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 360px;
  position: relative;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-monogram {
  font-family: var(--font-sc);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--gold);
  margin-bottom: .15rem;
}
.login-monogram-sub {
  font-family: var(--font-body);
  font-size: .6rem;
  font-weight: 300;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-ghost);
  margin-bottom: 1.75rem;
}

.login-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--forest);
  margin-bottom: 1.5rem;
}

.login-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  font-size: .95rem;
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--surface);
  color: var(--ink);
  margin-bottom: .75rem;
  transition: border-color .15s;
}
.login-input:focus { outline: none; border-color: var(--gold); }

.login-error {
  color: var(--forest);
  font-size: .82rem;
  margin-bottom: .75rem;
  background: var(--blush-light);
  padding: .65rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201,150,138,.3);
}

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: .85rem 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: .85rem;
  font-weight: 300;
}
.alert-success {
  background: var(--forest-mist);
  color: var(--forest);
  border: 1px solid rgba(45,74,62,.2);
}
.alert-error {
  background: var(--blush-light);
  color: #7a3028;
  border: 1px solid rgba(201,150,138,.3);
}

/* ── Empty state ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: .5; }
.empty-state-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: .5rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .perfume-grid { grid-template-columns: repeat(2, 1fr); gap: .85rem; }
  .app-main { padding: 1.25rem .9rem; }
  .detail-bottle { width: 130px; }
  .collection-hero { padding: 2rem 1rem 1.75rem; }
}
@media (min-width: 768px) {
  .perfume-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

/* ── Section label (like "Today's Edition") ─────────────────── */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.section-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-mid);
  max-width: 60px;
}

/* Subtle entrance animation */
@media (prefers-reduced-motion: no-preference) {
  .perfume-card {
    animation: fadeUp .4s ease both;
  }
  .perfume-card:nth-child(2) { animation-delay: .05s; }
  .perfume-card:nth-child(3) { animation-delay: .10s; }
  .perfume-card:nth-child(4) { animation-delay: .15s; }
  .perfume-card:nth-child(5) { animation-delay: .18s; }
  .perfume-card:nth-child(6) { animation-delay: .21s; }

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