
:root {
  --pink-50:  #fdf3f2;
  --pink-100: #f7dfe0;
  --pink-200: #edc3c8;
  --rose-400: #0a0a0a;
  --rose-600: #000000;
  --ink:      #000000;

  --glass-bg:      rgba(255, 244, 245, 0.30);
  --glass-bg-soft: rgba(255, 244, 245, 0.16);
  --glass-border:  rgba(255, 255, 255, 0.55);
  --glass-shadow:  rgba(120, 60, 70, 0.20);

  --chip-bg:     rgba(30, 20, 22, 0.34);
  --chip-bg-hov: rgba(30, 20, 22, 0.48);
  --chip-text:   #fff5f6;

  --bg-image: url("./assets/background.gif");
  --bg-blur: 0px;
  --bg-darkness: 0.30;
  --text-color: #2e2426;
  --text-secondary: #6b5a5c;
  --icon-brightness: 1;

  --radius-card: 28px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --float-ease: cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--rose-600); color: #fff; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg-image) center / cover no-repeat;
  filter: blur(var(--bg-blur));
  transform: scale(1.06);
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.35), transparent 60%),
    linear-gradient(rgba(20, 10, 12, var(--bg-darkness)), rgba(20, 10, 12, var(--bg-darkness)));
  z-index: -2;
}

#glassShader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* =========================================================
   click to enter gate
   ========================================================= */
.click-to-enter {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(20, 12, 13, 0.32);
  backdrop-filter: blur(26px) saturate(1.1);
  -webkit-backdrop-filter: blur(26px) saturate(1.1);
  opacity: 1;
  transition: opacity 0.6s var(--ease), backdrop-filter 0.6s var(--ease), -webkit-backdrop-filter 0.6s var(--ease);
}
.click-to-enter.is-hidden {
  opacity: 0;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
}

.enter-text {
  color: #fff;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: lowercase;
  opacity: 0.9;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  animation: enterPulse 2.2s ease-in-out infinite;
}
.click-to-enter:hover .enter-text {
  transform: scale(1.15);
  opacity: 1;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
@keyframes enterPulse {
  0%, 100% { text-shadow: 0 0 0 rgba(255,255,255,0); }
  50%      { text-shadow: 0 0 14px rgba(255,255,255,0.55); }
}

/* =========================================================
   layout
   ========================================================= */
.container {
  position: relative;
  width: min(92vw, 400px);
  padding: 24px 0;
  transition: width 0.45s var(--ease);
  animation: cardIn 0.6s var(--ease) both;
}

.container.reviews-expanded {
  width: min(92vw, 420px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 36px 28px 26px;
  border-radius: var(--radius-card);
  background: none;
  border: none;
  box-shadow: 0 24px 60px -20px var(--glass-shadow);
  overflow: hidden;
  animation: floatY 7s var(--float-ease) 0.6s infinite;
  isolation: isolate;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 244, 245, 0.16);
  border: 1px solid rgba(255,255,255,0.34);
  z-index: 0;
  pointer-events: none;
}
.card::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  border-radius: calc(var(--radius-card) - 1.5px);
  background: rgba(255, 244, 245, 0.20);
  backdrop-filter: blur(30px) saturate(1.35);
  -webkit-backdrop-filter: blur(30px) saturate(1.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30), inset 0 -1px 0 rgba(80,45,55,0.07);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.card > * {
  position: relative;
  z-index: 1;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes whiteGlowPulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(255,255,255,0.28), 0 0 18px rgba(255,255,255,0.15);
    filter: brightness(1) drop-shadow(0 0 8px rgba(255,255,255,0.22));
  }
  50% {
    box-shadow: 0 0 22px rgba(255,255,255,0.72), 0 0 32px rgba(255,255,255,0.48);
    filter: brightness(1.16) drop-shadow(0 0 16px rgba(255,255,255,0.68));
  }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* =========================================================
   avatar + status
   ========================================================= */
.avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin-bottom: 14px;
  transition: transform 700ms cubic-bezier(.22,1,.36,1), box-shadow 700ms cubic-bezier(.22,1,.36,1), filter 700ms cubic-bezier(.22,1,.36,1);
  transform-origin: center center;
  will-change: transform;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.10);
  box-shadow: 0 8px 24px -8px var(--glass-shadow);
  display: block;
}
.avatar-wrap:hover {
  transform: translate3d(0,0,0) scale(1.06);
  transition: transform 700ms cubic-bezier(.22,1,.36,1), box-shadow 700ms cubic-bezier(.22,1,.36,1), filter 700ms cubic-bezier(.22,1,.36,1);
}
.avatar-wrap:hover .avatar {
  box-shadow: 0 0 20px rgba(255,255,255,0.78), 0 16px 32px -12px rgba(70,40,48,0.36);
  filter: saturate(1.04) brightness(1.02);
  animation: whiteGlowPulse 1.5s ease-in-out infinite;
  transition: transform 700ms cubic-bezier(.22,1,.36,1), box-shadow 700ms cubic-bezier(.22,1,.36,1), filter 700ms cubic-bezier(.22,1,.36,1);
}

/* =========================================================
   username / bio
   ========================================================= */
.username {
  margin: 2px 0 2px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.2px;
  color: #000000;
  font-weight: 700;
}

.bio {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 400;
  color: #000000;
  font-weight: 500;
  text-align: center;
  max-width: 90%;
  opacity: 0.95;
  text-shadow: 0 1px 10px rgba(255,255,255,0.22);
}

/* =========================================================
   controls row: ./opi | social icons | views
   ========================================================= */
.controls-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 70%;
}

.pills-row {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 2px;
}

.actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}


.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 10px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--chip-bg);
  color: var(--chip-text);
  cursor: pointer;
  transition: background 500ms cubic-bezier(.16,1,.3,1), transform 500ms cubic-bezier(.16,1,.3,1), box-shadow 500ms cubic-bezier(.16,1,.3,1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pill:hover { background: var(--chip-bg-hov); transform: translate3d(0,-1px,0) scale(1.015); box-shadow: 0 0 18px rgba(255,255,255,0.48), 0 7px 16px rgba(40,24,28,0.10); animation: whiteGlowPulse 1.4s ease-in-out infinite; }
.pill:active { transform: translate3d(0,0,0) scale(0.99); }

.pill-opi {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12.5px;
  font-weight: 500;
  min-height: 30px;
  height: 30px;
  padding: 0 9px;
  background: rgba(255, 244, 245, 0.24);
  color: #000000;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(40,24,28,0.06);
}

.profile-views {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 244, 245, 0.24);
  color: #000000;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12.5px;
  font-weight: 500;
  pointer-events: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(40,24,28,0.06);
}

.profile-views svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}


.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  padding: 2px 0;
  transform: translate3d(0,0,0);
  will-change: transform;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  outline: 0;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(0,0,0) scale(1);
  transform-origin: center center;
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1), filter 420ms cubic-bezier(.22, 1, .36, 1), margin 420ms cubic-bezier(.22, 1, .36, 1), opacity 420ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform, margin;
  contain: layout paint;
}
.social-icon:hover,
.social-icon:focus-visible,
.social-icon:active {
  background: transparent;
  box-shadow: none;
  outline: none;
}
.social-icon:hover {
  transform: scale(1.08);
  margin: 0 2px;
  box-shadow: 0 0 22px rgba(255,255,255,0.72);
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.52));
  animation: whiteGlowPulse 1.6s ease-in-out infinite;
}
.social-icons:hover .social-icon:not(:hover) {
  transform: scale(0.98);
  opacity: 0.92;
  margin: 0 1px;
}
.social-icons .social-icon {
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1), filter 420ms cubic-bezier(.22, 1, .36, 1), margin 420ms cubic-bezier(.22, 1, .36, 1), opacity 420ms cubic-bezier(.22, 1, .36, 1);
}
.social-icon svg {
  display: block;
  width: 28px;
  height: 28px;
  color: #000000;
  fill: currentColor;
  transform: translate3d(0,0,0) scale(1);
  will-change: transform;
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1), filter 420ms cubic-bezier(.22, 1, .36, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.social-icon:hover svg,
.social-icon:focus-visible svg,
.social-icon:active svg {
  transform: scale(1.08);
}
.social-icons:hover .social-icon:not(:hover) svg {
  transform: scale(0.98);
}
.social-icon:active {
  transform: scale(1.04);
}

/* =========================================================
   music panel (standalone, below the profile card)
   ========================================================= */
.music-panel {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 22px;
  background: none;
  border: none;
  box-shadow: 0 18px 40px -18px var(--glass-shadow);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
  isolation: isolate;
  transition: max-height 520ms cubic-bezier(.16,1,.3,1), opacity 500ms cubic-bezier(.16,1,.3,1),
              padding 520ms cubic-bezier(.16,1,.3,1), margin-top 520ms cubic-bezier(.16,1,.3,1), box-shadow 520ms cubic-bezier(.16,1,.3,1);
}
.music-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 244, 245, 0.16);
  border: 1px solid rgba(255,255,255,0.34);
  z-index: 0;
  pointer-events: none;
}
.music-panel::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  border-radius: calc(22px - 1.5px);
  background: rgba(255, 244, 245, 0.20);
  backdrop-filter: blur(30px) saturate(1.35);
  -webkit-backdrop-filter: blur(30px) saturate(1.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30), inset 0 -1px 0 rgba(80,45,55,0.07);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.music-panel > * {
  position: relative;
  z-index: 1;
}

.music-panel.is-live {
  max-height: 100px;
  opacity: 1;
  padding-top: 12px;
  padding-bottom: 12px;
  animation: floatY 7s var(--float-ease) 0.6s infinite;
}

.play-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--rose-600);
  color: #fff;
  cursor: pointer;
  transition: background 420ms cubic-bezier(.22,1,.36,1), filter 420ms cubic-bezier(.22,1,.36,1), transform 420ms cubic-bezier(.22,1,.36,1), box-shadow 420ms cubic-bezier(.22,1,.36,1);
}
.play-toggle:hover { filter: brightness(1.14); transform: translate3d(0,0,0) scale(1.08); box-shadow: 0 0 24px rgba(255,255,255,0.72), 0 8px 18px rgba(50,25,30,0.18); animation: whiteGlowPulse 1.3s ease-in-out infinite; }
.play-toggle:active { transform: translate3d(0,0,0) scale(1.02); }
.play-toggle .icon-pause { display: none; }
.play-toggle.is-playing .icon-play { display: none; }
.play-toggle.is-playing .icon-pause { display: block; }

.album-cover {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.4);
}

.live-text {
  min-width: 0;
  flex: 1;
}

.live-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
}

.live-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.volume-control {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 62px;
  height: 3px;
  border-radius: 2px;
  background: rgba(120, 90, 92, 0.28);
  outline: none;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose-400);
  cursor: pointer;
  transition: background 500ms cubic-bezier(.16,1,.3,1), transform 500ms cubic-bezier(.16,1,.3,1), box-shadow 500ms cubic-bezier(.16,1,.3,1);
}
.volume-slider::-webkit-slider-thumb:hover {
  background: var(--rose-600);
  transform: scale(1.12);
}
.volume-slider::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(120, 90, 92, 0.28);
}
.volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: var(--rose-400);
  cursor: pointer;
}

.live-subtitle {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.time {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 9.5px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.progress-track {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(120, 90, 92, 0.25);
  overflow: hidden;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--rose-400);
  border-radius: 2px;
  transition: width 1s linear;
}

/* =========================================================
   dynamic island (notifications.js)
   ========================================================= */
.dynamic-island {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  height: 0;
  max-width: 80vw;
  border-radius: 999px;
  background: rgba(20, 14, 15, 0.85);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  opacity: 0;
  overflow: hidden;
  z-index: 100;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.dynamic-island-text { opacity: 0; transition: opacity 0.2s var(--ease) 0.1s; }
.dynamic-island.island-expand {
  animation: islandExpand 0.4s var(--ease) forwards;
}
.dynamic-island.island-expand .dynamic-island-text { opacity: 1; }
.dynamic-island.island-retract {
  animation: islandRetract 0.35s var(--ease) forwards;
}
.dynamic-island[data-type="error"] { background: rgba(90, 20, 24, 0.9); }
.dynamic-island[data-type="success"] { background: rgba(20, 70, 40, 0.9); }

@keyframes islandExpand {
  from { height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
  to   { height: 40px; opacity: 1; padding-top: 10px; padding-bottom: 10px; }
}
@keyframes islandRetract {
  from { height: 40px; opacity: 1; padding-top: 10px; padding-bottom: 10px; }
  to   { height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
}

/* =========================================================
   reviews panel
   ========================================================= */
.reviews-panel {
  width: 100%;
  flex-direction: column;
  gap: 12px;
}

.reviews-panel.reviews-enter { animation: panelIn 0.4s var(--ease) both; }
.reviews-panel.reviews-leave { animation: panelOut 0.32s var(--ease) both; }
@keyframes panelIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes panelOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-14px); }
}

.reviews-anim-fadeout { animation: fadeOutUp 0.28s var(--ease) both; }
.reviews-anim-fadein  { animation: fadeInDown 0.38s var(--ease) both; }
@keyframes fadeOutUp { to { opacity: 0; transform: translateY(-8px); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.reviews-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.reviews-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--chip-bg);
  color: var(--chip-text);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s var(--ease);
}
.reviews-back:hover { background: var(--chip-bg-hov); }

.reviews-title {
  font-family: 'Consolas', 'Courier New', monospace;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-color);
}
.reviews-title #reviewsCount {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  color: var(--text-secondary);
}

.reviews-list {
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}
.reviews-list::-webkit-scrollbar { width: 4px; }
.reviews-list::-webkit-scrollbar-thumb { background: rgba(120,90,92,0.3); border-radius: 2px; }

.reviews-loading, .reviews-empty {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-secondary);
  padding: 18px 0;
}

.review-card {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 244, 245, 0.35);
  border: 1px solid var(--glass-border);
  animation: fadeInDown 0.3s var(--ease) both;
}
.review-card.review-highlighted { border-color: var(--review-border, var(--rose-400)); }
.review-card.review-pinned { background: rgba(255, 244, 245, 0.55); }

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.review-card-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 4px;
}
.review-pin-icon { color: var(--rose-600); }
.review-card-stars { font-size: 11px; color: var(--rose-600); letter-spacing: 1px; }
.review-card-stars .star-empty { color: rgba(120, 90, 92, 0.3); }

.review-card-text {
  margin-top: 4px;
  font-size: 12.5px;
  color: #5a4a4c;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card-footer {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.review-card-date {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 10px;
  color: #8a7577;
}
.review-expand-btn {
  border: none;
  background: none;
  color: var(--rose-600);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  border-radius: 999px;
  transition: text-shadow 220ms var(--ease), box-shadow 220ms var(--ease), transform 220ms var(--ease);
}
.review-expand-btn:hover {
  text-shadow: 0 0 12px rgba(255,255,255,0.8);
  box-shadow: 0 0 18px rgba(255,255,255,0.52);
  transform: translateY(-1px);
  animation: whiteGlowPulse 1.5s ease-in-out infinite;
}

/* form */
.reviews-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.35);
}

.star-rating {
  display: flex;
  gap: 4px;
  font-size: 20px;
  color: rgba(120, 90, 92, 0.3);
  line-height: 1;
}
.star-rating .star { cursor: pointer; transition: color 0.15s var(--ease), transform 0.15s var(--ease); }
.star-rating .star.hover,
.star-rating .star.active { color: var(--rose-600); transform: scale(1.08); }

.review-input,
.review-textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255, 255, 255, 0.35);
  color: var(--ink);
  caret-color: var(--rose-600);
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  outline: none;
  resize: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.review-input::placeholder,
.review-textarea::placeholder { color: rgba(0, 0, 0, 0.7); opacity: 1; font-weight: 500; }
.review-input:focus,
.review-textarea:focus { border-color: var(--rose-600); background: rgba(255, 255, 255, 0.5); color: var(--ink); }

.review-image-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-image-btn {
  padding: 6px 12px;
  border: 1px dashed rgba(120, 90, 92, 0.4);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11.5px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.review-image-btn:hover { border-color: var(--rose-400); color: var(--rose-600); }
.review-image-name { font-size: 11px; color: var(--text-secondary); }
.review-image-clear {
  border: none;
  background: none;
  color: var(--rose-600);
  font-size: 15px;
  cursor: pointer;
  line-height: 1;
}
.review-image-preview {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.review-image-preview img { width: 100%; height: 100%; object-fit: cover; }

.submit-review-btn {
  margin-top: 2px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-400), var(--rose-600));
  color: #fff;
  font-family: 'Consolas', 'Courier New', monospace;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.2s var(--ease), transform 0.15s var(--ease);
}
.submit-review-btn:hover { transform: translateY(-1px); }
.submit-review-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* fullscreen review overlay */
.review-fullscreen,
.image-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 12, 13, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
  z-index: 200;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.review-fullscreen.active,
.image-overlay.active { opacity: 1; pointer-events: auto; }

.review-fullscreen-card {
  width: min(88vw, 340px);
  max-height: 80vh;
  overflow-y: auto;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(165deg, var(--pink-50), var(--pink-100));
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.4);
  transform: scale(0.96);
  transition: transform 0.25s var(--ease);
}
.review-fullscreen.active .review-fullscreen-card { transform: scale(1); }

.review-fullscreen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.review-fullscreen-name { font-family: 'Consolas', 'Courier New', monospace; font-weight: 500; font-size: 15px; color: var(--ink); }
.review-fullscreen-close { border: none; background: none; font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; }
.review-fullscreen-stars { margin-top: 6px; color: var(--rose-600); letter-spacing: 2px; }
.review-fullscreen-image { margin-top: 10px; border-radius: 14px; overflow: hidden; }
.review-fullscreen-image img { width: 100%; display: block; }
.review-fullscreen-text { margin-top: 10px; font-size: 13px; color: #5a4a4c; line-height: 1.5; }
.review-fullscreen-date { margin-top: 10px; font-family: 'Consolas', 'Courier New', monospace; font-size: 10.5px; color: #8a7577; }

.image-overlay-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  transform: scale(0.94);
  transition: transform 0.25s var(--ease);
}
.image-overlay.active .image-overlay-img { transform: scale(1); }

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 420px) {
  .container { width: 94vw; padding: 16px 0; }
  .card { padding: 30px 20px 22px; border-radius: 24px; }
  .username { font-size: 23px; }
}

/* =========================================================
   reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Smooth cursor glow */
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 330px;
  height: 330px;
  margin-left: -165px;
  margin-top: -165px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.35) 28%, rgba(255,255,255,0) 70%);
  filter: blur(8px);
  opacity: 0;
  transition: opacity .6s cubic-bezier(.22,1,.36,1);
  z-index: 9999;
  will-change: transform, opacity;
}
.cursor-glow.visible {
  opacity: 1;
}
