/* ═══════════════════════════════════════════════
   PIXELVAULT — FUTURISTIC RAINBOW STYLE
   ═══════════════════════════════════════════════ */

:root {
  --bg:          #06060f;
  --bg2:         #0d0d1e;
  --glass-bg:    rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.09);
  --text:        #e8e8f0;
  --text-muted:  #7070a0;
  --radius:      16px;
  --nav-h:       64px;
  --r1: #ff0080;
  --r2: #ff6600;
  --r3: #ffee00;
  --r4: #00ff88;
  --r5: #00cfff;
  --r6: #bf00ff;
}

/* ── RESET & BASE ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  overflow-x: hidden;
}

/* ── CANVAS ───────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── GLASS UTILITY ────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
}

/* ── RAINBOW TEXT ─────────────────────────────── */
.rainbow-text {
  background: linear-gradient(
    90deg,
    var(--r1) 0%,
    var(--r2) 20%,
    var(--r3) 40%,
    var(--r4) 60%,
    var(--r5) 80%,
    var(--r6) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow-shift 5s linear infinite;
}
@keyframes rainbow-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ── RAINBOW BORDER GLOW ──────────────────────── */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.rainbow-border {
  border: 1.5px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.rainbow-border::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--border-angle),
    var(--r1), var(--r2), var(--r3),
    var(--r4), var(--r5), var(--r6), var(--r1)
  );
  z-index: -1;
  animation: border-spin 4s linear infinite;
}
@keyframes border-spin {
  to { --border-angle: 360deg; }
}

/* ── LOGIN SCREEN ─────────────────────────────── */
#login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(130, 0, 255, 0.15) 0%,
    rgba(0, 200, 255, 0.08) 40%,
    transparent 70%
  );
}

.login-card {
  padding: 3rem 2.5rem;
  border-radius: 24px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  position: relative;
  animation: float-in 0.6s ease both;
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.logo-glyph {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--r5), var(--r6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 200, 255, 0.6));
}
.login-logo h1 {
  font-family: 'Orbitron', monospace;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.login-tagline {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
}
.btn-google:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 207, 255, 0.5);
  box-shadow: 0 0 24px rgba(0, 207, 255, 0.25), 0 8px 20px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.login-features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

/* ── NAVBAR ───────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(6, 6, 15, 0.7);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-glyph-sm {
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--r5), var(--r6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-logo-text {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-filters {
  display: flex;
  gap: 0.4rem;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
}
.filter-btn:hover,
.filter-btn.active {
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border-color: rgba(0, 207, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 207, 255, 0.2);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-upload {
  background: linear-gradient(135deg, var(--r5), var(--r6));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.45rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.04em;
  box-shadow: 0 0 16px rgba(0, 207, 255, 0.35);
}
.btn-upload:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(0, 207, 255, 0.55);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(0, 207, 255, 0.5);
  object-fit: cover;
}
.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-logout {
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-logout:hover { color: var(--r1); border-color: var(--r1); }

/* ── GALLERY GRID ─────────────────────────────── */
#app { position: relative; z-index: 1; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2px;
  padding: calc(var(--nav-h) + 1.25rem) 0.25rem 3rem;
  min-height: 100vh;
  align-items: start;
}
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 2px; }
  .nav-filters { display: none; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .user-name { display: none; }
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 6rem 2rem;
  color: var(--text-muted);
}
.empty-icon {
  font-size: 4rem;
  background: linear-gradient(135deg, var(--r5), var(--r6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

/* ── CARDS ────────────────────────────────────── */
.card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: card-in 0.4s ease both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 207, 255, 0.15),
              0 4px 16px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 207, 255, 0.25);
}

/* Card header */
.card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem 0.3rem;
}
.card-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(0, 207, 255, 0.4);
  flex-shrink: 0;
}
.card-username {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-time {
  font-size: 0.65rem;
  color: rgba(112, 112, 160, 0.7);
  margin-left: auto;
  white-space: nowrap;
}

/* Card image */
.card-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background: rgba(0, 0, 0, 0.3);
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.card-img-wrap:hover img { transform: scale(1.04); }

/* Card music */
.card-music-wrap {
  width: 100%;
  background: linear-gradient(135deg, rgba(0, 50, 80, 0.6), rgba(60, 0, 80, 0.6));
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}
.music-icon-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  opacity: 0.07;
  pointer-events: none;
  animation: spin-slow 10s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.card-audio {
  width: 100%;
  position: relative;
  z-index: 1;
  filter: invert(1) hue-rotate(180deg) brightness(0.85);
  border-radius: 6px;
}
.music-waveform {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 40px;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}
.waveform-bar {
  width: 4px;
  background: linear-gradient(to top, var(--r5), var(--r6));
  border-radius: 2px;
  animation: wave-dance var(--d, 0.8s) ease-in-out infinite alternate;
}
@keyframes wave-dance {
  from { height: var(--min-h, 6px); }
  to   { height: var(--max-h, 32px); }
}

/* Card body */
.card-body {
  padding: 0.35rem 0.6rem 0.25rem;
  flex: 1;
}
.card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Share dropdown */
.share-wrap {
  position: relative;
  display: flex;
}
.share-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18,18,35,0.97);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.25rem;
  z-index: 100;
  min-width: 130px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
}
.share-dropdown.open { display: flex; flex-direction: column; gap: 0.1rem; }
.share-dd-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
  text-align: left;
}
.share-dd-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.share-dd-item svg { width: 13px; height: 13px; flex-shrink: 0; }
.desc-dropdown { min-width: 200px; max-width: 260px; left: auto; right: 0; transform: none; }
.desc-dd-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0.35rem 0.5rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 180px;
  overflow-y: auto;
}

/* Card actions */
.card-actions {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.3rem 0.35rem 0.45rem;
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
}
.btn-action {
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-action:hover {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}
.btn-action.liked {
  color: var(--r1);
  filter: drop-shadow(0 0 6px rgba(255, 0, 128, 0.6));
}
.btn-action.like-btn svg,
.btn-action.like-btn span { pointer-events: none; }
.btn-action:last-child { margin-left: auto; }

/* Action icon SVGs */
.icon { width: 14px; height: 14px; fill: currentColor; }

/* ── MODALS ───────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 15, 0.75);
  backdrop-filter: blur(6px);
  padding: 1rem;
}
.modal-overlay.active {
  display: flex;
  animation: fade-in 0.15s ease both;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  position: relative;
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slide-up 0.25s ease both;
}
.modal-wide { max-width: 560px; }

@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.1); }

.modal-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

/* ── FORM ELEMENTS ────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: rgba(0, 207, 255, 0.5);
  box-shadow: 0 0 16px rgba(0, 207, 255, 0.15);
}
.form-input::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

/* Blog text on cards */
.card-description {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  padding: 0 0.9rem 0.3rem;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: hidden;
}
.btn-read-more {
  background: none;
  border: none;
  color: rgba(0, 207, 255, 0.8);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0 0.9rem 0.4rem;
  cursor: pointer;
  display: block;
}
.btn-read-more:hover { color: var(--r5); }
.desc-modal-body {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
  color: var(--text-muted);
  max-height: 60vh;
  overflow-y: auto;
  font-size: 0.92rem;
  padding-right: 0.5rem;
}
.char-counter {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  text-align: right;
  margin-top: 0.2rem;
}

/* Toggle button groups */
.type-toggle, .source-toggle {
  display: flex;
  gap: 0.5rem;
}
.type-btn, .source-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
}
.type-btn.active, .source-btn.active {
  background: rgba(0, 207, 255, 0.12);
  border-color: rgba(0, 207, 255, 0.5);
  color: var(--text);
  box-shadow: 0 0 12px rgba(0, 207, 255, 0.2);
}

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: rgba(0, 207, 255, 0.5);
  background: rgba(0, 207, 255, 0.05);
  color: var(--text);
}
.drop-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.drop-hint { font-size: 0.75rem; opacity: 0.6; margin-top: 0.5rem; display: block; }

/* Progress bar */
#upload-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--r5), var(--r6));
  border-radius: 3px;
  transition: width 0.2s ease;
}
#upload-percent { font-size: 0.8rem; color: var(--text-muted); width: 36px; }

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--r5), var(--r6));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 16px rgba(0, 207, 255, 0.3);
  letter-spacing: 0.04em;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(0, 207, 255, 0.5);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-full { width: 100%; }

/* ── COMMENTS ─────────────────────────────────── */
.comments-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-right: 0.25rem;
}
.comments-list::-webkit-scrollbar { width: 4px; }
.comments-list::-webkit-scrollbar-track { background: transparent; }
.comments-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.comment-item {
  display: flex;
  gap: 0.6rem;
  animation: card-in 0.3s ease both;
}
.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(0, 207, 255, 0.3);
}
.comment-body {}
.comment-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.comment-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

.comments-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-size: 0.9rem;
}

.comment-input-row {
  display: flex;
  gap: 0.5rem;
}
.comment-input-row .form-input { flex: 1; }
.comment-input-row .btn-primary { padding: 0.7rem 1rem; flex-shrink: 0; }

/* ── LIGHTBOX ─────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  flex-direction: column;
}
.lightbox-bg {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 15, 0.94);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.lightbox-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
}
.lb-nav-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.lb-nav-btn:hover { color: #fff; background: rgba(0,207,255,0.15); }
.lb-zoom-slider {
  width: 140px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  accent-color: rgba(0,207,255,0.9);
}
.lb-zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(0,207,255,0.9);
  cursor: pointer;
}
.lb-zoom-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  min-width: 36px;
  font-variant-numeric: tabular-nums;
}
.lightbox-close {
  margin-left: auto;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 1rem;
  width: 34px; height: 34px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.lightbox-close:hover { color: var(--text); background: rgba(255,255,255,0.12); }
.lightbox-img-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 1rem;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0, 207, 255, 0.15);
  object-fit: contain;
  transition: transform 0.15s ease;
  cursor: grab;
}

/* ── TOAST ────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 500;
  background: rgba(0, 207, 255, 0.15);
  border: 1px solid rgba(0, 207, 255, 0.4);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  backdrop-filter: blur(12px);
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── PRICING MODAL ────────────────────────────── */
.modal-pricing { max-width: 860px; }

.pricing-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 680px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.plan-card {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s, border-color 0.2s;
}
.plan-card:hover { transform: translateY(-3px); }

.plan-popular {
  border-color: rgba(0, 207, 255, 0.4);
  background: rgba(0, 207, 255, 0.05);
  box-shadow: 0 0 30px rgba(0, 207, 255, 0.12);
}

.plan-pro {
  border-color: rgba(191, 0, 255, 0.4);
  background: rgba(191, 0, 255, 0.05);
  box-shadow: 0 0 30px rgba(191, 0, 255, 0.12);
}

.plan-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--r5), var(--r6));
  border-radius: 20px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.plan-name {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.5rem;
}

.plan-price {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}
.plan-price span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
}

.plan-features {
  list-style: none;
  margin: 0.75rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.plan-features li {
  font-size: 0.85rem;
  color: var(--text);
}
.plan-features li.dim { color: var(--text-muted); opacity: 0.5; }

.btn-plan {
  width: 100%;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.65rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: auto;
}
.btn-plan:disabled { opacity: 0.4; cursor: default; }

.btn-plan-primary {
  background: linear-gradient(135deg, var(--r5), rgba(0, 207, 255, 0.8));
  border: none;
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 207, 255, 0.3);
}
.btn-plan-primary:hover { box-shadow: 0 0 28px rgba(0, 207, 255, 0.55); transform: translateY(-1px); }

.btn-plan-pro {
  background: linear-gradient(135deg, var(--r6), var(--r1));
  border: none;
  color: #fff;
  box-shadow: 0 0 16px rgba(191, 0, 255, 0.3);
}
.btn-plan-pro:hover { box-shadow: 0 0 28px rgba(191, 0, 255, 0.55); transform: translateY(-1px); }

.pricing-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Upgrade button in navbar */
.btn-upgrade {
  background: transparent;
  border: 1px solid rgba(255, 200, 0, 0.4);
  border-radius: 10px;
  color: rgba(255, 200, 0, 0.9);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-upgrade:hover {
  background: rgba(255, 200, 0, 0.1);
  box-shadow: 0 0 14px rgba(255, 200, 0, 0.25);
}

/* Plan badge on user profile */
.badge-starter { color: rgba(0, 207, 255, 0.9); font-size: 0.72rem; font-weight: 700; }
.badge-pro {
  font-size: 0.72rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--r5), var(--r6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SIDE PANELS ──────────────────────────────── */
.side-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
}
.side-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 15, 0.72);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.side-panel-inner {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 460px;
  max-width: 100vw;
  overflow-y: auto;
  padding: 1.25rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-left: 1px solid var(--glass-border);
  animation: slide-in-right 0.28s ease both;
}
@keyframes slide-in-right {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.side-panel-close {
  align-self: flex-end;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.side-panel-close:hover { color: var(--text); background: rgba(255,255,255,0.1); }
.side-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.panel-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 700;
}
.btn-sm {
  font-size: 0.82rem !important;
  padding: 0.4rem 0.9rem !important;
}

/* ── PROFILE PANEL ────────────────────────────── */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0 0.75rem;
}
.profile-avatar-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 207, 255, 0.5);
  flex-shrink: 0;
  cursor: pointer;
}
.profile-panel-name {
  font-family: 'Orbitron', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.profile-tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.6rem;
}
.profile-tab {
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  cursor: pointer;
  transition: all 0.15s;
}
.profile-tab.active {
  background: rgba(0, 207, 255, 0.1);
  border-color: rgba(0, 207, 255, 0.4);
  color: var(--text);
}
.profile-tab-section { padding-top: 0.4rem; }
.profile-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 2rem 1rem;
}
.profile-loading {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 1.5rem;
}

/* ── MINI POST GRID ───────────────────────────── */
.profile-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.mini-post-thumb {
  aspect-ratio: 1;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}
.mini-post-thumb:hover { opacity: 0.75; }
.mini-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 0.62rem;
  background: rgba(0,0,0,0.65);
  border-radius: 4px;
  padding: 0.1rem 0.25rem;
}
.mini-music { background: linear-gradient(135deg, rgba(0,40,70,0.9), rgba(50,0,70,0.9)) !important; }
.mini-video { background: linear-gradient(135deg, rgba(70,0,40,0.9), rgba(50,0,70,0.9)) !important; }
.mini-type-icon { font-size: 1.4rem; opacity: 0.8; }
.mini-post-title {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 95%;
}

/* ── PROMPTS BUTTON ───────────────────────────── */
.btn-prompts {
  background: transparent;
  border: 1px solid rgba(0, 255, 170, 0.35);
  border-radius: 10px;
  color: rgba(0, 255, 170, 0.85);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-prompts:hover {
  background: rgba(0, 255, 170, 0.08);
  box-shadow: 0 0 14px rgba(0, 255, 170, 0.2);
}

/* ── CATEGORY PILLS ───────────────────────────── */
.category-pills-wrap {
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.category-pills-wrap::-webkit-scrollbar { display: none; }
.category-pills { display: flex; gap: 0.4rem; flex-wrap: nowrap; }
.cat-pill {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.cat-pill.active {
  background: rgba(0, 255, 170, 0.1);
  border-color: rgba(0, 255, 170, 0.4);
  color: rgba(0, 255, 170, 0.9);
}

/* ── PROMPT CARDS ─────────────────────────────── */
.prompts-list { display: flex; flex-direction: column; gap: 0.65rem; }
.prompt-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.15s;
}
.prompt-card:hover { border-color: rgba(0, 255, 170, 0.2); }
.prompt-card-meta { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.prompt-cat-tag {
  background: rgba(0, 207, 255, 0.1);
  border: 1px solid rgba(0, 207, 255, 0.25);
  border-radius: 20px;
  color: rgba(0, 207, 255, 0.85);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.55rem;
  letter-spacing: 0.04em;
}
.prompt-vis-tag { border-radius: 20px; font-size: 0.68rem; font-weight: 700; padding: 0.12rem 0.55rem; }
.vis-pub {
  background: rgba(0, 200, 100, 0.1);
  border: 1px solid rgba(0, 200, 100, 0.25);
  color: rgba(0, 200, 100, 0.85);
}
.vis-priv {
  background: rgba(255, 150, 0, 0.1);
  border: 1px solid rgba(255, 150, 0, 0.25);
  color: rgba(255, 180, 50, 0.85);
}
.prompt-card-title { font-size: 0.92rem; font-weight: 700; color: var(--text); }
.prompt-card-content {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.prompt-card-content.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prompt-card-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.15rem; }
.btn-copy-prompt, .btn-toggle-prompt-vis, .btn-edit-prompt, .btn-del-prompt {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-copy-prompt:hover { color: var(--r5); border-color: rgba(0, 207, 255, 0.3); }
.btn-toggle-prompt-vis:hover { color: rgba(0, 200, 100, 0.9); border-color: rgba(0, 200, 100, 0.3); }
.btn-edit-prompt:hover { color: var(--text); background: rgba(255,255,255,0.07); }
.btn-del-prompt:hover { color: var(--r1); border-color: rgba(255, 0, 128, 0.3); }

/* ── SCROLLBAR ────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 207, 255, 0.3); }

/* ── SELECTION ────────────────────────────────── */
::selection { background: rgba(0, 207, 255, 0.25); color: #fff; }

/* ── CARD SCROLL ──────────────────────────────── */
.card {
  max-height: 720px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,207,255,0.2) transparent;
}
.card::-webkit-scrollbar { width: 3px; }
.card::-webkit-scrollbar-thumb { background: rgba(0,207,255,0.25); border-radius: 2px; }

/* ── MUSIC WITH COVER ART ─────────────────────── */
.card-music-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #000;
}
.music-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.music-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  gap: 0.5rem;
}
.music-cover-overlay .music-waveform { margin-bottom: 0.25rem; }
.music-cover-overlay .card-audio {
  width: 100%;
  position: relative;
  z-index: 1;
  filter: invert(1) hue-rotate(180deg) brightness(0.85);
  border-radius: 6px;
}

/* ── COMPACT MUSIC (no cover) ─────────────────── */
.card-music-compact {
  padding: 0.6rem 0.75rem 0.4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,50,80,0.6), rgba(60,0,80,0.6));
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-music-compact .music-up-next { display: none; }

/* ── MUSIC NAV PREV/NEXT ──────────────────────── */
.music-nav-row {
  display: flex;
  gap: 0.25rem;
  padding: 0.15rem 0 0;
}
.card-music-cover-wrap .music-nav-row {
  position: relative;
  z-index: 2;
  padding: 0.2rem 0.5rem;
  background: rgba(0,0,0,0.5);
}
.btn-music-nav {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  color: rgba(255,255,255,0.65);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.25rem;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.btn-music-nav:hover {
  color: #fff;
  background: rgba(0,207,255,0.15);
  border-color: rgba(0,207,255,0.35);
}

/* ── UP-NEXT SECTION ──────────────────────────── */
.music-up-next {
  margin-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.5rem;
}
.up-next-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(112,112,160,0.8);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.up-next-tracks { display: flex; flex-direction: column; gap: 0.1rem; }
.up-next-loading, .up-next-empty {
  font-size: 0.78rem;
  color: rgba(112,112,160,0.6);
  padding: 0.3rem 0;
}
.up-next-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.4rem;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.12s;
}
.up-next-item:hover { background: rgba(255,255,255,0.06); }
.up-next-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.up-next-info { flex: 1; min-width: 0; }
.up-next-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.up-next-name {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.up-next-play {
  color: rgba(0,207,255,0.7);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ── COVER DROP ZONE ──────────────────────────── */
.cover-drop-zone {
  padding: 1rem;
  min-height: auto;
}
.cover-drop-zone .drop-icon { font-size: 1.4rem; margin-bottom: 0.25rem; }

/* ── VIDEO CARD ───────────────────────────────── */
.card-video-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
  position: relative;
}
.card-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* ── VIDEO COST WARNING ───────────────────────── */
.video-cost-warning {
  background: rgba(255, 150, 0, 0.1);
  border: 1px solid rgba(255, 150, 0, 0.45);
  border-radius: 10px;
  color: rgba(255, 200, 80, 0.95);
  font-size: 0.83rem;
  line-height: 1.5;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.75rem;
}

/* ── PIN BADGE ────────────────────────────────── */
.pin-badge {
  background: linear-gradient(90deg, rgba(255,60,0,0.18), rgba(255,140,0,0.18));
  border-bottom: 1px solid rgba(255,120,0,0.3);
  color: rgba(255, 180, 60, 0.95);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.9rem;
}
.pinned-card {
  border-color: rgba(255, 120, 0, 0.35) !important;
  box-shadow: 0 0 20px rgba(255, 120, 0, 0.12);
}

/* ── ADMIN BUTTON ─────────────────────────────── */
.btn-admin {
  background: transparent;
  border: 1px solid rgba(191, 0, 255, 0.4);
  border-radius: 10px;
  color: rgba(191, 0, 255, 0.9);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-admin:hover {
  background: rgba(191, 0, 255, 0.1);
  box-shadow: 0 0 14px rgba(191, 0, 255, 0.3);
}

/* ── BACKUP LOGIN TOGGLE ──────────────────────── */
.login-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 1.25rem 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.login-or::before, .login-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}
.btn-backup-toggle {
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
  width: 100%;
}
.btn-backup-toggle:hover {
  color: var(--text);
  border-color: rgba(0, 207, 255, 0.4);
}

/* ── ALBUM PICKER ─────────────────────────────── */
.album-instructions {
  background: rgba(0, 207, 255, 0.06);
  border: 1px solid rgba(0, 207, 255, 0.2);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
.album-instructions strong { color: var(--text); }
.album-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 6px;
  background: rgba(0,0,0,0.2);
}
.album-empty-msg {
  grid-column: 1/-1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 1.5rem;
}
.album-loading {
  grid-column: 1/-1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 1.5rem;
}
.album-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.album-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.album-thumb-check {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 207, 255, 0.4);
  color: #fff;
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
}
.album-thumb.selected {
  border-color: rgba(0, 207, 255, 0.8);
}
.album-thumb.selected .album-thumb-check { display: flex; }
.album-thumb-title {
  display: none;
}
.album-count-row {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: right;
}
.album-count-row strong { color: var(--r5); }

/* ── ALBUM CARD ───────────────────────────────── */
.card-album-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}
.album-slides {
  width: 100%;
  height: 100%;
}
.album-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  transition: opacity 0.25s ease;
}
.album-slide.active { display: block; }
.album-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(6, 6, 15, 0.65);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s;
  line-height: 1;
}
.album-nav:hover { background: rgba(0, 207, 255, 0.3); }
.album-prev { left: 6px; }
.album-next { right: 6px; }
.album-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 2;
}
.album-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.15s;
}
.album-dot.active { background: rgba(0, 207, 255, 0.9); }
.album-counter {
  position: absolute;
  top: 6px;
  right: 8px;
  background: rgba(6, 6, 15, 0.65);
  border-radius: 20px;
  color: #fff;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  z-index: 2;
}

/* ── EDIT BUTTON ON CARDS ─────────────────────── */
.edit-btn {
  font-size: 1rem !important;
}
.edit-request-notice {
  background: rgba(255, 165, 0, 0.08);
  border: 1px solid rgba(255, 165, 0, 0.3);
  border-radius: 8px;
  color: rgba(255, 165, 0, 0.9);
  font-size: 0.82rem;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
}

/* ── ADMIN PANEL MODAL ────────────────────────── */
.modal-admin { max-width: 640px; }
.admin-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.admin-tab {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.15s;
}
.admin-tab.active {
  background: rgba(191, 0, 255, 0.12);
  border-color: rgba(191, 0, 255, 0.5);
  color: var(--text);
}
.admin-panel-content { min-height: 150px; }
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 420px;
  overflow-y: auto;
}
.admin-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-size: 0.9rem;
}
.admin-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 1.5rem;
  font-size: 0.85rem;
}
.admin-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.4rem;
}
.admin-user-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.admin-user-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  font-size: 1rem;
}
.admin-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.admin-user-email {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.admin-plan-select {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: #fff;
  font-size: 0.78rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
}
.admin-plan-select option { background: #1a1a2e; color: #fff; }
.admin-request-item, .admin-post-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.9rem;
}
.admin-request-header {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.admin-request-id {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: monospace;
  margin-left: auto;
}
.admin-request-field {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.admin-request-field label { font-weight: 700; color: var(--text); }
.admin-request-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.btn-approve, .btn-reject {
  flex: 1;
  border: none;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-approve {
  background: rgba(0, 207, 100, 0.15);
  border: 1px solid rgba(0, 207, 100, 0.4);
  color: rgba(0, 207, 100, 0.9);
}
.btn-approve:hover { background: rgba(0, 207, 100, 0.25); }
.btn-reject {
  background: rgba(255, 0, 80, 0.12);
  border: 1px solid rgba(255, 0, 80, 0.35);
  color: rgba(255, 80, 80, 0.9);
}
.btn-reject:hover { background: rgba(255, 0, 80, 0.22); }
.admin-post-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.admin-post-info { flex: 1; min-width: 0; }
.admin-post-info strong {
  display: block;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-post-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.admin-post-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.btn-admin-edit, .btn-admin-delete {
  border: none;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-admin-pin {
  background: rgba(255, 150, 0, 0.1);
  border: 1px solid rgba(255, 150, 0, 0.3);
  color: rgba(255, 180, 60, 0.9);
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-admin-pin:hover { background: rgba(255, 150, 0, 0.2); }
.btn-admin-edit {
  background: rgba(0, 207, 255, 0.1);
  border: 1px solid rgba(0, 207, 255, 0.3);
  color: rgba(0, 207, 255, 0.9);
}
.btn-admin-edit:hover { background: rgba(0, 207, 255, 0.2); }
.btn-admin-delete {
  background: rgba(255, 0, 80, 0.1);
  border: 1px solid rgba(255, 0, 80, 0.3);
  color: rgba(255, 80, 80, 0.9);
}
.btn-admin-delete:hover { background: rgba(255, 0, 80, 0.2); }
.admin-info {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}


.btn-follow {
  background: rgba(0,207,255,0.15);
  border: 1px solid rgba(0,207,255,0.4);
  border-radius: 8px;
  color: rgba(0,207,255,0.95);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.btn-follow:hover { background: rgba(0,207,255,0.25); }
.btn-follow.following {
  background: rgba(0,207,255,0.08);
  color: rgba(0,207,255,0.6);
  border-color: rgba(0,207,255,0.2);
}

.seller-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgba(255,180,0,0.08);
  border: 1px solid rgba(255,180,0,0.2);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,180,0,0.9);
}
.vis-sale { color: rgba(255,180,0,0.95) !important; border-color: rgba(255,180,0,0.3) !important; background: rgba(255,180,0,0.08) !important; }
.prompt-locked-msg {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.75rem;
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.btn-buy-prompt {
  background: linear-gradient(135deg, rgba(255,180,0,0.2), rgba(255,100,0,0.2));
  border: 1px solid rgba(255,180,0,0.4);
  border-radius: 6px;
  color: rgba(255,200,50,0.95);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-buy-prompt:hover {
  background: linear-gradient(135deg, rgba(255,180,0,0.35), rgba(255,100,0,0.35));
}
.prompt-preview-thumb {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.prompt-owner-badge {
  display: inline-block;
  font-size: 0.68rem;
  color: rgba(0,207,255,0.85);
  background: rgba(0,207,255,0.08);
  border: 1px solid rgba(0,207,255,0.2);
  border-radius: 5px;
  padding: 0.1rem 0.4rem;
  margin-bottom: 0.3rem;
}

/* ═══ MARKETING CARD ═══ */
.card-marketing-wrap {
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(0,50,80,0.4), rgba(80,0,120,0.3));
  position: relative;
}
.marketing-icon { font-size: 2rem; }
.marketing-ext {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(0,207,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.marketing-dl {
  font-size: 0.72rem;
  color: rgba(0,207,255,0.85);
  text-decoration: none;
  background: rgba(0,207,255,0.1);
  border: 1px solid rgba(0,207,255,0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.marketing-dl:hover { background: rgba(0,207,255,0.2); }

/* ═══ LINKS PANEL ═══ */
.btn-links {
  background: rgba(0,207,255,0.1);
  border: 1px solid rgba(0,207,255,0.3);
  color: rgba(0,207,255,0.9);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}
.btn-links:hover { background: rgba(0,207,255,0.2); }
.link-add-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}
.link-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.5rem 2rem 0.5rem 0.6rem;
  margin-bottom: 0.35rem;
}
.link-card-url {
  color: rgba(0,207,255,0.85);
  font-size: 0.8rem;
  text-decoration: none;
  word-break: break-all;
}
.link-card-url:hover { text-decoration: underline; }
.link-card-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.link-delete-btn {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: none;
  border: none;
  color: rgba(255,80,80,0.6);
  cursor: pointer;
  font-size: 0.75rem;
}
.link-delete-btn:hover { color: rgba(255,80,80,1); }

/* ═══ FEED TOGGLE (Mine / Alle) ═══ */
.feed-toggle {
  display: inline-flex;
  margin-left: 0.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
}
.feed-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: all 0.15s;
}
.feed-toggle-btn.active {
  background: rgba(0,207,255,0.15);
  color: #fff;
}
.feed-toggle-btn:hover:not(.active) { background: rgba(255,255,255,0.06); }

/* ═══ SUGGESTIONS BOARD ═══ */
.filter-btn-spectapor {
  color: rgba(180, 120, 255, 0.95);
  text-decoration: none;
  border-color: rgba(180, 120, 255, 0.3);
}
.filter-btn-spectapor:hover {
  background: rgba(180, 120, 255, 0.12);
  border-color: rgba(180, 120, 255, 0.5);
  color: #fff;
}

.suggestions-section {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem 4rem;
  width: 100%;
}
.suggestions-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.suggestions-title { font-size: 1.6rem; margin: 0 0 0.25rem; }
.suggestions-sub { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.suggestions-list { display: flex; flex-direction: column; gap: 0.75rem; }

.suggestion-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.suggestion-card:hover { border-color: rgba(255,255,255,0.15); }

.suggestion-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 44px;
}
.btn-vote {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 1rem;
  width: 38px;
  height: 38px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.btn-vote:hover { background: rgba(255,220,50,0.12); border-color: rgba(255,220,50,0.4); color: rgba(255,220,50,0.9); }
.btn-vote.voted { background: rgba(255,220,50,0.15); border-color: rgba(255,220,50,0.5); color: rgba(255,220,50,1); }
.vote-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.vote-count.has-votes { color: rgba(255,220,50,0.85); }

.suggestion-body { flex: 1; min-width: 0; }
.suggestion-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.suggestion-author { font-size: 0.78rem; color: var(--text-muted); }
.suggestion-time   { font-size: 0.75rem; color: rgba(255,255,255,0.25); }
.suggestion-status-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.status-open     { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.4); }
.status-planned  { background: rgba(0,150,255,0.15); border: 1px solid rgba(0,150,255,0.3); color: rgba(80,180,255,0.95); }
.status-done     { background: rgba(0,220,100,0.12); border: 1px solid rgba(0,220,100,0.3); color: rgba(80,230,140,0.95); }
.status-rejected { background: rgba(255,50,50,0.1); border: 1px solid rgba(255,50,50,0.2); color: rgba(255,100,100,0.7); }

.suggestion-title-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.3rem;
}
.suggestion-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 0.5rem;
}
.suggestion-admin-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}
.btn-status {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s;
}
.btn-status:hover { background: rgba(255,255,255,0.1); }
.btn-status.active-status { border-color: rgba(255,220,50,0.4); color: rgba(255,220,50,0.9); background: rgba(255,220,50,0.08); }
.btn-del-suggestion {
  margin-left: auto;
  font-size: 0.75rem;
  background: rgba(255,0,80,0.08);
  border: 1px solid rgba(255,0,80,0.2);
  color: rgba(255,80,80,0.7);
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
}
.btn-del-suggestion:hover { background: rgba(255,0,80,0.18); }

/* ═══ GIF BADGE ═══ */
.gif-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.72);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 5px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* ═══ PRIVATE BADGE ═══ */
.private-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(255,120,0,0.85);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  z-index: 10;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* ═══ CUSTOM AUDIO PLAYER ═══ */
.card-audio { display: none; }

.music-visualizer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}
.card-music-compact .music-controls-row,
.card-music-compact .music-seekbar,
.card-music-compact .music-nav-row {
  position: relative;
  z-index: 1;
}
.card-music-cover-wrap .music-controls-row,
.card-music-cover-wrap .music-seekbar,
.card-music-cover-wrap .music-nav-row {
  position: relative;
  z-index: 1;
}

.music-controls-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}
.music-play-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0,207,255,0.15);
  border: 1px solid rgba(0,207,255,0.35);
  color: #fff;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.music-play-btn:hover { background: rgba(0,207,255,0.3); }
.music-time {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.45);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.music-seekbar {
  width: 100%;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  accent-color: rgba(0,207,255,0.9);
  margin-bottom: 0.2rem;
  display: block;
}
.music-seekbar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,207,255,0.9);
  cursor: pointer;
}
.music-seekbar::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,207,255,0.9);
  border: none;
  cursor: pointer;
}

/* ═══ DELETE / LOCK POST BUTTONS ═══ */
.del-post-btn { color: rgba(255,80,80,0.75) !important; }
.del-post-btn:hover { color: rgba(255,80,80,1) !important; background: rgba(255,0,50,0.12) !important; }
.lock-btn { color: rgba(255,180,0,0.75) !important; }
.lock-btn:hover { color: rgba(255,200,0,1) !important; background: rgba(255,180,0,0.1) !important; }
