/* =========================================================
   RazyNo Experience CSS — full merged (responsive + camera)
   ========================================================= */

:root {
  --rz-text-primary: #f4efff;
  --rz-text-secondary: #c5bdd8;
  --rz-text-muted: #a99fbd;
  --rz-accent: #c69aff;
  --rz-gold: #fbbf24;
}

/* ---------- Shell & fortune request ---------- */
.fortune-request-shell,
.saved-page,
.tickets-page,
.ticket-detail-page,
.ticket-form-page {
  max-width: 980px;
  margin: 0 auto;
  color: var(--rz-text-primary);
  --bs-secondary-color: var(--rz-text-secondary);
  box-sizing: border-box;
}

.fortune-request-shell {
  width: 100%;
  color: #f4efff;
  --bs-secondary-color: #c5bdd8;
}

.fortune-request-heading { padding: 1.2rem 1rem 1.8rem; }
.fortune-request-heading h1 { color: #f8f2ff !important; }
.fortune-request-heading > p,
.fortune-request-heading .text-muted { color: #c5bdd8 !important; }

.fortune-request-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
  border-radius: 24px;
  font-size: 2.4rem;
  background: linear-gradient(145deg, rgba(164, 125, 255, .2), rgba(229, 174, 104, .12));
  border: 1px solid rgba(190, 160, 255, .22);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .12);
}

.fortune-eyebrow,
.page-kicker {
  display: block;
  color: #d0a7ff !important;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: .45rem;
}

.fortune-request-card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.1rem, 3.5vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 26px;
  box-sizing: border-box;
}

.fortune-request-card .form-label { color: #eee5ff !important; }
.fortune-request-card .form-control,
.fortune-request-card .form-select {
  color: #f4efff !important;
  background-color: rgba(255, 255, 255, .055);
  border-color: rgba(190, 160, 255, .25);
}
.fortune-request-card .form-control::placeholder {
  color: #a99fbd !important;
  opacity: 1;
}
.fortune-request-card .form-select option {
  color: #f4efff;
  background: #171326;
}
.fortune-request-card .text-danger { color: #ff929f !important; }

.fortune-submit-btn {
  min-height: 54px;
  border-radius: 15px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(120, 85, 220, .2);
}

.form-section-divider {
  height: 1px;
  background: rgba(255, 255, 255, .1);
  margin: 1.5rem 0;
}

.personalized-note {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(167, 139, 250, .1);
  color: #ded3f0 !important;
}
.personalized-note strong { color: #f4eaff !important; }
.personalized-note .small { color: #c5bdd8 !important; }
.personalized-note i { color: var(--accent, #c084fc); margin-left: .4rem; }

.back-to-fortunes,
.ticket-back-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1.2rem;
  color: #c5bdd8 !important;
  text-decoration: none;
  font-size: .88rem;
}
.back-to-fortunes:hover,
.ticket-back-link:hover { color: #d7b5ff !important; }

.fortune-request-shell > .text-muted { color: #aaa0bd !important; }

.loading-panel { color: #f4efff; }
.loading-panel p { color: #f4efff !important; }
.loading-panel .text-muted { color: #c5bdd8 !important; }

/* ---------- Image upload ---------- */
.image-upload-intro {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
}
.image-upload-intro h2 { color: #f4efff !important; }
.image-upload-intro p,
.image-upload-intro .text-muted { color: #c5bdd8 !important; }

.image-upload-step {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(167, 139, 250, .16);
  color: var(--accent, #c084fc);
  font-weight: 800;
}

.image-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  padding: 1.25rem;
  border: 1.5px dashed rgba(180, 155, 240, .48);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(135, 105, 205, .09), rgba(255, 255, 255, .025));
  color: #f4efff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s, background .2s, transform .2s;
  box-sizing: border-box;
  max-width: 100%;
}
.image-dropzone:hover,
.image-dropzone:focus-visible,
.image-dropzone.is-dragging {
  border-color: var(--accent, #c084fc);
  background: rgba(145, 115, 220, .13);
  outline: none;
}
.image-dropzone.is-dragging { transform: scale(.995); }
.image-dropzone strong { color: #f5edff !important; }
.image-dropzone .text-muted { color: #c5bdd8 !important; }

.upload-placeholder {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: .55rem;
  text-align: center;
}
.upload-icon-wrap {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: rgba(167, 139, 250, .16);
  color: var(--accent, #c084fc);
  font-size: 1.9rem;
  margin-bottom: .25rem;
}
.upload-select-link {
  display: inline-flex;
  padding: .5rem 1rem;
  margin-top: .4rem;
  border-radius: 12px;
  background: rgba(167, 139, 250, .16);
  color: #d7b5ff !important;
  font-size: .85rem;
  font-weight: 700;
}

.upload-preview {
  display: block;
  position: relative;
  width: 100%;
  max-height: 380px;
  text-align: center;
}
.upload-preview img {
  display: block;
  max-width: 100%;
  max-height: 360px;
  margin: auto;
  border-radius: 16px;
  object-fit: contain;
}
.preview-overlay {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: .45rem .7rem;
  border-radius: 10px;
  background: rgba(13, 20, 28, .8);
  color: #fff;
  font-size: .78rem;
}

.upload-file-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .9rem;
  margin-top: .65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  font-size: .83rem;
  color: #eee5ff;
}
.upload-file-meta strong { color: #f5edff !important; }
.upload-file-meta .text-muted { color: #c5bdd8 !important; }

.upload-rules {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.2rem;
  margin-top: .85rem;
  color: #c5bdd8 !important;
  font-size: .77rem;
}
.upload-rules i {
  margin-left: .3rem;
  color: var(--accent, #c084fc);
}

.image-upload-tips {
  padding: 1rem;
  margin-top: 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07);
  color: #e9e1f5;
}
.tips-title {
  font-size: .86rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: #f5d58a !important;
}
.tips-title i { color: var(--rz-gold); margin-left: .35rem; }
.image-upload-tips ul,
.image-upload-tips li,
.image-upload-tips .text-muted { color: #cfc5df !important; }

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin-top: 1rem;
  color: #c5bdd8 !important;
  font-size: .78rem;
  line-height: 1.9;
}
.privacy-note i { color: #6ed6a0; margin-top: .2rem; }

/* Gallery / camera action buttons */
.upload-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: .9rem;
  max-width: 100%;
}
.upload-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  min-height: 52px;
  padding: .75rem .9rem;
  border-radius: 16px;
  border: 1px solid rgba(180, 155, 240, .28);
  background: linear-gradient(145deg, rgba(135, 105, 205, .16), rgba(255, 255, 255, .04));
  color: #eee5ff !important;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.upload-action-btn:hover,
.upload-action-btn:focus-visible {
  border-color: rgba(192, 132, 252, .55);
  background: rgba(145, 115, 220, .2);
  outline: none;
  transform: translateY(-1px);
}
.upload-action-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(167, 139, 250, .14);
}
.upload-action-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}
.upload-action-gallery .upload-action-icon {
  color: #c6a0ff;
  background: rgba(167, 139, 250, .18);
}
.upload-action-camera .upload-action-icon {
  color: #f5c96a;
  background: rgba(251, 191, 36, .12);
}
.upload-action-label {
  color: #f1eaff !important;
  line-height: 1.3;
}

/* ---------- Camera modal (body-level fixed) ---------- */
.camera-modal[hidden] {
  display: none !important;
}

body > .camera-modal,
.camera-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
  box-sizing: border-box;
}

.camera-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 14, .8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.camera-modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100% !important;
  max-width: 480px;
  max-height: min(92dvh, 92vh) !important;
  margin: 0 !important;
  border-radius: 22px 22px 0 0 !important;
  border: 1px solid rgba(190, 160, 255, .22);
  border-bottom: none;
  background: linear-gradient(160deg, rgba(28, 20, 52, .98), rgba(12, 10, 28, .98));
  box-shadow: 0 -12px 48px rgba(0, 0, 0, .45);
  overflow: hidden;
  overscroll-behavior: contain;
  box-sizing: border-box;
}

.camera-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex: 0 0 auto;
  padding: .85rem 1rem;
  padding-top: calc(.85rem + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.camera-modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f4efff;
}
.camera-modal-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(180, 155, 240, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: #e8e0ff;
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}
.camera-modal-close:hover {
  background: rgba(192, 132, 252, .16);
  border-color: rgba(192, 132, 252, .4);
}

.camera-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 220px;
  max-height: 50dvh;
  background: #0a0814;
  overflow: hidden;
}
.camera-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0a0814;
}
.camera-guide-frame {
  position: absolute;
  inset: 10% 12%;
  border: 1.5px dashed rgba(251, 191, 36, .45);
  border-radius: 18px;
  pointer-events: none;
}

.camera-status,
.camera-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1.25rem;
  text-align: center;
  background: rgba(10, 8, 20, .88);
  color: #e9e1f5;
  font-size: .92rem;
  z-index: 2;
}
.camera-error { background: rgba(28, 12, 24, .9); }
.camera-error span {
  color: #f3d9a8;
  max-width: 16rem;
  line-height: 1.7;
}
.camera-status-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(192, 132, 252, .25);
  border-top-color: #c084fc;
  animation: cameraSpin .8s linear infinite;
}
@keyframes cameraSpin { to { transform: rotate(360deg); } }

.camera-controls {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  justify-items: center;
  gap: .75rem;
  padding: .85rem 1.1rem .5rem;
}
.camera-btn {
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: #eee5ff;
}
.camera-btn-secondary {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(180, 155, 240, .25);
  background: rgba(255, 255, 255, .07);
  color: #e8e0ff;
}
.camera-btn-secondary:hover { background: rgba(192, 132, 252, .16); }
.camera-btn-secondary svg {
  width: 20px;
  height: 20px;
  display: block;
}
.camera-btn-capture {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  position: relative;
}
.camera-capture-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(251, 191, 36, .8);
  box-shadow: 0 0 20px rgba(251, 191, 36, .25);
}
.camera-capture-inner {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fbbf24, #f59e0b);
}
.camera-btn-capture:hover .camera-capture-inner { filter: brightness(1.08); }

.camera-hint {
  flex: 0 0 auto;
  margin: 0;
  padding: .35rem 1rem calc(.9rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: .8rem;
  color: rgba(220, 213, 237, .75);
  line-height: 1.55;
}

.camera-modal.is-error .camera-guide-frame,
.camera-modal.is-error .camera-btn-capture,
.camera-modal.is-error .camera-btn-secondary[data-camera-switch] {
  opacity: .35;
  pointer-events: none;
}

html.camera-open,
html.camera-open body,
body.camera-open {
  overflow: hidden !important;
  overscroll-behavior: none;
  height: 100% !important;
  touch-action: none;
}

/* ---------- Saved readings ---------- */
.saved-page-header,
.tickets-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}
.saved-new-btn { white-space: nowrap; }
.saved-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.saved-search-wrap {
  position: relative;
  flex: 1;
  max-width: 480px;
}
.saved-search-wrap > i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rz-text-secondary);
  z-index: 1;
}
.saved-search-wrap input {
  padding-right: 2.6rem;
  border-radius: 13px;
}
.saved-count {
  font-size: .82rem;
  color: var(--rz-text-secondary) !important;
  white-space: nowrap;
}
.saved-count strong { color: var(--rz-accent) !important; font-size: 1rem; }

.saved-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.saved-reading-card { min-width: 0; }
.saved-reading-link {
  display: flex;
  height: 100%;
  min-height: 210px;
  flex-direction: column;
  padding: 1.15rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .045);
  color: var(--rz-text-primary);
  text-decoration: none;
  transition: transform .2s, border-color .2s, background .2s;
}
.saved-reading-link:hover {
  transform: translateY(-3px);
  border-color: rgba(180, 150, 255, .45);
  background: rgba(150, 120, 220, .09);
  color: #fff;
}
.saved-reading-link h1,
.saved-reading-link h2,
.saved-reading-link h3,
.saved-reading-link h4,
.saved-reading-link strong { color: var(--rz-text-primary); }

.saved-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.saved-type-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(167, 139, 250, .13);
  font-size: 1.45rem;
}
.saved-bookmark { color: var(--rz-gold); }
.saved-intention {
  font-size: .88rem;
  color: var(--rz-text-secondary) !important;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.saved-mood {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  align-self: flex-start;
  padding: .28rem .55rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, .05);
  font-size: .72rem;
  color: var(--rz-text-secondary) !important;
}
.saved-card-footer {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .75rem;
  color: var(--rz-text-secondary) !important;
}
.saved-card-footer span:last-child { color: var(--rz-accent) !important; }
.saved-no-results {
  text-align: center;
  padding: 2rem;
  color: var(--rz-text-secondary) !important;
}

.saved-empty,
.ticket-empty {
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
}
.empty-orbit {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 24px;
  background: rgba(167, 139, 250, .12);
  color: var(--accent, #c084fc);
  font-size: 2rem;
}

/* ---------- Support tickets ---------- */
.ticket-list-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .8rem 1rem;
  margin-bottom: .75rem;
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
  font-size: .84rem;
  color: var(--rz-text-secondary) !important;
}
.ticket-list-summary i { color: var(--accent, #c084fc); margin-left: .4rem; }

.ticket-list { display: grid; gap: .75rem; }
.ticket-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .045);
  color: var(--rz-text-primary);
  text-decoration: none;
  transition: border-color .2s, transform .2s, background .2s;
}
.ticket-list-card:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(180, 150, 255, .42);
  background: rgba(150, 120, 220, .08);
}
.ticket-list-card h1,
.ticket-list-card h2,
.ticket-list-card h3,
.ticket-list-card strong { color: var(--rz-text-primary); }

.ticket-list-main {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}
.ticket-list-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(167, 139, 250, .13);
  color: var(--accent, #c084fc);
  font-size: 1.2rem;
}
.ticket-list-content { min-width: 0; }
.ticket-list-content h2 { overflow-wrap: anywhere; }
.ticket-list-meta {
  font-size: .75rem;
  color: var(--rz-text-secondary) !important;
}
.ticket-list-meta span { padding: 0 .25rem; }
.ticket-list-side {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: .4rem;
}
.ticket-status-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .65rem;
  border-radius: 999px;
  font-size: .73rem;
  white-space: nowrap;
}
.ticket-status-pill i { font-size: .48rem; }
.ticket-status-pill.open { background: rgba(245, 185, 90, .12); color: #f2c879; }
.ticket-status-pill.progress { background: rgba(95, 160, 255, .13); color: #91bdff; }
.ticket-status-pill.resolved { background: rgba(87, 203, 151, .13); color: #80e0b1; }
.ticket-status-pill.closed { background: rgba(160, 160, 170, .13); color: #c5c5d0; }
.ticket-priority {
  font-size: .7rem;
  color: var(--rz-text-secondary) !important;
}
.ticket-list-arrow { color: var(--rz-text-secondary); }

.ticket-form-page { max-width: 680px; }
.ticket-form-card {
  padding: clamp(1.2rem, 4vw, 2.2rem);
  margin-top: 1rem;
  border-radius: 22px;
}
.ticket-form-heading {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.8rem;
}
.ticket-form-icon {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(167, 139, 250, .14);
  color: var(--accent, #c084fc);
  font-size: 1.5rem;
}
.ticket-form-card .form-control,
.ticket-form-card .form-select { border-radius: 12px; }
.ticket-form-card textarea { resize: vertical; min-height: 130px; }

.ticket-detail-page { max-width: 850px; }
.ticket-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  margin-top: 1rem;
  border-radius: 19px;
}
.ticket-detail-meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .76rem;
  color: var(--rz-text-secondary) !important;
}
.ticket-conversation { padding: 1.2rem 0; }
.conversation-date {
  text-align: center;
  margin: 1rem 0 1.3rem;
  color: var(--rz-text-secondary) !important;
  font-size: .75rem;
}
.conversation-message {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: 1rem;
}
.conversation-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 13px;
  background: rgba(167, 139, 250, .14);
  color: var(--accent, #c084fc);
}
.support-message .conversation-avatar {
  background: rgba(100, 190, 150, .14);
  color: #70d7a8;
}
.conversation-bubble {
  max-width: min(680px, calc(100% - 48px));
  padding: 1rem 1.1rem;
  border-radius: 5px 17px 17px 17px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .07);
  color: #eee8f8;
}
.support-message .conversation-bubble {
  background: rgba(90, 180, 135, .07);
  border-color: rgba(90, 180, 135, .13);
}
.conversation-bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .65rem;
  font-size: .77rem;
}
.conversation-bubble-head time {
  font-size: .7rem;
  color: var(--rz-text-secondary) !important;
  white-space: nowrap;
}
.conversation-bubble p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  line-height: 1.95;
  color: #eee8f8;
}
.ticket-reply-card { padding: 1.25rem; border-radius: 18px; }
.ticket-reply-card textarea { resize: vertical; }
.ticket-closed-note {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(160, 160, 170, .08);
  color: var(--rz-text-secondary);
  font-size: .85rem;
}

/* Form controls on dark pages */
.saved-page .form-control,
.saved-page .form-select,
.tickets-page .form-control,
.tickets-page .form-select,
.ticket-detail-page .form-control,
.ticket-form-page .form-control,
.ticket-form-page .form-select {
  color: var(--rz-text-primary);
  background-color: rgba(255, 255, 255, .055);
  border-color: rgba(190, 160, 255, .25);
}
.saved-page .form-control::placeholder,
.tickets-page .form-control::placeholder,
.ticket-detail-page .form-control::placeholder,
.ticket-form-page .form-control::placeholder {
  color: var(--rz-text-muted);
  opacity: 1;
}

/* Fortune type cards */
.fal-card { color: var(--rz-text-primary); }
.fal-card h1,
.fal-card h2,
.fal-card h3,
.fal-card h4,
.fal-card h5,
.fal-card h6,
.fal-card strong { color: var(--rz-text-primary); }
.fal-card p,
.fal-card small,
.fal-card .text-muted,
.fal-card .text-secondary,
.fal-card .description,
.fal-card .card-text,
.fal-card [class*="text-muted"],
.fal-card [class*="text-secondary"] {
  color: var(--rz-text-secondary) !important;
}
.fal-card a:not(.btn) { color: var(--rz-accent); }
.fal-card a:not(.btn):hover { color: #e0c6ff; }

.saved-page .opacity-50,
.tickets-page .opacity-50,
.ticket-detail-page .opacity-50,
.fal-card .opacity-50 { opacity: .85 !important; }

/* ---------- Dashboard ---------- */
.dashboard-page {
  max-width: 1100px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.dashboard-eyebrow {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--gold, #fbbf24);
  font-weight: 600;
  margin-bottom: .3rem;
}
.dashboard-welcome {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.6rem 1.4rem;
  position: relative;
  overflow: hidden;
}
.dashboard-welcome h1 {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  margin: .2rem 0 .45rem;
  line-height: 1.35;
}
.dashboard-welcome p {
  color: var(--text-muted, #b8acd4);
  margin: 0 0 1rem;
  max-width: 36rem;
}
.dashboard-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.dashboard-welcome-art {
  position: relative;
  min-height: 130px;
  display: grid;
  place-items: center;
}
.dashboard-moon {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fde68a, #f59e0b 42%, #7c3aed 100%);
  box-shadow: 0 0 36px rgba(251, 191, 36, .32), 0 0 70px rgba(168, 85, 247, .22);
  display: grid;
  place-items: center;
  animation: dashboardFloat 6s ease-in-out infinite;
}
.dashboard-moon span {
  font-size: 1.45rem;
  color: #1a1000;
  font-weight: 700;
}
.dashboard-star {
  position: absolute;
  color: var(--gold-soft, #fcd34d);
  opacity: .85;
  animation: dashboardTwinkle 3s ease-in-out infinite;
}
.dashboard-star-one { top: 16%; left: 16%; font-size: 1.05rem; }
.dashboard-star-two { bottom: 20%; right: 18%; font-size: .9rem; animation-delay: 1.1s; }

@keyframes dashboardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes dashboardTwinkle {
  0%, 100% { opacity: .35; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}
.dashboard-stat {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: 1.05rem .95rem;
  transition: transform .22s ease;
}
.dashboard-stat:hover { transform: translateY(-2px); }
.dashboard-stat-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(167, 139, 250, .12);
  color: var(--accent, #c084fc);
}
.dashboard-stat-icon .icon { width: 1.25rem; height: 1.25rem; }
.dashboard-stat-label {
  display: block;
  font-size: .76rem;
  color: var(--text-muted, #b8acd4);
  margin-bottom: .12rem;
}
.dashboard-stat strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1.2;
  color: var(--text, #f8f4ff);
}
.dashboard-stat small {
  display: block;
  margin-top: .18rem;
  font-size: .72rem;
  color: var(--text-muted, #b8acd4);
}

.dashboard-subscription {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 1.25rem;
}
.dashboard-subscription-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(251, 191, 36, .1);
  color: var(--gold, #fbbf24);
}
.dashboard-subscription-icon .icon { width: 1.35rem; height: 1.35rem; }
.dashboard-subscription-copy h2 {
  margin: .15rem 0 .35rem;
  font-size: 1.08rem;
}
.dashboard-subscription-copy p {
  margin: 0;
  color: var(--text-muted, #b8acd4);
  font-size: .9rem;
}
.dashboard-expiry {
  color: var(--accent-bright, #e879f9);
  font-weight: 600;
}

.dashboard-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-top: .25rem;
}
.dashboard-section-heading h2 {
  margin: .15rem 0 0;
  font-size: 1.15rem;
}
.dashboard-text-link {
  color: var(--accent-bright, #e879f9);
  text-decoration: none;
  font-size: .9rem;
  white-space: nowrap;
}
.dashboard-text-link:hover {
  color: var(--gold, #fbbf24);
  text-decoration: underline;
}

.dashboard-readings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}
.dashboard-reading-card {
  padding: 1.05rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  min-height: 148px;
  transition: transform .22s ease;
}
.dashboard-reading-card:hover { transform: translateY(-2px); }
.dashboard-reading-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}
.dashboard-reading-type {
  font-weight: 700;
  font-size: .92rem;
  color: var(--gold-soft, #fcd34d);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.dashboard-reading-snippet {
  margin: 0;
  flex: 1;
  font-size: .86rem;
  color: var(--text-muted, #b8acd4);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dashboard-reading-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding-top: .35rem;
  border-top: 1px solid rgba(192, 132, 252, .12);
}

.dashboard-empty {
  text-align: center;
  padding: 2.4rem 1.4rem;
}
.dashboard-empty-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  margin-bottom: .75rem;
  background: rgba(167, 139, 250, .12);
  color: var(--accent, #c084fc);
}
.dashboard-empty h3 { margin: 0 0 .45rem; }
.dashboard-empty p {
  color: var(--text-muted, #b8acd4);
  margin: 0 0 1.15rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .dashboard-welcome { grid-template-columns: 1fr; }
  .dashboard-welcome-art { min-height: 96px; }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-readings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-subscription { grid-template-columns: auto 1fr; }
  .dashboard-subscription .btn {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

@media (max-width: 767.98px) {
  .fortune-request-shell {
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
  }
  .fortune-request-heading {
    padding: .75rem 0 1rem;
    text-align: center;
  }
  .fortune-request-icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
    border-radius: 20px;
  }
  .fortune-request-card {
    width: 100%;
    max-width: 100%;
    padding: 1rem !important;
    border-radius: 18px;
  }
  .image-dropzone {
    min-height: 190px;
    padding: 1rem;
  }
  .upload-preview img { max-height: 280px; }
  .upload-action-buttons {
    grid-template-columns: 1fr !important;
    gap: .6rem;
  }
  .upload-action-btn,
  .fortune-submit-btn { width: 100%; }
  .upload-rules {
    gap: .4rem .75rem;
    font-size: .74rem;
  }
  .image-upload-intro { align-items: flex-start; }

  .saved-page-header,
  .tickets-page-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .saved-new-btn { width: 100%; }
  .saved-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }
  .saved-reading-link { padding: .95rem; min-height: 200px; }
  .saved-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .saved-search-wrap { max-width: none; }

  .ticket-list-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
    padding: .95rem;
  }
  .ticket-list-side { align-items: flex-end; }
  .ticket-list-arrow { display: none; }
  .ticket-detail-header {
    flex-direction: column;
    padding: 1.1rem;
  }
  .conversation-bubble { padding: .85rem; }
  .ticket-form-heading { align-items: flex-start; }

  .saved-intention,
  .saved-card-footer,
  .ticket-list-meta,
  .ticket-detail-meta,
  .fal-card p,
  .fal-card small,
  .fortune-request-heading > p,
  .image-upload-intro p,
  .image-upload-tips li,
  .privacy-note {
    color: var(--rz-text-secondary) !important;
  }
}

@media (max-width: 640px) {
  .dashboard-stats,
  .dashboard-readings-grid { grid-template-columns: 1fr; }
  .dashboard-section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .dashboard-welcome { padding: 1.2rem 1rem; }
}

@media (max-width: 520px) {
  .upload-action-buttons { grid-template-columns: 1fr !important; }
}

@media (max-width: 420px) {
  .saved-grid { grid-template-columns: 1fr; }
  .saved-reading-link { min-height: 175px; }
  .ticket-list-card { grid-template-columns: 1fr; }
  .ticket-list-side {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .ticket-list-main { align-items: flex-start; }
  .ticket-list-icon { flex-basis: 38px; height: 38px; }
  .upload-rules { gap: .45rem .8rem; }
  .upload-file-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 768px) {
  .camera-modal {
    align-items: center;
    padding: 1rem !important;
    touch-action: auto;
  }
  .camera-modal-panel {
    border-radius: 24px !important;
    border-bottom: 1px solid rgba(190, 160, 255, .22);
    max-height: min(88vh, 720px) !important;
  }
  .camera-viewport {
    max-height: none;
    aspect-ratio: 3 / 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .saved-reading-link,
  .ticket-list-card,
  .image-dropzone,
  .dashboard-moon,
  .dashboard-star {
    transition: none;
    animation: none;
  }
}
