/* ═══════════════════════════════════════════════════════
   SRJ Library  ·  Warm Editorial  ·  Mobile-First
   Fonts: Fraunces (display) + DM Sans (body)
═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;1,9..144,300;1,9..144,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── design tokens ──────────────────────── */
:root {
  --ink:     #1c0e18;
  --plum:    #3b1430;
  --mauve:   #7c3560;
  --rose:    #c9607e;
  --blush:   #e8a8bc;
  --petal:   #f5d8e4;
  --mist:    #faf0f4;
  --cream:   #fdf8f9;
  --warm:    #f8f0ec;
  --clay:    #c4745a;
  --clay-lt: #f0d4c8;
  --dim:     #9f6878;
  --border:  rgba(170,90,130,.13);
  --shadow:  rgba(90,20,50,.1);
  --r:       13px;
  --ease:    cubic-bezier(.22,1,.36,1);
}

/* ── base ───────────────────────────────── */
.srj-wrap, .srj-my-res {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 14px 60px;
  box-sizing: border-box;
}
.srj-wrap *, .srj-my-res * { box-sizing: border-box; }
body.srj-no-scroll { overflow: hidden !important; }

/* ── toolbar ────────────────────────────── */
.srj-toolbar {
  background: var(--mist);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 14px 12px;
  margin-bottom: 22px;
}
.srj-search-form { display: flex; flex-direction: column; gap: 10px; }

.srj-search-bar { position: relative; }
.srj-s-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px; pointer-events: none; opacity: .45;
}
.srj-s-input {
  width: 100%; padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--border); border-radius: 50px;
  background: #fff; font: 15px/1 'DM Sans', sans-serif;
  color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.srj-s-input::placeholder { color: var(--dim); opacity: .7; }
.srj-s-input:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(201,96,126,.1); }

.srj-filter-row { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.srj-select {
  flex: 1; min-width: 120px;
  padding: 8px 28px 8px 12px;
  border: 1.5px solid var(--border); border-radius: 50px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23c9607e' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 11px center;
  font: 13px 'DM Sans', sans-serif; color: var(--ink);
  -webkit-appearance: none; appearance: none;
  cursor: pointer; outline: none; transition: border-color .2s;
}
.srj-select:focus { border-color: var(--rose); }

.srj-chip-filter {
  display: inline-flex; align-items: center; gap: 5px;
  font: 12px 'DM Sans', sans-serif; cursor: pointer;
  padding: 7px 13px; border-radius: 50px;
  border: 1.5px solid var(--border);
  background: #fff; transition: all .16s; user-select: none; white-space: nowrap;
}
.srj-chip-filter input { display: none; }
.srj-chip-filter:hover  { border-color: var(--blush); background: var(--mist); }
.srj-chip-filter.active { background: var(--rose); border-color: transparent; color: #fff; }

.srj-btn-filter {
  padding: 8px 18px; border-radius: 50px; border: none; cursor: pointer;
  background: var(--rose); color: #fff;
  font: 600 13px 'DM Sans', sans-serif;
  transition: opacity .15s, transform .15s; white-space: nowrap;
}
.srj-btn-filter:hover { opacity: .87; transform: translateY(-1px); }
.srj-result-count { font-size: 11.5px; color: var(--dim); margin-top: 5px; }

/* ── grid ───────────────────────────────── */
.srj-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 11px;
}
@media (min-width: 520px)  { .srj-grid { gap: 14px !important; } }
@media (min-width: 660px)  { .srj-grid { grid-template-columns: repeat(3,1fr) !important; gap: 16px !important; } }
@media (min-width: 920px)  { .srj-grid { grid-template-columns: repeat(4,1fr) !important; gap: 20px !important; } }
@media (min-width: 1160px) { .srj-grid { grid-template-columns: repeat(5,1fr) !important; } }

/* ── card ───────────────────────────────── */
.srj-card {
  display: flex !important; flex-direction: column !important;
  width: 100% !important;
  background: #fff;
  border-radius: var(--r);
  border: 1px solid rgba(170,90,130,.1);
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.srj-card:hover { transform: translateY(-5px); box-shadow: 0 14px 42px var(--shadow); }

/* cover */
.srj-cover-wrap {
  position: relative; width: 100% !important;
  aspect-ratio: 2/3; background: var(--petal);
  overflow: hidden; flex-shrink: 0;
  font-size: 0; line-height: 0;
}
.srj-cover {
  width: 100% !important; height: 100% !important;
  object-fit: cover; display: block !important;
  transition: transform .5s var(--ease);
}
.srj-card:hover .srj-cover { transform: scale(1.07); }
.srj-cover-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  background: linear-gradient(150deg, var(--warm), var(--petal));
}

/* fav star on cover */
.srj-fav-star {
  position: absolute; top: 7px; left: 7px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.16);
}

/* card body */
.srj-card-body {
  padding: 10px 11px 12px;
  flex: 1; display: flex; flex-direction: column;
}
.srj-title {
  font-family: 'Fraunces', serif;
  font-size: 13.5px; font-weight: 400; line-height: 1.27;
  margin: 0 0 4px; color: var(--plum);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 660px) { .srj-title { font-size: 14.5px; } }

.srj-author { font-size: 11px; color: var(--dim); margin: 0 0 7px; }
.srj-author-link { color: var(--dim); text-decoration: none; font-style: italic; transition: color .15s; }
.srj-author-link:hover { color: var(--rose); }

.srj-cat-chip {
  display: inline-block; font-size: 9.5px; font-weight: 500;
  padding: 2px 8px; border-radius: 20px;
  background: var(--warm); color: var(--mauve);
  border: 1px solid var(--border); margin-bottom: 6px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* format badges */
.srj-format-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 7px; }
.srj-fmt-badge {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 9px; font-weight: 600; padding: 2px 6px;
  border-radius: 20px; line-height: 1;
}
.srj-fmt-badge svg { width: 9px; height: 9px; flex-shrink: 0; }
.srj-fmt-ebook { background: #e2f5eb; color: #1a6830; }
.srj-fmt-audio { background: #ede0f4; color: #591870; }

.srj-btn-view {
  margin-top: auto;
  display: block; width: 100%; padding: 7px 12px;
  border-radius: 50px; border: 1.5px solid var(--border);
  background: transparent; color: var(--mauve);
  font: 11px 'DM Sans', sans-serif; cursor: pointer; text-align: center;
  transition: all .16s;
}
.srj-btn-view:hover { background: var(--mist); border-color: var(--blush); }

/* ── pagination ─────────────────────────── */
.srj-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.srj-page-btn {
  min-width: 36px; height: 36px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; text-decoration: none;
  font: 500 13px 'DM Sans', sans-serif;
  color: var(--mauve); border: 1.5px solid var(--border); transition: all .15s;
}
.srj-page-btn:hover { background: var(--mist); }
.srj-page-btn.active {
  background: var(--rose); color: #fff; border-color: transparent;
  box-shadow: 0 2px 10px rgba(201,96,126,.3);
}

/* ── empty ──────────────────────────────── */
.srj-empty { text-align: center; padding: 64px 20px; color: var(--dim); }
.srj-empty-icon { display: block; font-size: 46px; margin-bottom: 12px; opacity: .4; }


/* ═══════════════════════════════════════════
   MODALS
═══════════════════════════════════════════ */
.srj-modal-wrap {
  position: fixed !important; inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important; align-items: flex-end !important; justify-content: center !important;
}
@media (min-width: 700px) { .srj-modal-wrap { align-items: center !important; } }

.srj-modal-bg {
  position: absolute; inset: 0;
  background: rgba(12,3,10,.72);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}

/* book detail modal */
.srj-modal-box {
  position: relative; z-index: 1; background: #fff;
  width: 100% !important; max-height: 94dvh; max-height: 94vh;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 60px rgba(80,15,45,.2);
  animation: slideUp .32s var(--ease) both;
}
@keyframes slideUp { from { transform: translateY(32px); opacity: 0; } }

@media (min-width: 700px) {
  .srj-modal-box {
    width: min(740px, 96vw) !important;
    border-radius: 18px; max-height: 90dvh; max-height: 90vh;
    animation: popIn .24s var(--ease) both;
  }
  @keyframes popIn { from { transform: scale(.95) translateY(10px); opacity: 0; } }
}

/* reserve / digital small modals */
.srj-modal-box-sm {
  padding: 28px 20px 36px;
  border-radius: 22px 22px 0 0;
}
@media (min-width: 700px) {
  .srj-modal-box-sm { width: min(480px, 96vw) !important; border-radius: 18px; padding: 36px 32px; }
}

/* close button */
.srj-modal-x {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(170,90,130,.12);
  color: var(--mauve); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
}
.srj-modal-x:hover { background: rgba(170,90,130,.25); }

/* ── detail modal layout ────────────────── */
/* Mobile: stacked */
.srj-md-shell { display: flex !important; flex-direction: column !important; }

/* Desktop: sidebar + body */
@media (min-width: 700px) {
  .srj-md-shell {
    display: grid !important; flex-direction: unset !important;
    grid-template-columns: 200px 1fr !important;
    min-height: 420px;
  }
}

/* ── aside (cover panel) ────────────────── */
.srj-md-aside {
  background: linear-gradient(165deg, var(--cream) 0%, var(--petal) 100%);
  /* mobile: horizontal strip */
  display: flex; flex-direction: row; align-items: center;
  gap: 16px; padding: 22px 18px 16px;
  border-radius: 22px 22px 0 0; flex-shrink: 0;
}
@media (min-width: 700px) {
  .srj-md-aside {
    flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 14px; padding: 32px 20px;
    border-radius: 18px 0 0 18px;
  }
}

/* cover image */
.srj-md-cover { flex-shrink: 0; }
.srj-md-img {
  width: 86px; height: auto; display: block;
  border-radius: 8px;
  box-shadow: 0 6px 28px rgba(70,15,40,.22);
}
@media (min-width: 700px) { .srj-md-img { width: 152px; } }
.srj-md-img-ph {
  width: 86px; height: 120px;
  background: var(--petal); border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
}
@media (min-width: 700px) { .srj-md-img-ph { width: 152px; height: 213px; } }

/* genre chip (desktop under cover) */
.srj-md-genre {
  display: none;
  font-size: 10.5px; padding: 3px 10px; border-radius: 20px;
  background: rgba(255,255,255,.75); color: var(--mauve);
  border: 1px solid var(--border); align-self: flex-start;
}
@media (min-width: 700px) { .srj-md-genre { display: inline-block; } }

/* mobile title+author strip beside cover */
.srj-md-aside-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
@media (min-width: 700px) { .srj-md-aside-text { display: none !important; } }
.srj-md-title-mob {
  font-family: 'Fraunces', serif;
  font-size: 17px; font-weight: 400; line-height: 1.22;
  color: var(--plum); margin: 0;
}
.srj-md-auth-mob {
  font-size: 12px; color: var(--dim); font-style: italic;
  text-decoration: none; transition: color .15s;
}
.srj-md-auth-mob:hover { color: var(--rose); }

/* ── body (info panel) ──────────────────── */
.srj-md-body {
  padding: 18px 18px 26px;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
@media (min-width: 700px) { .srj-md-body { padding: 28px 28px 32px; } }

/* hide desktop title/author on mobile (shown in aside strip) */
@media (max-width: 699px) {
  .srj-md-title { display: none !important; }
  .srj-md-auth  { display: none !important; }
}
.srj-md-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 400; line-height: 1.15;
  color: var(--plum); margin: 0 0 5px;
}
.srj-md-auth {
  display: block; font-size: 13px; font-style: italic;
  color: var(--dim); text-decoration: none; margin-bottom: 14px;
  transition: color .15s;
}
.srj-md-auth:hover { color: var(--rose); }

/* meta chips */
.srj-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 13px; }
.srj-chip {
  font-size: 11px; color: var(--dim);
  background: var(--cream); padding: 3px 9px;
  border-radius: 20px; border: 1px solid var(--border);
}

/* description */
.srj-md-desc {
  font-size: 13px; line-height: 1.74; color: #3a1828;
  margin-bottom: 12px;
  max-height: 130px; overflow-y: auto; padding-right: 2px;
}
@media (min-width: 700px) { .srj-md-desc { max-height: 180px; } }
.srj-md-desc::-webkit-scrollbar { width: 3px; }
.srj-md-desc::-webkit-scrollbar-thumb { background: var(--petal); border-radius: 2px; }

/* tags */
.srj-md-tags { font-size: 11px; color: var(--dim); line-height: 1.65; margin-bottom: 12px; }

/* ══ SAM'S FAVORITE BANNER ══════════════════
   Warm terracotta-to-rose gradient strip
   with oversized italic star and two-line text
═══════════════════════════════════════════ */
.srj-fav-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(112deg, var(--clay-lt) 0%, #fce8e0 45%, var(--petal) 100%);
  border: 1px solid rgba(196,116,90,.25);
  border-radius: 11px;
  padding: 11px 14px;
  margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.srj-fav-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent 0px,
    transparent 12px,
    rgba(196,116,90,.04) 12px,
    rgba(196,116,90,.04) 13px
  );
  pointer-events: none;
}
.srj-fav-star-glyph {
  font-size: 32px; line-height: 1;
  color: var(--clay);
  flex-shrink: 0;
  font-style: normal;
}
.srj-fav-text { display: flex; flex-direction: column; gap: 1px; }
.srj-fav-label {
  font-family: 'Fraunces', serif;
  font-size: 14px; font-weight: 600; font-style: italic;
  color: var(--clay); line-height: 1.2; letter-spacing: .01em;
}
.srj-fav-sub {
  font-size: 10.5px; color: rgba(100,50,30,.6);
  text-transform: uppercase; letter-spacing: .09em; font-weight: 500;
}

/* ══ SAM'S NOTES BLOCK ══════════════════════
   Pink gradient header bar + cream content area
   with quill-pen icon and rich text support
═══════════════════════════════════════════ */
.srj-notes-block {
  margin-bottom: 14px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(201,96,126,.22);
  box-shadow: 0 2px 14px rgba(201,96,126,.09);
}
.srj-notes-topbar {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(110deg, #b84070 0%, var(--rose) 60%, #e07090 100%);
  padding: 9px 14px;
}
.srj-notes-quill {
  width: 15px; height: 15px; flex-shrink: 0;
  color: rgba(255,255,255,.85);
}
.srj-notes-topbar > span {
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
.srj-notes-body {
  background: linear-gradient(160deg, #fff9fb 0%, #fdf2f6 100%);
  padding: 12px 14px;
  font-size: 13px; line-height: 1.72; color: var(--plum);
}
/* rich text from wp_editor */
.srj-notes-body p           { margin: 0 0 .65em; }
.srj-notes-body p:last-child { margin-bottom: 0; }
.srj-notes-body strong      { font-weight: 700; color: var(--plum); }
.srj-notes-body em          { font-style: italic; color: var(--mauve); }
.srj-notes-body a           { color: var(--rose); text-decoration: underline; }
.srj-notes-body ul,
.srj-notes-body ol          { padding-left: 18px; margin: .4em 0; }
.srj-notes-body li          { margin-bottom: .25em; }

/* ── availability ───────────────────────── */
.srj-avail-row { margin-bottom: 14px; }
.srj-avail {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600;
  padding: 5px 12px; border-radius: 20px;
}
.srj-avail-yes { background: #e4f5ec; color: #1a6830; }
.srj-avail-no  { background: #fce8f0; color: #7a1030; }

/* CTAs */
.srj-cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.srj-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 50px; border: none; cursor: pointer;
  font: 600 13px 'DM Sans', sans-serif; text-decoration: none;
  transition: opacity .15s, transform .15s, box-shadow .15s; white-space: nowrap;
}
.srj-cta:hover { opacity: .87; transform: translateY(-1px); }
.srj-cta-main {
  background: linear-gradient(135deg, #a83860, var(--rose));
  color: #fff; box-shadow: 0 3px 16px rgba(201,96,126,.32);
}
.srj-cta-main:hover { box-shadow: 0 5px 22px rgba(201,96,126,.44); }
.srj-cta-out { background: #ede5eb; color: var(--dim); cursor: not-allowed; opacity: .65; }
.srj-cardholder-msg {
  font-size: 13px; padding: 10px 14px;
  background: var(--mist); border: 1px solid var(--border);
  border-radius: 10px; color: var(--dim);
}

/* ── divider ────────────────────────────── */
.srj-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0 12px; }

/* ── digital versions ───────────────────── */
.srj-digital-hd {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; color: var(--dim); margin: 0 0 9px;
}
.srj-di-stack { display: flex; flex-direction: column; gap: 8px; }
.srj-di-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px; border-radius: 11px; border: 1px solid transparent;
}
.srj-di-ebook   { background: #f1faf5; border-color: rgba(50,160,100,.17); }
.srj-di-audiobook { background: #f5f0fa; border-color: rgba(110,60,170,.16); }
.srj-di-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.srj-di-ebook   .srj-di-icon { background: rgba(40,150,90,.13);  color: #22724a; }
.srj-di-audiobook .srj-di-icon { background: rgba(100,50,170,.1); color: #581890; }
.srj-di-icon svg { width: 15px !important; height: 15px !important; display: block; }
.srj-di-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.srj-di-label { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.srj-di-folder { font-size: 10.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srj-di-actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.srj-di-open {
  display: inline-flex; align-items: center;
  font: 600 11.5px 'DM Sans', sans-serif;
  padding: 5px 13px; border-radius: 20px;
  background: linear-gradient(135deg, #a83860, var(--rose));
  color: #fff; border: none; cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 6px rgba(201,96,126,.22);
  transition: opacity .15s, transform .15s;
}
.srj-di-open:hover { opacity: .85; transform: translateY(-1px); color: #fff; text-decoration: none; }
.srj-di-req {
  display: inline-flex; align-items: center;
  font: 500 10.5px 'DM Sans', sans-serif;
  padding: 5px 10px; border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent; color: var(--dim); cursor: pointer;
  white-space: nowrap; transition: all .15s;
}
.srj-di-req:hover { background: var(--mist); color: var(--mauve); border-color: var(--blush); }

/* ── reserve / digital small modal forms ── */
.srj-modal-title {
  font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 400;
  margin: 0 0 4px; color: var(--plum);
}
.srj-modal-book-name { font-size: 13px; color: var(--mauve); font-weight: 500; margin-bottom: 14px; }
.srj-pickup-info {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 9px; padding: 9px 13px; font-size: 13px; color: var(--dim); margin-bottom: 13px;
}
.srj-reserve-form label {
  display: block; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--mauve); margin: 11px 0 4px;
}
.srj-frontend-input {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--border); border-radius: 9px;
  font: 14px 'DM Sans', sans-serif; color: var(--ink);
  outline: none; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.srj-frontend-input:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(201,96,126,.1); }
.srj-reserve-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

/* generic btn used in small modals */
.srj-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 50px; border: none; cursor: pointer;
  font: 600 13px 'DM Sans', sans-serif; text-decoration: none;
  transition: opacity .15s, transform .15s; white-space: nowrap;
}
.srj-btn:hover { opacity: .87; transform: translateY(-1px); }
.srj-btn-confirm { background: linear-gradient(135deg,#a83860,var(--rose)); color:#fff; width:100%; box-shadow:0 3px 14px rgba(201,96,126,.28); }
.srj-btn-login   { background: var(--cream); color: var(--mauve); border: 1.5px solid var(--border); width: 100%; }
.srj-btn-cancel  { background: transparent; color: var(--rose); border: 1.5px solid rgba(201,96,126,.3); }
.srj-btn-ghost-small { background: transparent; color: var(--dim); border: 1.5px solid var(--border); padding: 6px 14px; font-size: 12px; border-radius: 50px; cursor: pointer; transition: all .15s; }
.srj-btn-ghost-small:hover { background: var(--mist); color: var(--mauve); border-color: var(--blush); }

#srj-reserve-result, #srj-digital-result {
  margin-top: 8px; padding: 9px 13px; border-radius: 9px; font-size: 13px;
}
.srj-result-success { background: #e4f5ec; color: #1a6830; }
.srj-result-error   { background: #fce8f0; color: #7a1030; }

/* ── spinner ────────────────────────────── */
.srj-loading {
  display: flex; align-items: center; justify-content: center;
  min-height: 200px;
}
.srj-spin {
  width: 32px; height: 32px;
  border: 3px solid var(--petal); border-top-color: var(--rose);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.srj-err { padding: 40px 20px; color: var(--dim); font-size: 14px; text-align: center; }

/* ── my reservations ────────────────────── */
.srj-section-title {
  font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 400;
  color: var(--plum); margin-bottom: 18px;
}
.srj-res-list { display: flex; flex-direction: column; gap: 10px; }
.srj-res-row {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border: 1px solid rgba(170,90,130,.1);
  border-radius: var(--r); padding: 13px; transition: box-shadow .2s;
}
.srj-res-row:hover { box-shadow: 0 4px 18px var(--shadow); }
.srj-res-cover img { width: 42px; height: 60px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.srj-res-ph { width: 42px; height: 60px; background: var(--petal); border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.srj-res-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.srj-res-info strong { font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--plum); }
.srj-res-author { font-size: 11.5px; color: var(--dim); font-style: italic; }
.srj-res-status-text { font-size: 12px; font-weight: 500; }
.srj-res-meta { font-size: 11px; color: var(--dim); }
.srj-res-actions { flex-shrink: 0; align-self: center; }
.srj-res-returned, .srj-res-cancelled { opacity: .55; }
.srj-login-prompt {
  text-align: center; padding: 40px 20px;
  background: var(--cream); border-radius: var(--r); color: var(--dim);
}
.srj-login-prompt a { color: var(--rose); font-weight: 600; text-decoration: none; }

/* ── modal scrollbar ────────────────────── */
.srj-modal-box::-webkit-scrollbar { width: 4px; }
.srj-modal-box::-webkit-scrollbar-thumb { background: var(--petal); border-radius: 2px; }
