:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #111015;
  --panel-soft: #18161f;
  --gold: #f0c46b;
  --gold-deep: #bd8432;
  --ink: #fff7ea;
  --muted: #aaa3ad;
  --purple: #3b174e;
  --coral: #ff7972;
  --line: rgba(255, 255, 255, 0.09);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-premium: cubic-bezier(0.2, 0.9, 0.2, 1);
  --shadow-soft: 0 18px 54px rgba(0, 0, 0, 0.28);
  --shadow-gold: 0 12px 34px rgba(240, 196, 107, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 13% 8%, rgba(122, 53, 161, 0.16), transparent 30%),
    radial-gradient(circle at 88% 4%, rgba(240, 196, 107, 0.08), transparent 28%),
    radial-gradient(circle at 84% 88%, rgba(84, 31, 107, 0.12), transparent 34%),
    #050505;
  position: relative;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  opacity: 0.115;
  background:
    repeating-linear-gradient(45deg, transparent 0 28px, rgba(240, 196, 107, 0.055) 28px 29px, transparent 29px 58px),
    repeating-linear-gradient(135deg, transparent 0 28px, rgba(157, 92, 255, 0.045) 28px 29px, transparent 29px 58px),
    radial-gradient(circle at 50% 18%, rgba(240, 196, 107, 0.05), transparent 34%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0 56%, transparent 86%);
  mask-image: radial-gradient(ellipse at center, #000 0 56%, transparent 86%);
}

body::after {
  opacity: 0.095;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 72%, rgba(240, 196, 107, 0.18) 0 1px, transparent 1px);
  background-size: 38px 38px, 57px 57px;
  mix-blend-mode: soft-light;
}

button, input, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a,
label,
[data-jump],
[data-nav],
[data-music-category],
[data-open-profile],
[data-open-post],
[data-open-note],
[data-open-notebook],
[data-like-post],
[data-comment-focus],
[data-follow-user],
.quick-link,
.tool-card,
.playlist-card,
.playlist-row,
.music-category-card,
.course-card,
.course-row,
.event-card,
.news-card,
.profile-card,
.profile-menu button,
.search-result,
.gallery-tile,
.post-author-photo,
.post-author-copy,
.composer-action-pill,
.note-list-row {
  cursor: pointer;
}

button,
a,
[data-jump],
[data-music-category],
.tool-card,
.playlist-card,
.playlist-row,
.music-category-card,
.course-card,
.course-row,
.event-card,
.news-card,
.profile-menu button,
.search-result,
.gallery-tile,
.composer-action-pill,
.note-list-row,
.post-card,
.bottom-nav button,
.floating-create {
  transition:
    transform 190ms var(--spring-premium),
    opacity 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 190ms var(--ease-premium),
    filter 180ms ease;
}

button:disabled,
.disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

button:not(:disabled):active,
a:active,
[data-jump]:active,
[data-music-category]:active,
.tool-card:active,
.playlist-card:active,
.playlist-row:active,
.music-category-card:active,
.course-card:active,
.course-row:active,
.event-card:active,
.news-card:active,
.profile-menu button:active,
.search-result:active,
.gallery-tile:active,
.composer-action-pill:active,
.note-list-row:active,
.post-card footer button:active,
.floating-create:active {
  transform: scale(0.975);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(240, 196, 107, 0.72);
  outline-offset: 3px;
}

@media (hover: hover) {
  button:not(:disabled):hover,
  a:hover,
  [data-jump]:hover,
  [data-music-category]:hover,
  .tool-card:hover,
  .playlist-card:hover,
  .playlist-row:hover,
  .music-category-card:hover,
  .course-card:hover,
  .course-row:hover,
  .event-card:hover,
  .news-card:hover,
  .profile-menu button:hover,
  .search-result:hover,
  .gallery-tile:hover,
  .composer-action-pill:hover,
  .note-list-row:hover {
    transform: translateY(-1px) scale(1.01);
    opacity: 0.94;
  }

  .post-card:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 196, 107, 0.16);
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.32);
  }
}

/* Final override: dark TikTok-style reel composer, loaded after every older reel rule. */
.reel-create-screen.active .reel-gallery-button {
  left: 22px !important;
  bottom: calc(26px + env(safe-area-inset-bottom)) !important;
  width: 68px !important;
  gap: 5px !important;
  align-items: center !important;
  justify-items: center !important;
  color: #fff !important;
}

.reel-create-screen.active .reel-gallery-button i {
  width: 52px !important;
  height: 52px !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(135deg, rgba(255, 230, 156, 0.2), rgba(157, 69, 255, 0.52)),
    radial-gradient(circle at 28% 26%, rgba(255, 255, 255, 0.54), transparent 22%),
    #17131f !important;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

.reel-create-screen.active .reel-gallery-button i::before {
  inset: 13px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background:
    linear-gradient(135deg, transparent 48%, rgba(255, 247, 224, 0.82) 50%),
    linear-gradient(315deg, transparent 52%, rgba(255, 247, 224, 0.52) 54%) !important;
}

.reel-create-screen.active .reel-gallery-button strong {
  color: #fff !important;
  font-size: 0.68rem !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) {
  min-height: 100dvh !important;
  max-height: none !important;
  display: block !important;
  overflow-y: auto !important;
  padding: calc(18px + env(safe-area-inset-top)) 0 0 !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 76% 0%, rgba(157, 69, 255, 0.2), transparent 34%),
    radial-gradient(circle at 16% 4%, rgba(240, 196, 107, 0.09), transparent 28%),
    #050505 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-upload-stage {
  position: relative !important;
  width: 106px !important;
  height: 132px !important;
  min-height: 0 !important;
  margin: 0 0 8px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #101014 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .composer-media-overlay {
  display: none !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .composer-preview-grid,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .composer-preview-grid figure,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .composer-preview-grid video,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .composer-preview-grid img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 18px !important;
  object-fit: cover !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-draft-strip {
  position: absolute !important;
  top: calc(18px + env(safe-area-inset-top)) !important;
  left: 134px !important;
  right: 16px !important;
  display: flex !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-draft-strip span,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-draft-strip button {
  width: 78px !important;
  height: 78px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
  color: rgba(255, 247, 234, 0.76) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  font-size: 0.82rem !important;
  font-weight: 850 !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-draft-strip button {
  color: var(--gold) !important;
  font-size: 1.25rem !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-title-input {
  display: block !important;
  width: calc(100% - 32px) !important;
  min-height: 44px !important;
  margin: 12px 16px 0 !important;
  padding: 0 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 15px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  outline: none !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-title-input::placeholder,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) textarea::placeholder {
  color: rgba(255, 247, 234, 0.44) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) textarea {
  display: block !important;
  width: calc(100% - 32px) !important;
  min-height: 76px !important;
  max-height: 112px !important;
  margin: 8px 16px 0 !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 16px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.045) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  font-size: 0.94rem !important;
  line-height: 1.35 !important;
  resize: none !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list {
  display: grid !important;
  margin: 12px 16px 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list button {
  min-height: 48px !important;
  display: grid !important;
  grid-template-columns: 28px 1fr 16px !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 13px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065) !important;
  color: rgba(255, 247, 234, 0.92) !important;
  background: transparent !important;
  text-align: left !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list button:last-child {
  border-bottom: 0 !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list span,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list i {
  color: rgba(255, 224, 142, 0.9) !important;
  font-style: normal !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list strong {
  color: rgba(255, 247, 234, 0.92) !important;
  font-size: 0.9rem !important;
  font-weight: 850 !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row {
  position: sticky !important;
  bottom: 0 !important;
  display: grid !important;
  grid-template-columns: 0.9fr 1.25fr !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom)) !important;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.94) 26%, #050505) !important;
  backdrop-filter: blur(14px) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row .ghost-button,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row .publish-button {
  min-height: 48px !important;
  border-radius: 999px !important;
  font-size: 0.92rem !important;
  font-weight: 950 !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row .ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 247, 234, 0.78) !important;
  background: rgba(255, 255, 255, 0.065) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row .publish-button {
  border: 0 !important;
  color: #100b05 !important;
  background: linear-gradient(135deg, #fff0b8 0%, #f0c46b 46%, #d69434 100%) !important;
  box-shadow: 0 16px 34px rgba(240, 196, 107, 0.22) !important;
}

/* Reel composer dark luxury final pass. Keeps the flow compact and HUBRA-native. */
.reel-create-screen.active .reel-gallery-button {
  left: 22px !important;
  bottom: calc(26px + env(safe-area-inset-bottom)) !important;
  width: 68px !important;
  gap: 5px !important;
  align-items: center !important;
  justify-items: center !important;
  color: #fff !important;
}

.reel-create-screen.active .reel-gallery-button i {
  width: 52px !important;
  height: 52px !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(135deg, rgba(255, 230, 156, 0.2), rgba(157, 69, 255, 0.52)),
    radial-gradient(circle at 28% 26%, rgba(255, 255, 255, 0.54), transparent 22%),
    #17131f !important;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

.reel-create-screen.active .reel-gallery-button i::before {
  inset: 13px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background:
    linear-gradient(135deg, transparent 48%, rgba(255, 247, 224, 0.82) 50%),
    linear-gradient(315deg, transparent 52%, rgba(255, 247, 224, 0.52) 54%) !important;
}

.reel-create-screen.active .reel-gallery-button strong {
  color: #fff !important;
  font-size: 0.68rem !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) {
  min-height: 100dvh !important;
  max-height: none !important;
  display: block !important;
  overflow-y: auto !important;
  padding: calc(18px + env(safe-area-inset-top)) 0 0 !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 76% 0%, rgba(157, 69, 255, 0.2), transparent 34%),
    radial-gradient(circle at 16% 4%, rgba(240, 196, 107, 0.09), transparent 28%),
    #050505 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-upload-stage {
  position: relative !important;
  width: 106px !important;
  height: 132px !important;
  min-height: 0 !important;
  margin: 0 0 8px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #101014 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .composer-media-overlay {
  display: none !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .composer-preview-grid,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .composer-preview-grid figure,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .composer-preview-grid video,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .composer-preview-grid img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 18px !important;
  object-fit: cover !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-draft-strip {
  position: absolute !important;
  top: calc(18px + env(safe-area-inset-top)) !important;
  left: 134px !important;
  right: 16px !important;
  display: flex !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-draft-strip span,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-draft-strip button {
  width: 78px !important;
  height: 78px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
  color: rgba(255, 247, 234, 0.76) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  font-size: 0.82rem !important;
  font-weight: 850 !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-draft-strip button {
  color: var(--gold) !important;
  font-size: 1.25rem !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-title-input {
  display: block !important;
  width: calc(100% - 32px) !important;
  min-height: 44px !important;
  margin: 12px 16px 0 !important;
  padding: 0 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 15px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  outline: none !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-title-input::placeholder,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) textarea::placeholder {
  color: rgba(255, 247, 234, 0.44) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) textarea {
  display: block !important;
  width: calc(100% - 32px) !important;
  min-height: 76px !important;
  max-height: 112px !important;
  margin: 8px 16px 0 !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 16px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.045) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  font-size: 0.94rem !important;
  line-height: 1.35 !important;
  resize: none !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list {
  display: grid !important;
  margin: 12px 16px 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list button {
  min-height: 48px !important;
  display: grid !important;
  grid-template-columns: 28px 1fr 16px !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 13px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065) !important;
  color: rgba(255, 247, 234, 0.92) !important;
  background: transparent !important;
  text-align: left !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list button:last-child {
  border-bottom: 0 !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list span,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list i {
  color: rgba(255, 224, 142, 0.9) !important;
  font-style: normal !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list strong {
  color: rgba(255, 247, 234, 0.92) !important;
  font-size: 0.9rem !important;
  font-weight: 850 !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row {
  position: sticky !important;
  bottom: 0 !important;
  display: grid !important;
  grid-template-columns: 0.9fr 1.25fr !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom)) !important;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.94) 26%, #050505) !important;
  backdrop-filter: blur(14px) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row .ghost-button,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row .publish-button {
  min-height: 48px !important;
  border-radius: 999px !important;
  font-size: 0.92rem !important;
  font-weight: 950 !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row .ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 247, 234, 0.78) !important;
  background: rgba(255, 255, 255, 0.065) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row .publish-button {
  border: 0 !important;
  color: #100b05 !important;
  background: linear-gradient(135deg, #fff0b8 0%, #f0c46b 46%, #d69434 100%) !important;
  box-shadow: 0 16px 34px rgba(240, 196, 107, 0.22) !important;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 16% 4%, rgba(240, 196, 107, 0.075), transparent 24%),
    radial-gradient(circle at 89% 18%, rgba(119, 45, 154, 0.2), transparent 30%),
    radial-gradient(circle at 50% 96%, rgba(240, 196, 107, 0.055), transparent 30%),
    linear-gradient(180deg, #050505, #09070d 48%, #050505);
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.62);
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.app-shell::before {
  opacity: 0.16;
  background:
    linear-gradient(30deg, transparent 0 47%, rgba(240, 196, 107, 0.04) 48% 49%, transparent 50%),
    linear-gradient(150deg, transparent 0 47%, rgba(157, 92, 255, 0.035) 48% 49%, transparent 50%),
    repeating-conic-gradient(from 45deg at 50% 50%, transparent 0deg 43deg, rgba(240, 196, 107, 0.035) 43deg 45deg, transparent 45deg 88deg, rgba(157, 92, 255, 0.03) 88deg 90deg);
  background-size: 92px 92px, 92px 92px, 184px 184px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
}

.app-shell::after {
  opacity: 0.1;
  background:
    radial-gradient(circle at 22% 16%, rgba(240, 196, 107, 0.18), transparent 18%),
    radial-gradient(circle at 84% 24%, rgba(157, 92, 255, 0.18), transparent 20%),
    radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.08), transparent 24%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
}

.app-shell > * {
  position: relative;
  z-index: 1;
}

.hidden {
  display: none !important;
}

.status-row,
.topbar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px 0;
  color: #fff;
}

.status-row span,
.topbar span {
  font-size: 12px;
  color: var(--muted);
}

.splash-screen,
.login-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 32%, rgba(132, 42, 170, 0.12), transparent 27%),
    radial-gradient(circle at 54% 74%, rgba(240, 196, 107, 0.08), transparent 22%),
    #050505;
}

.splash-screen {
  display: grid;
  place-items: center;
}

.splash-logo {
  width: min(68vw, 280px);
  opacity: 0;
  animation: splashIn 1700ms ease forwards;
}

@keyframes splashIn {
  0% { opacity: 0; transform: scale(0.96); filter: blur(10px); }
  38% { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

.login-screen {
  padding: 56px 28px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#welcome.login-screen {
  justify-content: center;
  gap: 30px;
}

#welcome .login-card {
  transform: translateY(-10px);
}

.login-card {
  text-align: center;
}

.auth-panel {
  width: 100%;
  display: grid;
  align-content: center;
  min-height: calc(100vh - 90px);
}

.auth-logo-small {
  width: 118px;
  margin: 0 auto 18px;
}

.auth-panel h1 {
  margin: 0 0 8px;
  color: var(--gold);
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  text-transform: uppercase;
}

.auth-panel p {
  max-width: 300px;
  margin: 0 auto 24px;
  color: var(--muted);
  text-align: center;
}

.email-form {
  display: grid;
  gap: 10px;
}

.email-form label {
  color: var(--muted);
  font-size: 12px;
}

.email-form input {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.email-form input:focus {
  border-color: rgba(240, 196, 107, 0.62);
  box-shadow: 0 0 0 3px rgba(240, 196, 107, 0.1);
}

.email-form .auth-button {
  margin-top: 8px;
}

.hubra-logo {
  display: block;
  object-fit: contain;
}

.login-logo {
  width: min(62vw, 250px);
  margin: 0 auto 18px;
}

.login-card p {
  margin: 0;
  color: #efe3d0;
  font-size: 15px;
}

.auth-stack {
  display: grid;
  gap: 12px;
}

.keep-session-row {
  min-height: 38px;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  color: rgba(255, 247, 234, 0.7);
  font-size: 12px;
  font-weight: 750;
}

.keep-session-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.returning-user-card {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(240, 196, 107, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(184, 92, 245, 0.08));
  color: var(--text);
  padding: 10px 12px;
  text-align: left;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.returning-user-card img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.returning-user-card small,
.returning-user-card strong,
.returning-user-card em {
  display: block;
}

.returning-user-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.returning-user-card strong {
  color: var(--text);
  font-size: 15px;
}

.returning-user-card em {
  margin-top: 2px;
  color: rgba(255, 247, 234, 0.52);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.25;
}

.returning-user-card b {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(240, 196, 107, 0.14);
  color: var(--gold);
  padding: 0 12px;
  font-size: 12px;
}

.auth-button,
.gold-button,
.notification-composer button {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.auth-button {
  width: 100%;
}

.auth-button.social {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  text-align: center;
}

.auth-button.social svg {
  width: 22px;
  height: 22px;
}

.apple {
  background: #f7f7f7;
  color: #090909;
}

.google {
  color: #161616;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.08);
}

.primary,
.gold-button,
.notification-composer button {
  background: linear-gradient(135deg, #c98b36, #ffe4a4 52%, #b87424);
  color: #160f08;
  box-shadow: 0 12px 34px rgba(199, 139, 54, 0.18);
}

.glass {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.outline {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.link-button,
.guest-button,
.section-header button {
  border: 0;
  background: transparent;
  color: var(--gold);
}

.guest-button {
  min-height: 46px;
  margin-top: 4px;
}

.phone-app {
  min-height: 100vh;
  padding-bottom: 86px;
}

.phone-app.app-enter {
  animation: appEnter 620ms var(--ease-premium) both;
}

.phone-app.app-enter .screen.active {
  animation: screenEnter 260ms 90ms var(--ease-premium) both;
}

@keyframes appEnter {
  from { opacity: 0; transform: translateY(18px) scale(0.985); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 0;
  padding: 0 18px;
  background: transparent;
  pointer-events: none;
}

.topbar strong {
  display: none;
}

.topbar .icon-ghost {
  margin-left: auto;
  margin-top: 22px;
  pointer-events: auto;
}

.icon-ghost {
  min-width: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--gold);
  background: transparent;
  font-size: 11px;
  position: relative;
}

.bell-button::before {
  content: "";
  width: 13px;
  height: 14px;
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  border: 2px solid var(--gold);
  border-bottom: 0;
  border-radius: 12px 12px 4px 4px;
}

.bell-button::after {
  content: "";
  width: 14px;
  height: 2px;
  position: absolute;
  left: 50%;
  top: 23px;
  transform: translateX(-50%);
  background: var(--gold);
  border-radius: 999px;
}

.heart-button::before { content: "♥"; }
.back-button::before { content: "<"; }
.search-button::before { content: "⌕"; }
.settings-button::before { content: "⚙"; }
.add-button::before { content: "+"; color: var(--gold); font-size: 22px; }
.save-button::before { content: "✓"; color: var(--gold); font-size: 18px; font-weight: 900; }

[data-screen="tool-notes"] .add-button {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid rgba(240, 196, 107, 0.28);
  color: var(--gold);
  background: rgba(240, 196, 107, 0.08);
  box-shadow: none;
}

[data-screen="tool-notes"] .add-button::before {
  color: var(--gold);
  font-size: 22px;
  font-weight: 850;
}

.content-panels {
  padding: 0 18px;
}

.screen {
  display: none;
  animation: lift 230ms var(--ease-premium);
}

.screen.active {
  display: block;
}

@keyframes lift {
  from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-identity {
  padding: 4px 0 2px;
}

.identity-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 12px;
  align-items: center;
}

.identity-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  justify-self: end;
  filter: drop-shadow(0 6px 20px rgba(184, 92, 245, 0.22));
}

.hello {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 850;
}

.hello span {
  color: var(--gold);
}

.subhello {
  margin: 0;
  color: rgba(255, 247, 234, 0.78);
}

.profile-title-row {
  grid-template-columns: 42px 1fr max-content;
}

.profile-title-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.profile-title-actions .identity-logo {
  width: 38px;
  height: 38px;
}

.profile-name-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.profile-card-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: contain !important;
  box-shadow: none;
}

.social-profile-header .profile-card-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 0;
}

.user-location {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 5px;
  padding: 0 10px;
  border: 1px solid rgba(240, 196, 107, 0.18);
  border-radius: 999px;
  color: rgba(255, 247, 234, 0.78);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 800;
}

.edit-profile-button {
  min-height: 36px;
  width: max-content;
  justify-self: end;
  border: 1px solid rgba(240, 196, 107, 0.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(240, 196, 107, 0.08);
  padding: 0 16px;
  font-size: 12px;
  font-weight: 850;
}

.profile-edit-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(240, 196, 107, 0.16);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.profile-edit-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-edit-form input[type="text"],
.profile-edit-form select,
.profile-edit-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
  outline: 0;
  resize: vertical;
}

.profile-edit-form select {
  appearance: none;
  min-height: 41px;
  background:
    linear-gradient(45deg, transparent 50%, rgba(240, 196, 107, 0.82) 50%) right 16px center / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

.profile-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 430px) {
  .profile-location-grid {
    grid-template-columns: 1fr;
  }
}

.profile-photo-upload {
  min-height: 38px;
  place-items: center;
  border: 1px solid rgba(240, 196, 107, 0.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(240, 196, 107, 0.08);
}

.profile-photo-upload input {
  display: none;
}

.profile-edit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-edit-actions button {
  min-height: 38px;
  border: 1px solid rgba(240, 196, 107, 0.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(240, 196, 107, 0.08);
  font-size: 12px;
  font-weight: 850;
}

.profile-edit-actions .gold-button {
  border: 0;
  color: #170f06;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.42), transparent 30%),
    linear-gradient(135deg, #f7c765, #ffe6a7 48%, #b87527);
}

.profile-edit-form p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.hero {
  min-height: 375px;
  display: flex;
  align-items: flex-end;
  padding: 16px 22px 22px;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
  border: 0;
  background:
    linear-gradient(90deg, rgba(5, 4, 9, 0.9) 0%, rgba(5, 4, 9, 0.58) 36%, rgba(5, 4, 9, 0.12) 68%),
    linear-gradient(180deg, rgba(5, 4, 9, 0.12), rgba(5, 4, 9, 0.2) 62%, rgba(5, 4, 9, 0.82)),
    url("./hero-generated-premium.png") center/cover;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.home-hero {
  margin: 0 -18px;
  align-items: stretch;
}

.home-hero > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-logo {
  width: max-content;
  max-width: 100%;
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  gap: 10px;
  margin: 0 0 auto;
  padding-top: 2px;
}

.hero-logo img {
  width: 84px;
  height: auto;
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
}

.hero-logo strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 2px 24px rgba(240, 196, 107, 0.2);
}

.home-hero h1 {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  text-transform: uppercase;
}

.home-hero strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.home-hero p {
  max-width: 205px;
  margin: 0 0 14px;
  color: #efe5d5;
}

.home-hero .hello {
  margin-top: 0;
  font-size: 21px;
}

.home-hero .subhello {
  margin-bottom: 54px;
  font-size: 14px;
}

.home-hero .gold-button {
  min-height: 40px;
  width: max-content;
  padding: 0 17px;
}

.gold-button {
  min-height: 42px;
  padding: 0 20px;
}

.hub-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 16px;
  justify-items: center;
}

.hub-actions button {
  display: grid;
  gap: 8px;
  place-items: center;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 750;
  font-size: 11px;
}

.hub-actions i,
.tool-card i,
.feature-panel i {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 235, 184, 0.2), transparent 32%),
    linear-gradient(145deg, rgba(240, 196, 107, 0.18), rgba(184, 92, 245, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-style: normal;
  font-size: 24px;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.035), 0 12px 28px rgba(0, 0, 0, 0.24);
}

.hub-actions span {
  max-width: 100%;
  color: rgba(255, 247, 234, 0.92);
  white-space: nowrap;
  font-size: 10px;
}

.hub-actions button:nth-child(1) i { background: linear-gradient(145deg, rgba(55, 104, 128, 0.38), rgba(240, 196, 107, 0.14)); }
.hub-actions button:nth-child(2) i { background: linear-gradient(145deg, rgba(240, 196, 107, 0.22), rgba(22, 83, 72, 0.3)); }
.hub-actions button:nth-child(3) i { background: linear-gradient(145deg, rgba(184, 92, 245, 0.18), rgba(240, 196, 107, 0.16)); }
.hub-actions button:nth-child(4) i { background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(184, 92, 245, 0.16)); }
.dashboard-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 24px;
}

.dashboard-strip article {
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 4px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  text-align: center;
}

.dashboard-strip strong {
  color: var(--gold);
  font-size: 18px;
}

.dashboard-strip span {
  color: var(--muted);
  font-size: 11px;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-list article,
.mini-list .note-list-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  text-align: left;
}

.mini-list .note-list-row.active {
  border-color: rgba(240, 196, 107, 0.34);
  background: rgba(240, 196, 107, 0.08);
}

.mini-list i,
.mini-list .note-list-row i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--gold);
  background: rgba(240, 196, 107, 0.12);
  font-style: normal;
}

.mini-list strong,
.mini-list span,
.mini-list small {
  display: block;
}

.mini-list span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.mini-list small {
  margin-top: 6px;
  color: rgba(255, 247, 234, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.cairo-home-card {
  min-height: 148px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(240, 196, 107, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96), rgba(5, 5, 5, 0.68) 52%, rgba(5, 5, 5, 0.18)),
    url("./cairo-andes-stage.png") center/cover;
}

.cairo-home-card span,
.cairo-home-card p {
  color: var(--muted);
}

.cairo-home-card strong {
  display: block;
  margin: 4px 0;
  color: var(--gold);
  font-size: 20px;
}

.cairo-home-card p {
  max-width: 230px;
  margin: 0 0 12px;
  font-size: 13px;
}

.cairo-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(240, 196, 107, 0.5);
  border-radius: 999px;
  background: rgba(240, 196, 107, 0.08);
  color: var(--gold);
  box-shadow: none;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.academy-hero-card {
  min-height: 148px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid rgba(240, 196, 107, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98), rgba(5, 5, 5, 0.76) 54%, rgba(5, 5, 5, 0.22)),
    url("./hero-cairo-andes.jpg") right center/cover;
}

.academy-hero-card span,
.academy-hero-card p {
  color: var(--muted);
}

.academy-hero-card strong {
  display: block;
  margin: 4px 0;
  color: var(--gold);
  font-family: inherit;
  font-size: 20px;
  line-height: 1.18;
}

.academy-hero-card p {
  max-width: 230px;
  margin: 0 0 12px;
  font-size: 13px;
}

.academy-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(240, 196, 107, 0.5);
  border-radius: 999px;
  background: rgba(240, 196, 107, 0.08);
  padding: 0 14px;
  color: var(--gold);
  box-shadow: none;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.compact-news {
  margin-bottom: 12px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 12px;
}

.section-header h3 {
  margin: 0;
  color: var(--gold);
  font-size: 15px;
  text-transform: uppercase;
}

.music-shelf,
.playlist-shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 31%;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.playlist-shelf {
  grid-auto-columns: 38%;
}

.cover-card {
  min-width: 0;
  min-height: 178px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  padding: 0 0 10px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.cover-card img {
  width: 100%;
  aspect-ratio: 1.12;
  object-fit: cover;
  display: block;
}

.cover-card strong,
.cover-card span {
  display: block;
  padding: 0 8px;
}

.cover-card strong {
  margin-top: 9px;
  font-size: 13px;
}

.cover-card span,
.course-row span,
.course-row small,
.profile-panel p,
.news-list span {
  color: var(--muted);
  font-size: 12px;
}

.playlist-card {
  min-height: 268px;
}

.playlist-card span {
  display: -webkit-box;
  min-height: 68px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.suggestion-row,
.course-row,
.profile-panel,
.profile-menu,
.structure-card,
.notification-composer,
.tools-hero,
.feature-panel,
.studio-panel,
.coming-soon-card,
.note-composer,
.timer-card,
.checklist-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.suggestion-row img,
.course-row img,
.news-list img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.progress-line {
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.progress-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #9ee9ff);
}

.academy-course-card {
  align-items: start;
}

.academy-course-card > img {
  height: 92px;
}

.course-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(240, 196, 107, 0.18);
  border-radius: 10px;
  background: #050505;
  margin-top: 10px;
}

.course-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.course-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 10px;
  border: 1px solid rgba(240, 196, 107, 0.28);
  border-radius: 999px;
  color: var(--gold);
  text-decoration: none;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  width: min(100%, 430px);
  height: 76px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px 12px 10px;
  background: rgba(8, 7, 11, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.bottom-nav button {
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  gap: 2px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.bottom-nav button:hover {
  color: rgba(255, 247, 234, 0.9);
  background: rgba(255, 255, 255, 0.045);
}

.bottom-nav i {
  color: inherit;
  font-style: normal;
  font-size: 20px;
}

.bottom-nav button.active {
  color: var(--gold);
  background: rgba(240, 196, 107, 0.08);
  box-shadow: 0 8px 26px rgba(240, 196, 107, 0.08);
}

.bottom-nav button[data-nav="community"] {
  position: relative;
  transform: translateY(-4px);
  border: 1px solid rgba(240, 196, 107, 0.24);
  background:
    linear-gradient(180deg, rgba(240, 196, 107, 0.09), rgba(184, 92, 245, 0.08)),
    rgba(10, 8, 14, 0.9);
  box-shadow:
    0 -10px 24px rgba(184, 92, 245, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
}

.bottom-nav button[data-nav="community"]::before {
  content: none;
}

.bottom-nav button[data-nav="community"] i {
  width: 42px;
  height: 42px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #160d04;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.42), transparent 30%),
    linear-gradient(135deg, #ffe7a1, #f0c46b 46%, #b87527);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 8px 18px rgba(199, 139, 54, 0.16),
    0 6px 16px rgba(0, 0, 0, 0.26);
}

.bottom-nav button[data-nav="community"] span {
  position: relative;
  z-index: 1;
  color: var(--gold);
}

.player-top,
.screen-title-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  text-align: center;
}

.player-top strong,
.screen-title-row h2 {
  margin: 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  text-transform: uppercase;
  font-size: 18px;
}

.screen-title-row h2::after {
  content: "HUBRA";
  display: block;
  margin-top: 3px;
  color: rgba(255, 247, 234, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.profile-title-row h2::after {
  display: none;
}

.screen-subtitle {
  margin: -4px 0 16px;
  color: rgba(255, 247, 234, 0.74);
  text-align: center;
  font-size: 14px;
}

.music-player {
  text-align: center;
}

.player-cover {
  width: 100%;
  aspect-ratio: 1.15;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.46);
}

.music-player h1 {
  margin: 18px 0 2px;
  font-size: 28px;
}

.music-player p {
  margin: 0;
  color: #efe6d7;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 18px 0;
}

.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.scrubber {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.scrubber i {
  display: block;
  height: 100%;
  background: var(--gold);
}

.time-row,
.structure-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}

.controls,
.player-tools {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.controls button,
.player-tools button {
  min-height: 38px;
  border: 0;
  color: var(--gold);
  background: transparent;
  font-size: 11px;
}

.controls .play-pause {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 50%;
  color: #150f08;
  font-weight: 900;
  background: linear-gradient(135deg, #c98b36, #ffe4a4);
}

.structure-card {
  padding: 16px;
  margin-top: 20px;
}

.structure-card strong {
  text-transform: uppercase;
  font-size: 12px;
}

.structure-bar {
  height: 8px;
  display: grid;
  grid-template-columns: 18% 27% 25% 18% 12%;
  overflow: hidden;
  margin: 14px 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.structure-bar i:nth-child(1) { background: #ffd36a; }
.structure-bar i:nth-child(2) { background: #e5a94c; }
.structure-bar i:nth-child(3) { background: #645f66; }
.structure-bar i:nth-child(4) { background: #6c91a2; }
.structure-bar i:nth-child(5) { background: #93c7d7; }

.suggestion-row {
  display: grid;
  grid-template-columns: 52px 1fr 42px;
  gap: 10px;
  align-items: center;
  padding: 8px;
  margin-bottom: 8px;
}

.ai-editor-card {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(184, 92, 245, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(184, 92, 245, 0.14), rgba(240, 196, 107, 0.06));
}

.ai-editor-card strong,
.ai-editor-card span {
  display: block;
}

.ai-editor-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.ai-editor-card em {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(5, 5, 5, 0.42);
  font-size: 11px;
  font-style: normal;
}

.music-editor-tool-card {
  min-height: 118px;
  width: 100%;
  display: grid;
  grid-template-columns: 92px 1fr 22px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(184, 92, 245, 0.24);
  border-radius: 12px;
  color: var(--ink);
  background:
    radial-gradient(circle at 28% 20%, rgba(191, 96, 255, 0.25), transparent 42%),
    linear-gradient(145deg, rgba(85, 28, 122, 0.34), rgba(255, 255, 255, 0.04));
  text-align: left;
}

.music-editor-tool-card .tool-visual {
  min-height: 80px;
}

.music-editor-tool-card .tool-visual i {
  font-size: 42px;
}

.music-editor-tool-card strong,
.music-editor-tool-card span {
  display: block;
}

.music-editor-tool-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.music-editor-tool-card b {
  color: var(--gold);
  font-size: 28px;
  font-weight: 300;
}

.feature-panel p,
.studio-panel span,
.coming-soon-card span {
  color: var(--muted);
}

.feature-panel h3 {
  margin: 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.05;
}

.feature-panel,
.studio-panel,
.coming-soon-card,
.note-composer,
.timer-card,
.checklist-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.feature-panel h3,
.feature-panel p {
  margin: 0;
}

.events-card {
  margin-top: 0;
  margin-bottom: 14px;
}

.create-event-line {
  width: 100%;
  min-height: 38px;
  margin: 0 0 14px;
  border: 1px solid rgba(240, 196, 107, 0.18);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 850;
}

.events-list {
  gap: 10px;
}

.event-list-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 16px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0%, rgba(184, 92, 245, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.04);
  text-align: left;
}

.event-list-card img {
  width: 100%;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
}

.event-list-card > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 11px 12px 11px 0;
}

.event-list-card strong,
.event-list-card p,
.event-list-card span,
.event-list-card small {
  margin: 0;
}

.event-list-card strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.18;
}

.event-list-card p {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 247, 234, 0.72);
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-list-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.event-list-card small {
  color: var(--muted);
  font-size: 11px;
}

.event-owner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.event-owner-actions button {
  min-height: 30px;
  border: 1px solid rgba(240, 196, 107, 0.22);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(240, 196, 107, 0.07);
  padding: 0 12px;
  font-size: 11px;
  font-weight: 850;
}

.event-owner-actions button:last-child {
  color: rgba(255, 247, 234, 0.76);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.event-owner-actions button:hover {
  transform: translateY(-1px) scale(1.02);
}

.event-create-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(240, 196, 107, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 0%, rgba(184, 92, 245, 0.11), transparent 36%),
    rgba(255, 255, 255, 0.04);
}

.event-create-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.event-create-form input,
.event-create-form textarea {
  width: 100%;
  border: 1px solid rgba(240, 196, 107, 0.16);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  padding: 12px;
  outline: 0;
}

.event-toggle-row {
  grid-template-columns: 20px 1fr;
  align-items: center;
}

.event-toggle-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.event-date-grid {
  display: grid;
  gap: 12px;
}

.event-save-button {
  width: 100%;
  margin-top: 4px;
}

.event-form-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.event-detail-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
}

.event-detail-banner {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.event-detail-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.event-detail-body h3,
.event-detail-body p {
  margin: 0;
}

.event-detail-body > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.event-detail-body h3 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.event-detail-body p {
  color: rgba(255, 247, 234, 0.76);
  line-height: 1.5;
}

.event-detail-facts {
  display: grid;
  gap: 8px;
}

.event-detail-facts article {
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.event-detail-facts strong,
.event-detail-facts small {
  display: block;
}

.event-detail-facts strong {
  color: var(--gold);
  font-size: 12px;
}

.event-detail-facts small {
  margin-top: 3px;
  color: var(--ink);
}

.event-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-detail-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  text-decoration: none;
}

.studio-panel {
  min-height: 170px;
  align-content: end;
  background:
    radial-gradient(circle at 85% 20%, rgba(240, 196, 107, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(184, 92, 245, 0.14), rgba(255, 255, 255, 0.04));
}

.audio-editor {
  display: grid;
  gap: 14px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(184, 92, 245, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(184, 92, 245, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.045);
}

.editor-upload {
  display: grid;
  gap: 10px;
}

.editor-upload input[type="file"] {
  display: none;
}

.editor-upload-button {
  min-height: 92px;
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(240, 196, 107, 0.24);
  border-radius: 16px;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 18%, rgba(240, 196, 107, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(184, 92, 245, 0.09));
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.035), 0 12px 28px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.editor-upload-button i {
  grid-row: 1 / span 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #160d04;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.45), transparent 30%),
    linear-gradient(145deg, #ffe8a5, #e4aa4b 60%, #8f5619);
  font-style: normal;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
}

.editor-upload-button strong,
.editor-upload-button span {
  display: block;
}

.editor-upload-button strong {
  align-self: end;
  font-size: 14px;
}

.editor-upload-button span {
  align-self: start;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.project-name-input {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  padding: 0 12px;
  outline: 0;
}

.waveform-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 196, 107, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.82), rgba(18, 11, 23, 0.92));
}

.waveform-stage canvas {
  width: 100%;
  height: 180px;
  display: block;
  touch-action: none;
}

.waveform-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  pointer-events: none;
}

.waveform-stage.loaded .waveform-empty {
  display: none;
}

.editor-timebar,
.transport-controls,
.editor-actions,
.editor-footer-actions {
  display: grid;
  gap: 8px;
}

.editor-timebar {
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.editor-timebar span:nth-child(2) {
  color: var(--gold);
  text-align: center;
}

.editor-timebar span:last-child {
  text-align: right;
}

.transport-controls {
  grid-template-columns: repeat(3, 1fr);
}

.editor-footer-actions {
  grid-template-columns: 1fr 1fr;
}

.transport-controls button,
.editor-actions button,
.editor-footer-actions button,
.editor-subheader button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 800;
}

.editor-actions {
  grid-template-columns: repeat(2, 1fr);
}

.editor-mix-controls {
  display: grid;
  gap: 10px;
}

.editor-mix-controls label {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.editor-mix-controls input {
  min-height: 36px;
  accent-color: var(--gold);
}

.editor-mix-controls input[type="number"] {
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  padding: 0 10px;
}

.editor-subheader {
  margin: 2px 0 -4px;
}

.editor-list {
  display: grid;
  gap: 8px;
}

.editor-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.editor-row strong,
.editor-row span {
  display: block;
}

.editor-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.editor-row button {
  min-width: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(240, 196, 107, 0.11);
}

.editor-status {
  min-height: 18px;
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  text-align: center;
}

.coming-soon-card strong {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
}

.note-composer input,
.note-composer textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  padding: 12px;
}

.ai-admin-intro {
  background:
    radial-gradient(circle at 16% 0%, rgba(184, 92, 245, 0.28), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(240, 196, 107, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.ai-admin-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.ai-admin-grid {
  display: grid;
  gap: 14px;
}

.ai-admin-form,
.ai-admin-preview-card {
  border: 1px solid rgba(240, 196, 107, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 8%, rgba(184, 92, 245, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.ai-admin-options {
  display: grid;
  gap: 10px;
}

.ai-admin-preview-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.ai-admin-preview-card > div > span,
.ai-admin-form label > span,
.ai-admin-preview-card label > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-admin-preview-card h3 {
  margin: 6px 0 4px;
}

.ai-admin-preview-card p {
  margin: 0;
  color: var(--muted);
}

.ai-admin-preview-card textarea,
.ai-admin-form textarea,
.ai-admin-form input,
.ai-admin-form select,
.ai-admin-preview-card input,
.ai-admin-preview-card select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.28);
  padding: 12px;
  outline: 0;
}

.ai-flyer-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}

.ai-flyer-strip figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
}

.ai-flyer-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.ai-flyer-strip figcaption,
.ai-flyer-strip p {
  margin: 0;
  padding: 8px;
  color: var(--muted);
  font-size: 11px;
}

.ai-cover-preview {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(240, 196, 107, 0.14);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  padding: 10px;
}

.ai-cover-preview > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-cover-preview figure {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.ai-cover-preview img {
  width: 96px;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  object-fit: cover;
}

.ai-cover-preview figcaption,
.ai-cover-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.ai-visual-preview {
  display: grid;
  gap: 10px;
}

.ai-visual-preview > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-visual-preview > p {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  padding: 12px;
}

.ai-admin-log {
  display: grid;
  gap: 8px;
}

.ai-admin-log article,
.ai-admin-log p {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.ai-admin-log strong,
.ai-admin-log span {
  display: block;
}

.ai-admin-log span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

@media (min-width: 1024px) {
  .ai-admin-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }

  .ai-admin-options {
    grid-template-columns: 1fr 1fr;
  }
}

/* HUBRA Music Studio */
.audio-editor {
  position: relative;
  overflow: hidden;
  gap: 16px;
  padding: 18px;
  border-color: rgba(240, 196, 107, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 8%, rgba(184, 92, 245, 0.25), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(240, 196, 107, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(18, 13, 26, 0.96), rgba(4, 4, 7, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 80px rgba(0, 0, 0, 0.38);
}

.audio-editor::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(240, 196, 107, 0.08), transparent),
    radial-gradient(circle at 50% 0%, rgba(184, 92, 245, 0.1), transparent 34%);
  opacity: 0.75;
}

.audio-editor > * {
  position: relative;
  z-index: 1;
}

.audio-editor:not(.has-audio) .waveform-stage,
.audio-editor:not(.has-audio) .editor-timebar,
.audio-editor:not(.has-audio) .editor-zoom-row,
.audio-editor:not(.has-audio) .transport-controls,
.audio-editor:not(.has-audio) .editor-actions,
.audio-editor:not(.has-audio) .editor-mix-controls,
.audio-editor:not(.has-audio) .editor-subheader,
.audio-editor:not(.has-audio) .editor-list,
.audio-editor:not(.has-audio) .editor-footer-actions {
  display: none;
}

.audio-editor:not(.has-audio) {
  min-height: 420px;
  align-content: center;
}

.audio-editor:not(.has-audio) .editor-upload {
  min-height: 330px;
  align-content: center;
}

.audio-editor:not(.has-audio) .editor-upload::before {
  content: "HUBRA\a Music Studio";
  white-space: pre;
  display: block;
  margin-bottom: 16px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 30px;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.editor-upload-button {
  min-height: 126px;
  grid-template-columns: 74px 1fr;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(240, 196, 107, 0.28), transparent 32%),
    radial-gradient(circle at 86% 70%, rgba(184, 92, 245, 0.2), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.editor-upload-button:hover,
.editor-upload-button:focus-within {
  border-color: rgba(240, 196, 107, 0.48);
  box-shadow: 0 18px 44px rgba(184, 92, 245, 0.18), 0 16px 34px rgba(0, 0, 0, 0.36);
  transform: translateY(-2px);
}

.editor-upload-button i {
  width: 72px;
  height: 72px;
  font-size: 32px;
  box-shadow: 0 0 34px rgba(184, 92, 245, 0.34), 0 14px 26px rgba(0, 0, 0, 0.38);
}

.editor-upload-button strong {
  font-size: 16px;
}

.project-name-input {
  min-height: 48px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
}

.waveform-stage {
  border-color: rgba(240, 196, 107, 0.22);
  border-radius: 24px;
  box-shadow: inset 0 0 34px rgba(184, 92, 245, 0.08);
}

.waveform-stage canvas {
  height: 320px;
}

.editor-timebar {
  padding: 0 4px;
  font-variant-numeric: tabular-nums;
}

.editor-zoom-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
}

.editor-zoom-row label {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.editor-zoom-row input,
.editor-mix-controls input[type="range"] {
  accent-color: var(--gold);
}

.editor-zoom-row input:disabled {
  opacity: 0.36;
}

.transport-controls {
  grid-template-columns: 0.8fr 1.15fr 0.8fr;
  align-items: center;
}

.transport-controls button,
.editor-actions button,
.editor-footer-actions button,
.editor-subheader button {
  min-height: 44px;
  border-color: rgba(240, 196, 107, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, border-color 160ms ease, background 160ms ease;
}

.transport-controls button:hover,
.editor-actions button:hover,
.editor-footer-actions button:hover,
.editor-subheader button:hover,
.editor-row button:hover {
  border-color: rgba(240, 196, 107, 0.4);
  transform: translateY(-1px) scale(1.01);
}

.transport-controls button:active,
.editor-actions button:active,
.editor-footer-actions button:active,
.editor-subheader button:active,
.editor-row button:active {
  transform: scale(0.98);
}

.transport-controls .gold-button,
.editor-footer-actions .gold-button {
  color: #160d04;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.5), transparent 32%),
    linear-gradient(135deg, #ffe8a5, #e0a74d 62%, #8f5619);
  box-shadow: 0 0 28px rgba(184, 92, 245, 0.24), 0 14px 30px rgba(0, 0, 0, 0.3);
}

.editor-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.22);
}

.editor-actions .inline-tool-input {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
}

.editor-mix-controls {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 18%, rgba(184, 92, 245, 0.12), transparent 34%),
    rgba(0, 0, 0, 0.24);
}

.editor-subheader {
  align-items: center;
}

.editor-row {
  min-height: 68px;
  grid-template-columns: minmax(0, 1fr) max-content;
  border-color: rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.editor-row:hover,
.editor-row.active {
  border-color: rgba(240, 196, 107, 0.34);
  background:
    radial-gradient(circle at 8% 25%, rgba(240, 196, 107, 0.13), transparent 30%),
    linear-gradient(135deg, rgba(184, 92, 245, 0.13), rgba(255, 255, 255, 0.045));
}

.segment-name-input {
  width: 100%;
  min-height: 28px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 900;
  outline: 0;
}

.editor-row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.editor-row button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid rgba(240, 196, 107, 0.16);
  color: var(--gold);
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.12), transparent 30%),
    rgba(240, 196, 107, 0.1);
  cursor: pointer;
}

.editor-status {
  color: var(--gold);
  letter-spacing: 0;
}

@media (max-width: 520px) {
  .editor-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .waveform-stage canvas {
    height: 280px;
  }

  .editor-row {
    grid-template-columns: 1fr;
  }

  .editor-row-actions {
    justify-content: flex-start;
  }
}

.note-composer textarea {
  min-height: 118px;
  resize: vertical;
}

.note-composer button,
.checklist-card button,
.timer-controls button {
  min-height: 42px;
  border: 1px solid rgba(240, 196, 107, 0.24);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(240, 196, 107, 0.08);
  font-weight: 800;
}

.notes-workspace {
  display: grid;
  gap: 12px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(184, 92, 245, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 14% 0%, rgba(184, 92, 245, 0.15), transparent 36%),
    rgba(255, 255, 255, 0.045);
}

.notes-toolbar {
  display: grid;
  gap: 8px;
}

.notes-toolbar input,
.note-editor input {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  padding: 0 12px;
  outline: 0;
}

.notes-toolbar button,
.rich-toolbar button,
.note-attachments label {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(240, 196, 107, 0.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(240, 196, 107, 0.08);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 850;
  box-shadow: none;
}

.notes-toolbar button {
  min-width: 98px;
}

.rich-toolbar button {
  min-width: 42px;
  padding: 0 12px;
}

.note-attachments label {
  min-width: 82px;
}

.note-attachments label::before {
  color: var(--gold);
}

.note-attachments label:nth-child(1)::before { content: "▣"; }
.note-attachments label:nth-child(2)::before { content: "▷"; }
.note-attachments label:nth-child(3)::before { content: "♫"; }

.note-footer .gold-button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  color: #170f06;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.42), transparent 30%),
    linear-gradient(135deg, #f7c765, #ffe6a7 48%, #b87527);
  box-shadow: 0 12px 28px rgba(199, 139, 54, 0.2);
  font-size: 12px;
  font-weight: 900;
}

.notebook-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.notebook-strip button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  padding: 0 13px;
  white-space: nowrap;
}

.notebook-strip button.active {
  color: #150d04;
  border-color: transparent;
  background: linear-gradient(135deg, #ffe7a1, var(--gold), var(--gold-deep));
}

.note-editor {
  display: grid;
  gap: 10px;
}

.note-upgrade-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(240, 196, 107, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 90% 16%, rgba(240, 196, 107, 0.16), transparent 34%),
    rgba(240, 196, 107, 0.055);
}

.note-upgrade-card span {
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: #170f06;
  background: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.note-upgrade-card strong {
  color: var(--ink);
  font-size: 14px;
}

.note-upgrade-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.rich-toolbar,
.note-attachments,
.note-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rich-note-body {
  min-height: 150px;
  border: 1px solid rgba(240, 196, 107, 0.16);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.24);
  padding: 12px;
  line-height: 1.5;
  outline: 0;
}

.rich-note-body:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 247, 234, 0.42);
}

.rich-note-body ul,
.rich-note-body ol {
  padding-left: 20px;
}

.note-meta-grid {
  display: grid;
  gap: 8px;
}

.note-switches label {
  min-height: 36px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.note-switches input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--gold);
}

.note-switches span {
  min-width: 0;
}

.note-attachments input {
  display: none;
}

.attachment-list {
  display: grid;
  gap: 7px;
}

/* HUBRA Choreography Notes redesign: creative workspace, not a form. */
.notes-workspace {
  border-radius: 28px !important;
  padding: 18px !important;
  background:
    radial-gradient(circle at 50% 18%, rgba(157, 92, 255, 0.2), transparent 34%),
    radial-gradient(circle at 50% 52%, rgba(240, 196, 107, 0.08), transparent 34%),
    rgba(8, 7, 11, 0.9) !important;
}

.notes-hub {
  min-height: 560px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 18px;
  padding: 16px 0 4px;
}

.notes-brand-mark {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin-bottom: 18px;
  text-align: center;
}

.notes-brand-mark img {
  width: 112px;
  height: auto;
  object-fit: contain;
}

.notes-brand-mark span {
  color: rgba(255, 247, 234, 0.72);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.notes-new-orb {
  width: 158px;
  height: 158px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px solid rgba(240, 196, 107, 0.44);
  border-radius: 999px;
  color: #ffe9a8;
  background:
    radial-gradient(circle at 50% 42%, rgba(240, 196, 107, 0.3), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.9), rgba(18, 9, 25, 0.92) 54%, rgba(157, 92, 255, 0.38) 72%, rgba(240, 196, 107, 0.42) 100%);
  box-shadow:
    0 0 34px rgba(157, 92, 255, 0.36),
    0 0 30px rgba(240, 196, 107, 0.18),
    inset 0 0 32px rgba(0, 0, 0, 0.72);
}

.notes-new-orb i {
  font-size: 42px;
  font-style: normal;
  font-weight: 200;
  line-height: 0.8;
}

.notes-new-orb span {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notes-hub-grid {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.notes-hub-grid button {
  min-height: 60px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.03);
}

.notes-hub-grid button.active {
  border-color: rgba(240, 196, 107, 0.28);
  background:
    radial-gradient(circle at 15% 0%, rgba(240, 196, 107, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(240, 196, 107, 0.1), rgba(157, 92, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.notes-hub-grid i {
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--gold);
  background: rgba(240, 196, 107, 0.12);
  font-style: normal;
}

.notes-hub-grid strong {
  font-size: 13px;
}

.notes-hub-grid span {
  color: rgba(255, 247, 234, 0.58);
  font-size: 11px;
}

.notes-gallery-panel {
  display: grid;
  gap: 12px;
}

.notes-filter-panel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.notes-filter-panel button {
  min-height: 34px;
  border: 1px solid rgba(240, 196, 107, 0.18);
  border-radius: 999px;
  color: rgba(255, 247, 234, 0.74);
  background: rgba(255, 255, 255, 0.04);
  padding: 0 12px;
  white-space: nowrap;
}

.note-creative-editor {
  min-height: calc(100vh - 170px);
  gap: 18px !important;
  padding: 2px 0 4px;
}

.note-editor-topbar {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  color: rgba(255, 247, 234, 0.82);
  font-size: 12px;
}

.note-editor-topbar strong {
  text-align: center;
  font-size: 13px;
}

.note-editor-topbar button {
  border: 0;
  color: var(--gold);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}

.note-creative-editor [data-note-title] {
  min-height: 58px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #fff8ed;
  font-size: 26px;
  font-weight: 900;
}

.note-creative-editor .rich-note-body {
  min-height: 260px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: rgba(255, 247, 234, 0.9);
  font-size: 16px;
  line-height: 1.75;
}

.rich-note-body blockquote {
  margin: 12px 0;
  padding: 12px 14px;
  border-left: 2px solid var(--gold);
  border-radius: 12px;
  color: rgba(255, 247, 234, 0.78);
  background: rgba(240, 196, 107, 0.08);
}

.note-block-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  position: sticky;
  bottom: 8px;
  z-index: 2;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(8, 7, 11, 0.88);
}

.note-block-toolbar button {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  color: rgba(255, 247, 234, 0.74);
  background: rgba(255, 255, 255, 0.045);
  font-size: 10px;
  font-weight: 850;
}

.note-creative-editor .note-attachments {
  display: none;
}

.note-properties-panel {
  border: 1px solid rgba(240, 196, 107, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.note-properties-panel summary {
  color: var(--gold);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.note-properties-panel .note-meta-grid,
.note-properties-panel .note-switches {
  margin-top: 12px;
}

.note-checklist-panel {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(240, 196, 107, 0.12);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
}

.note-checklist-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.note-checklist-panel strong {
  color: rgba(255, 247, 234, 0.9);
  font-size: 13px;
}

.note-checklist-panel button {
  min-height: 30px;
  border: 1px solid rgba(240, 196, 107, 0.2);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(240, 196, 107, 0.08);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.note-checklist-panel label,
.note-detail-checklist label {
  min-height: 34px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  color: rgba(255, 247, 234, 0.82);
  font-size: 13px;
}

.note-checklist-panel input,
.note-detail-checklist input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.note-checklist-panel span {
  min-width: 0;
  outline: 0;
}

.note-checklist-panel label:has(input:checked) span,
.note-detail-checklist label:has(input:checked) span {
  color: rgba(255, 247, 234, 0.52);
  text-decoration: line-through;
}

.note-detail-checklist {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 10px;
}

.mini-list[data-notes-list] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.note-gallery-card {
  min-height: 214px;
  display: grid;
  grid-template-rows: 132px 1fr;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
}

.note-gallery-card img,
.note-cover-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: var(--note-cover);
}

.note-cover-fallback i {
  color: rgba(255, 232, 166, 0.9);
  font-size: 34px;
  font-style: normal;
}

.note-gallery-copy {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.note-gallery-copy strong {
  font-size: 13px;
}

.note-gallery-copy small {
  color: rgba(255, 247, 234, 0.54);
  font-size: 10px;
}

.note-gallery-copy em {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-style: normal;
}

.note-gallery-copy b {
  color: var(--gold);
  font-size: 10px;
  font-weight: 850;
}

.notes-empty-state {
  grid-column: 1 / -1;
}

.note-detail-cover {
  height: min(44vh, 360px);
  overflow: hidden;
  margin: 0 0 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.note-detail-cover img,
.note-detail-cover .note-cover-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-chip {
  min-height: 38px;
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
}

.attachment-chip button {
  border: 0;
  color: var(--gold);
  background: transparent;
}

.attachment-preview {
  display: grid;
  gap: 7px;
}

.attachment-preview img,
.attachment-preview video {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  background: #050505;
}

.attachment-preview audio {
  width: 100%;
}

.note-detail-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(184, 92, 245, 0.14), transparent 32%),
    rgba(255, 255, 255, 0.045);
}

.note-detail-header {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 12px;
  align-items: start;
}

.note-detail-header h2 {
  margin: 4px 0 6px;
  font-size: 24px;
  letter-spacing: 0;
}

.note-detail-header p,
.note-owner-line span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.note-owner-line {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
}

.note-owner-line img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
}

.note-document-body {
  min-height: 190px;
  padding: 16px;
  border: 1px solid rgba(240, 196, 107, 0.12);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.2);
  line-height: 1.65;
}

.note-document-body :first-child {
  margin-top: 0;
}

.note-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.note-detail-meta span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(240, 196, 107, 0.06);
  font-size: 11px;
  font-weight: 800;
}

.note-detail-media {
  display: grid;
  gap: 10px;
}

.note-detail-media h3 {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
}

.note-detail-attachment {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.note-detail-attachment img,
.note-detail-attachment video {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 10px;
  background: #050505;
}

.note-detail-attachment span {
  color: var(--muted);
  font-size: 12px;
}

.note-footer {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 10px;
  align-items: center;
}

.note-footer span {
  color: var(--muted);
  font-size: 12px;
}

.timer-card {
  min-height: 250px;
  place-items: center;
  text-align: center;
}

.timer-card strong {
  color: var(--gold);
  font-size: 56px;
  letter-spacing: 0;
}

.timer-controls,
.duration-pills,
.ai-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

.duration-pills {
  margin-bottom: 14px;
}

.duration-pills button,
.ai-categories button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
}

.duration-pills .active {
  color: #150f08;
  background: var(--gold);
}

.tempo-card,
.training-card {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(184, 92, 245, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(184, 92, 245, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.metronome-pro {
  gap: 18px;
  padding: 14px;
  border-color: rgba(240, 196, 107, 0.18);
  background:
    radial-gradient(circle at 50% 28%, rgba(184, 92, 245, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.metronome-display {
  display: grid;
  gap: 18px;
  padding: 18px 14px 16px;
  border: 1px solid rgba(184, 92, 245, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(35, 10, 23, 0.92), rgba(17, 5, 15, 0.94)),
    #140712;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.48);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.metronome-display.pulse {
  border-color: rgba(240, 196, 107, 0.48);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.48), 0 0 22px rgba(184, 92, 245, 0.16);
}

.metronome-readout {
  display: grid;
  grid-template-columns: 1.5fr 0.72fr 0.72fr;
  gap: 10px;
  align-items: start;
}

.metronome-label {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 7px;
  color: #1a0715;
  background: linear-gradient(135deg, #d77bea, #f0c46b);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.metronome-bpm-line {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-top: 14px;
}

.metronome-note,
.metronome-subdivision {
  color: #24e6ff;
  text-shadow: 0 0 16px rgba(36, 230, 255, 0.42);
}

.metronome-bpm-line strong,
.metronome-meter,
.metronome-subdivision {
  color: #24e6ff;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  text-shadow: 0 0 18px rgba(36, 230, 255, 0.34);
}

.metronome-bpm-line small {
  color: #68f3ff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.metronome-meter,
.metronome-subdivision {
  display: block;
  margin-top: 18px;
  font-size: 34px;
}

.metronome-bars {
  display: grid;
  grid-template-columns: repeat(var(--beat-count, 4), 1fr);
  gap: clamp(5px, 2vw, 14px);
  align-items: end;
  min-height: 104px;
  padding: 0 4px;
}

.metronome-bars span {
  height: 96px;
  border: 1px solid rgba(198, 88, 137, 0.65);
  background:
    linear-gradient(to top, rgba(198, 88, 137, 0.82) 45%, rgba(198, 88, 137, 0.14) 45%);
  transform-origin: bottom;
  transition: transform 90ms ease, border-color 90ms ease, background 90ms ease, box-shadow 90ms ease;
}

.metronome-bars span.active {
  border-color: rgba(240, 196, 107, 0.88);
  background:
    linear-gradient(to top, rgba(240, 196, 107, 0.95) 68%, rgba(240, 196, 107, 0.16) 68%);
  box-shadow: 0 0 20px rgba(240, 196, 107, 0.24);
  transform: scaleY(1.06);
}

.metronome-bars span.accent {
  background:
    linear-gradient(to top, rgba(184, 92, 245, 0.9) 74%, rgba(240, 196, 107, 0.2) 74%);
}

.metronome-wheel-wrap {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 8px;
  align-items: center;
}

.metronome-wheel {
  width: min(240px, 67vw);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 999px;
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.82), rgba(213, 207, 193, 0.58) 24%, rgba(99, 98, 88, 0.86) 62%, rgba(30, 31, 28, 0.95) 100%);
  box-shadow:
    inset 0 0 26px rgba(0, 0, 0, 0.5),
    0 24px 58px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(184, 92, 245, 0.12);
}

.metronome-ring {
  position: absolute;
  inset: 22px;
  border: 4px solid rgba(184, 92, 245, 0.84);
  border-radius: inherit;
  box-shadow: inset 0 0 18px rgba(240, 196, 107, 0.12), 0 0 20px rgba(184, 92, 245, 0.18);
}

.metronome-wheel::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  background: repeating-conic-gradient(from 0deg, rgba(0, 0, 0, 0.22) 0deg 2deg, transparent 2deg 8deg);
  opacity: 0.45;
  mask: radial-gradient(circle, transparent 61%, black 62%);
}

.metronome-play {
  width: 92px;
  aspect-ratio: 1;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #170f06;
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.92), transparent 31%),
    linear-gradient(135deg, #fff0ba, #f0c46b 48%, #9d6324);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.18), 0 10px 26px rgba(0, 0, 0, 0.28);
  font-size: 13px;
  font-weight: 950;
}

.metronome-side-button,
.metronome-meter-button,
.metronome-tap-button {
  min-height: 44px;
  border: 1px solid rgba(240, 196, 107, 0.24);
  border-radius: 12px;
  color: var(--gold);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.3);
  font-weight: 900;
}

.metronome-side-button {
  min-height: 64px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 42px;
  line-height: 1;
}

.metronome-actions {
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 8px;
  align-items: stretch;
}

.metronome-meter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.metronome-meter-button.active {
  color: #170f06;
  border-color: transparent;
  background: linear-gradient(135deg, #ffe7a1, var(--gold), var(--gold-deep));
  box-shadow: 0 10px 24px rgba(240, 196, 107, 0.18);
}

.metronome-tap-button {
  color: #efe9f4;
  font-size: 16px;
  text-transform: uppercase;
}

.tempo-bpm-input {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.tempo-bpm-input input {
  width: 100%;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: right;
  outline: 0;
  font-weight: 900;
}

.tempo-pulse {
  width: min(220px, 72vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  position: relative;
  border: 1px solid rgba(240, 196, 107, 0.26);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 42%, rgba(240, 196, 107, 0.16), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(184, 92, 245, 0.18), transparent 62%),
    rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 0 42px rgba(184, 92, 245, 0.12);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.tempo-pulse.pulse {
  transform: scale(1.018);
  box-shadow: inset 0 0 48px rgba(240, 196, 107, 0.18), 0 0 22px rgba(184, 92, 245, 0.12);
}

.tempo-pulse span {
  width: 13px;
  aspect-ratio: 1;
  position: absolute;
  top: 26px;
  border-radius: 999px;
  background: var(--purple);
  box-shadow: 0 0 18px rgba(184, 92, 245, 0.55);
}

.tempo-pulse span.accent {
  background: var(--gold);
  box-shadow: 0 0 22px rgba(240, 196, 107, 0.78);
}

.tempo-pulse strong {
  color: var(--gold);
  font-size: 58px;
  letter-spacing: 0;
}

.tempo-pulse small {
  margin-top: 66px;
  position: absolute;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.tempo-bpm-row {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 8px;
}

.tempo-bpm-row button,
.tempo-controls button,
.tempo-options button,
.tempo-rhythm-grid button,
.training-card button {
  min-height: 38px;
  border: 1px solid rgba(240, 196, 107, 0.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(240, 196, 107, 0.08);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 850;
}

.tempo-bpm-row button {
  font-size: 20px;
}

.tempo-bpm-row input,
.training-grid input {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  padding: 0 12px;
  text-align: center;
  outline: 0;
}

.tempo-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tempo-controls .gold-button {
  border: 0;
  color: #170f06;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.42), transparent 30%),
    linear-gradient(135deg, #f7c765, #ffe6a7 48%, #b87527);
  box-shadow: 0 12px 28px rgba(199, 139, 54, 0.2);
  font-weight: 900;
}

.tempo-card p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.tempo-volume,
.editor-zoom-row label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tempo-volume input,
.editor-zoom-row input {
  width: 100%;
  accent-color: var(--gold);
}

.tempo-debug-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.tempo-debug-panel span {
  min-height: 46px;
  display: grid;
  gap: 3px;
  align-content: center;
  padding: 7px 8px;
  border: 1px solid rgba(36, 230, 255, 0.14);
  border-radius: 10px;
  background: rgba(36, 230, 255, 0.045);
}

.tempo-debug-panel b,
.tempo-debug-panel strong {
  display: block;
}

.tempo-debug-panel b {
  color: rgba(255, 247, 234, 0.54);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tempo-debug-panel strong {
  color: #24e6ff;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0;
  text-shadow: 0 0 12px rgba(36, 230, 255, 0.25);
}

.tempo-options,
.tempo-rhythm-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.tempo-options {
  grid-template-columns: repeat(4, 1fr);
}

.tempo-rhythm-grid {
  grid-template-columns: repeat(2, 1fr);
}

.tempo-options button.active,
.tempo-rhythm-grid button.active {
  color: #150f08;
  border-color: transparent;
  background: linear-gradient(135deg, #ffe7a1, var(--gold), var(--gold-deep));
}

/* Tempo Trainer premium redesign */
.tempo-luxury {
  gap: 18px !important;
  padding: 18px !important;
  border-radius: 28px !important;
  border-color: rgba(240, 196, 107, 0.16) !important;
  background:
    radial-gradient(circle at 50% 16%, rgba(157, 92, 255, 0.28), transparent 38%),
    radial-gradient(circle at 88% 8%, rgba(240, 196, 107, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(8, 7, 13, 0.96), rgba(4, 4, 7, 0.98)) !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tempo-luxury-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: rgba(255, 247, 234, 0.58);
  font-size: 12px;
  font-weight: 850;
}

.tempo-chip {
  min-height: 32px;
  border: 1px solid rgba(240, 196, 107, 0.18);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(240, 196, 107, 0.08);
  padding: 0 13px;
  font-size: 11px;
  font-weight: 900;
}

.tempo-orb {
  width: min(280px, 76vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  position: relative;
  border-radius: 999px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 52%, rgba(15, 8, 22, 0.98), rgba(4, 4, 7, 0.98) 62%, rgba(157, 92, 255, 0.18) 72%, rgba(240, 196, 107, 0.18) 100%);
  box-shadow:
    0 0 48px rgba(157, 92, 255, 0.28),
    0 0 34px rgba(240, 196, 107, 0.13),
    inset 0 0 56px rgba(0, 0, 0, 0.82);
  transition: transform 130ms ease, box-shadow 130ms ease;
}

.tempo-orb.pulse {
  transform: scale(1.018);
  box-shadow:
    0 0 64px rgba(157, 92, 255, 0.42),
    0 0 42px rgba(240, 196, 107, 0.22),
    inset 0 0 58px rgba(0, 0, 0, 0.82);
}

.tempo-orb-ring {
  position: absolute;
  inset: 13px;
  border-radius: inherit;
  background:
    conic-gradient(from 220deg, rgba(240, 196, 107, 0.95), rgba(157, 92, 255, 0.95), rgba(157, 92, 255, 0.25), rgba(240, 196, 107, 0.82));
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 67%, transparent 68%);
  mask: radial-gradient(circle, transparent 62%, #000 63%, #000 67%, transparent 68%);
  filter: drop-shadow(0 0 16px rgba(157, 92, 255, 0.55));
}

.tempo-orb::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: inherit;
  background: repeating-conic-gradient(from -10deg, rgba(240, 196, 107, 0.32) 0deg 1deg, transparent 1deg 7deg);
  opacity: 0.38;
  -webkit-mask: radial-gradient(circle, transparent 72%, #000 73%, #000 76%, transparent 77%);
  mask: radial-gradient(circle, transparent 72%, #000 73%, #000 76%, transparent 77%);
}

.tempo-orb small,
.tempo-orb strong,
.tempo-orb em,
.tempo-meter-pill {
  position: relative;
  z-index: 1;
}

.tempo-orb small {
  align-self: end;
  margin-bottom: -14px;
  color: rgba(255, 247, 234, 0.82);
  font-size: 16px;
  font-weight: 750;
}

.tempo-orb strong {
  align-self: center;
  color: #ffd679;
  font-size: clamp(78px, 20vw, 112px);
  line-height: 0.76;
  text-shadow: 0 0 28px rgba(240, 196, 107, 0.36);
}

.tempo-orb em {
  margin-top: -22px;
  color: #c05cff;
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.05em;
}

.tempo-meter-pill {
  min-height: 34px;
  min-width: 74px;
  border: 0;
  border-radius: 999px;
  color: #fff4d9;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 14px;
  font-weight: 900;
}

.tempo-beat-dots {
  min-height: 28px !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 10px !important;
  padding: 0 !important;
}

.tempo-beat-dots span {
  width: 13px !important;
  height: 13px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  box-shadow: none !important;
  transform: none !important;
}

.tempo-beat-dots span.active {
  background: rgba(157, 92, 255, 0.98) !important;
  box-shadow: 0 0 18px rgba(157, 92, 255, 0.72) !important;
  transform: scale(1.35) !important;
}

.tempo-beat-dots span.accent {
  background: #ffd679 !important;
  box-shadow: 0 0 22px rgba(240, 196, 107, 0.78) !important;
}

.tempo-transport {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  gap: 16px;
  align-items: center;
  justify-items: center;
}

.tempo-transport .metronome-side-button {
  width: 52px;
  min-height: 52px;
  border-radius: 999px;
  color: rgba(255, 247, 234, 0.82);
  font-size: 24px;
  background: rgba(255, 255, 255, 0.065);
}

.tempo-transport .metronome-play {
  width: 86px;
  border-color: rgba(240, 196, 107, 0.46);
  color: #160c03;
  box-shadow: 0 0 30px rgba(157, 92, 255, 0.3), 0 14px 34px rgba(0, 0, 0, 0.36);
}

.tempo-transport .metronome-play.playing {
  color: #fff2d4;
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.38), transparent 30%),
    linear-gradient(135deg, #271234, #8e2cff 48%, #f0c46b);
}

.tempo-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.tempo-panel h3 {
  margin: 0;
  color: rgba(255, 247, 234, 0.88);
  font-size: 14px;
}

.tempo-luxury .metronome-meter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tempo-luxury .metronome-meter-button {
  min-height: 46px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
}

.tempo-presets {
  display: grid;
  gap: 8px;
}

.tempo-presets button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: rgba(255, 247, 234, 0.86);
  background: rgba(0, 0, 0, 0.2);
  padding: 0 12px;
  font-weight: 850;
}

.tempo-presets button.active {
  color: #160d04;
  border-color: transparent;
  background: linear-gradient(135deg, #ffe8a3, #f0c46b, #b87527);
}

.tempo-presets span {
  color: inherit;
  opacity: 0.72;
  font-size: 11px;
}

.tempo-sound-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tempo-sound-chips button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 247, 234, 0.72);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 850;
}

.tempo-sound-chips button.active {
  color: var(--gold);
  border-color: rgba(240, 196, 107, 0.28);
}

.tempo-advanced {
  margin: 0 !important;
  border-radius: 20px !important;
}

.tempo-advanced summary {
  color: var(--gold);
  cursor: pointer;
  font-weight: 900;
}

.tempo-luxury .tempo-debug-panel {
  display: none !important;
}

.section-header.compact {
  margin: 0;
}

.switch-line {
  min-height: 30px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.switch-line input {
  accent-color: var(--gold);
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.training-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.photo-enhancer-card,
.photo-controls-card {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(184, 92, 245, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(184, 92, 245, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.045);
}

.photo-upload-button {
  min-height: 74px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid rgba(240, 196, 107, 0.28);
  border-radius: 14px;
  color: var(--gold);
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 196, 107, 0.16), transparent 44%),
    rgba(240, 196, 107, 0.065);
  font-size: 13px;
  font-weight: 900;
}

.photo-upload-button input {
  display: none;
}

.photo-upload-button small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.photo-preview-shell {
  min-height: 300px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
    rgba(0, 0, 0, 0.24);
  background-size: 22px 22px;
}

.photo-preview-shell canvas {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
}

.photo-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(184, 92, 245, 0.13), transparent 42%),
    rgba(5, 5, 5, 0.82);
}

.photo-empty strong {
  color: var(--ink);
}

.photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.photo-actions button,
.photo-preset-grid button {
  min-height: 38px;
  border: 1px solid rgba(240, 196, 107, 0.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(240, 196, 107, 0.08);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 850;
}

.photo-actions .gold-button {
  border: 0;
  color: #170f06;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.42), transparent 30%),
    linear-gradient(135deg, #f7c765, #ffe6a7 48%, #b87527);
  box-shadow: 0 12px 28px rgba(199, 139, 54, 0.2);
  font-weight: 900;
}

.photo-enhancer-card p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.photo-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.photo-preset-grid button:first-child {
  grid-column: 1 / -1;
}

.photo-preset-grid button.active {
  color: #150f08;
  border-color: transparent;
  background: linear-gradient(135deg, #ffe7a1, var(--gold), var(--gold-deep));
}

.photo-controls-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.photo-controls-card input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.checklist-card label {
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  color: var(--ink);
}

.checklist-card input {
  accent-color: var(--gold);
}

.routine-flow {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.routine-flow article {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 196, 107, 0.2);
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(240, 196, 107, 0.1), rgba(184, 92, 245, 0.08));
  font-weight: 850;
}

.routine-flow b {
  color: var(--gold);
  text-align: center;
  font-size: 18px;
}

.ai-categories {
  grid-template-columns: repeat(2, 1fr);
}

.tools-shell {
  display: grid;
  gap: 18px;
  width: 100%;
}

.desktop-home-feed-shell {
  display: none;
}

.tools-main-panel,
.tools-info-panel > article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 10%, rgba(184, 92, 245, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.tools-recent span,
.how-step span,
.tools-premium-card p {
  margin: 0;
  color: rgba(255, 247, 234, 0.74);
}

.tools-recent i,
.how-step i,
.tools-premium-card i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--gold);
  background: rgba(184, 92, 245, 0.18);
  font-style: normal;
  font-size: 19px;
}

.tools-how-card h3,
.tools-quick-card h3 {
  color: #c56cff;
  text-transform: uppercase;
}

.tools-main-panel {
  padding: 18px;
  width: 100%;
  box-sizing: border-box;
}

.tools-section-header h3 {
  color: #c56cff;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tool-card {
  min-height: 212px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-content: end;
  gap: 8px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 20%, rgba(184, 92, 245, 0.2), transparent 45%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028));
  text-align: left;
}

.tool-card::after,
.cover-card::after,
.music-editor-tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 32%, rgba(240, 196, 107, 0.05));
  opacity: 0;
  transition: opacity 180ms ease;
}

.tool-card:hover::after,
.cover-card:hover::after,
.music-editor-tool-card:hover::after {
  opacity: 1;
}

.tool-card strong,
.tool-card small {
  display: block;
  position: relative;
  z-index: 1;
}

.tool-card strong {
  font-size: 16px;
  line-height: 1.1;
}

.tool-card small {
  color: rgba(255, 247, 234, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.tool-card b {
  position: absolute;
  right: 14px;
  bottom: 26px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 300;
}

.tool-visual {
  min-height: 108px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.tool-visual i {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--gold);
  font-style: normal;
  font-size: 58px;
}

.waveform {
  position: absolute;
  inset: 18px 0 auto;
  height: 54px;
  opacity: 0.72;
  background:
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(191, 96, 255, 0.85) 7px 9px, transparent 9px 14px);
  mask-image: linear-gradient(180deg, transparent, #000 28%, #000 72%, transparent);
}

.music-tool {
  background:
    radial-gradient(circle at 60% 20%, rgba(191, 96, 255, 0.26), transparent 44%),
    linear-gradient(160deg, rgba(85, 28, 122, 0.62), rgba(255, 255, 255, 0.035));
}

.notes-tool,
.checklist-tool {
  background:
    radial-gradient(circle at 58% 18%, rgba(240, 196, 107, 0.16), transparent 40%),
    linear-gradient(145deg, rgba(49, 36, 27, 0.52), rgba(255, 255, 255, 0.035));
}

.timer-tool,
.planner-tool {
  background:
    radial-gradient(circle at 50% 22%, rgba(121, 65, 185, 0.2), transparent 46%),
    linear-gradient(145deg, rgba(24, 25, 36, 0.72), rgba(255, 255, 255, 0.035));
}

.timer-tool .tool-visual i {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(147, 68, 218, 0.62);
  border-radius: 50%;
  color: var(--gold);
  font-size: 18px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.6), rgba(103, 42, 155, 0.28));
}

.tools-recent {
  min-height: 78px;
  display: grid;
  grid-template-columns: 58px 1fr 24px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.tools-recent i {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  font-size: 28px;
}

.tools-recent strong,
.tools-recent span {
  display: block;
}

.tools-recent b {
  color: var(--muted);
  font-size: 22px;
}

.tools-info-panel {
  display: grid;
  gap: 18px;
}

.tools-info-panel > article {
  padding: 18px;
}

.tools-how-card {
  display: grid;
  gap: 16px;
}

.tools-how-card h3,
.tools-quick-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.how-step {
  display: grid;
  grid-template-columns: 46px 28px 1fr;
  gap: 10px;
  align-items: start;
}

.how-step i {
  border-radius: 50%;
  background: rgba(240, 196, 107, 0.08);
  border: 1px solid rgba(240, 196, 107, 0.32);
}

.how-step strong {
  color: var(--gold);
  font-size: 24px;
}

.how-step span {
  font-size: 13px;
  line-height: 1.4;
}

.tools-quick-card {
  display: grid;
  gap: 10px;
}

.tools-quick-card button {
  min-height: 54px;
  display: grid;
  grid-template-columns: 24px 1fr 16px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.tools-quick-card span {
  color: var(--ink);
}

.tools-premium-card {
  display: grid;
  gap: 12px;
  background:
    radial-gradient(circle at 18% 10%, rgba(240, 196, 107, 0.18), transparent 22%),
    linear-gradient(145deg, rgba(78, 22, 99, 0.62), rgba(255, 255, 255, 0.035)) !important;
}

.tools-premium-card i {
  width: 48px;
  height: 48px;
  color: var(--gold);
  font-size: 27px;
}

.tools-premium-card strong {
  color: var(--gold);
  font-size: 20px;
}

.tools-premium-card .gold-button {
  width: 100%;
}

@media (min-width: 980px) {
  .app-shell {
    width: min(100%, 1120px);
  }

  .tools-shell {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .bottom-nav {
    width: min(100%, 1120px);
  }

  .tools-main-panel,
  .tools-info-panel > article {
    border-radius: 18px;
  }
}

.playlist-list {
  display: grid;
  gap: 8px;
}

.playlist-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 54px 1fr 20px;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.playlist-row:hover {
  border-color: rgba(240, 196, 107, 0.42);
  background: rgba(240, 196, 107, 0.07);
  transform: translateY(-1px);
}

.playlist-row img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
}

.playlist-row strong,
.playlist-row span {
  display: block;
}

.playlist-row span {
  color: var(--muted);
  font-size: 12px;
}

.playlist-row b {
  color: var(--muted);
  font-size: 22px;
}

.suggestion-row img {
  height: 52px;
}

.music-back-button {
  min-height: 34px;
  border: 1px solid rgba(240, 196, 107, 0.22);
  border-radius: 999px;
  background: rgba(240, 196, 107, 0.08);
  color: var(--gold);
  padding: 0 14px;
  font-weight: 800;
  margin: 2px 0 12px;
}

.music-category-hero {
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid rgba(240, 196, 107, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.05), rgba(5, 5, 5, 0.96)),
    linear-gradient(90deg, rgba(35, 10, 48, 0.82), rgba(5, 5, 5, 0.2)),
    var(--hero-image) center / cover;
  padding: 18px;
  margin-bottom: 14px;
}

.music-category-hero.my-playlists-hero {
  background:
    radial-gradient(circle at 20% 15%, rgba(184, 92, 245, 0.35), transparent 35%),
    linear-gradient(135deg, rgba(45, 15, 68, 0.96), rgba(5, 5, 5, 0.96));
}

.music-category-hero span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.music-category-hero h3 {
  margin: 8px 0;
  color: #fff;
  font-size: 34px;
}

.music-category-hero p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.music-learn-grid,
.artist-card-grid,
.embed-grid {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.music-learn-grid article,
.artist-card-grid article,
.embed-card,
.related-tools-panel,
.my-playlist-form,
.my-playlist-list article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.music-learn-grid h4,
.embed-card h4,
.related-tools-panel h4 {
  margin: 0 0 8px;
  color: var(--gold);
}

.music-learn-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.embed-card iframe {
  display: block;
  width: 100%;
  border-radius: 12px;
  background: #050505;
}

.artist-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.artist-card-grid article i,
.artist-card-grid article strong,
.artist-card-grid article span {
  display: block;
}

.artist-card-grid article i {
  color: var(--gold);
  font-style: normal;
  margin-bottom: 8px;
}

.artist-card-grid article span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.music-quick-actions,
.related-tools-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.music-quick-actions button,
.related-tools-panel button,
.my-playlist-list button {
  min-height: 30px;
  border: 1px solid rgba(240, 196, 107, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(240, 196, 107, 0.86);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 750;
}

.related-tools-panel {
  padding: 12px;
}

.related-tools-panel h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.my-playlist-form {
  display: grid;
  gap: 10px;
}

.my-playlist-form input,
.my-playlist-form select {
  min-height: 44px;
  border: 1px solid rgba(240, 196, 107, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 12px;
  outline: 0;
}

.my-playlist-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.my-playlist-list article {
  display: grid;
  gap: 10px;
}

.my-playlist-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.empty-music-state {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  padding: 18px;
}

.empty-music-state strong,
.empty-music-state span {
  display: block;
}

.empty-music-state span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.suggestion-row a,
.suggestion-row button {
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 34px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(240, 196, 107, 0.08);
  color: var(--gold);
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
}

.filter-pills {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 8px;
  overflow-x: auto;
  margin: 8px 0 16px;
  scrollbar-width: none;
}

.filter-pills button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 12px;
}

.filter-pills .active {
  color: #150f08;
  background: var(--gold);
}

.academy-filter-pills {
  gap: 6px;
  margin: 8px 0 12px;
}

.academy-filter-pills button {
  min-height: 28px;
  border: 1px solid rgba(240, 196, 107, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 247, 234, 0.68);
  padding: 0 11px;
  font-size: 11px;
  font-weight: 700;
}

.academy-filter-pills .active {
  color: var(--gold);
  background: rgba(240, 196, 107, 0.1);
  border-color: rgba(240, 196, 107, 0.34);
}

.course-stack {
  display: grid;
  gap: 10px;
}

.course-row {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.course-row img {
  height: 74px;
}

.course-row strong,
.course-row span,
.course-row small {
  display: block;
}

.certificate-card {
  min-height: 160px;
  margin-top: 18px;
  padding: 22px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(11, 8, 16, 0.92), rgba(68, 24, 91, 0.24)),
    url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=900&q=80") right center/cover;
}

.certificate-card h3 {
  max-width: 220px;
  margin: 0 0 8px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  text-transform: uppercase;
}

.certificate-card p {
  max-width: 190px;
  color: #efe6d7;
}

.academy-tools {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.academy-tools button {
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.academy-tools span {
  color: var(--ink);
}

.community-composer {
  display: grid;
  gap: 12px;
  padding: 13px;
  position: relative;
  border: 1px solid rgba(240, 196, 107, 0.11);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 0%, rgba(184, 92, 245, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.026));
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.18);
  transition: border-color 190ms ease, box-shadow 190ms var(--ease-premium), transform 190ms var(--spring-premium), background 190ms ease;
}

.community-composer:focus-within {
  border-color: rgba(240, 196, 107, 0.28);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(240, 196, 107, 0.06) inset;
}

.community-composer.drag-over {
  border-color: rgba(240, 196, 107, 0.46);
  box-shadow: 0 0 0 2px rgba(240, 196, 107, 0.08), 0 14px 34px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.composer-drop-label {
  position: absolute;
  inset: 10px;
  display: none;
  place-items: center;
  border: 1px dashed rgba(240, 196, 107, 0.72);
  border-radius: 14px;
  color: var(--gold);
  background: rgba(5, 5, 5, 0.72);
  font-size: 13px;
  font-weight: 900;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.community-composer.drag-over .composer-drop-label {
  display: grid;
}

.community-search {
  position: relative;
  margin-bottom: 12px;
}

.community-search label {
  min-height: 46px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(240, 196, 107, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.community-search span {
  color: var(--gold);
  font-size: 20px;
}

.community-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(184, 92, 245, 0.26);
  border-radius: 14px;
  background: rgba(10, 8, 14, 0.96);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.search-result {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 10px;
  padding: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.search-result:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-empty {
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.search-result img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.search-result strong,
.search-result small {
  display: block;
}

.search-result small {
  margin-top: 3px;
  color: var(--muted);
  text-transform: capitalize;
}

.composer-bar {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}

.composer-bar img,
.post-card header img,
.post-author-photo img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
}

.composer-bar textarea {
  width: 100%;
  min-height: 54px;
  max-height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
  resize: none;
  outline: none;
  transition: min-height 180ms var(--ease-premium), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.community-composer.expanded .composer-bar textarea {
  min-height: 104px;
  border-color: rgba(240, 196, 107, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.post-card header span,
.post-card footer,
.shared-playlist {
  color: var(--muted);
  font-size: 12px;
}

.composer-expanded {
  display: grid;
  gap: 10px;
}

.community-composer.expanded .composer-expanded {
  display: grid;
}

.composer-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto)) 1fr;
  gap: 7px;
  align-items: center;
}

.composer-action-pill {
  min-height: 34px;
  display: inline-grid;
  grid-template-columns: 15px max-content;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 196, 107, 0.16);
  border-radius: 999px;
  color: rgba(255, 247, 234, 0.82);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, background 150ms ease, color 150ms ease;
}

.composer-action-pill:hover,
.composer-action-pill:focus-within {
  border-color: rgba(240, 196, 107, 0.36);
  color: #fff7ea;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.composer-action-pill:active,
.composer-action-pill.pressed {
  transform: scale(0.96);
  border-color: rgba(240, 196, 107, 0.72);
}

.composer-action-pill i {
  color: var(--gold);
  font-style: normal;
  font-size: 13px;
}

.community-composer.is-uploading .composer-action-pill,
.community-composer.is-uploading .publish-button {
  opacity: 0.62;
  pointer-events: none;
}

.composer-action-pill input {
  display: none;
}

.composer-preview {
  display: grid;
  gap: 8px;
  position: relative;
}

.composer-media-overlay {
  position: absolute;
  inset: 10px 10px auto 10px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.composer-media-overlay button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(12, 11, 15, 0.64);
  box-shadow: none;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.composer-media-overlay span {
  display: flex;
  gap: 6px;
}

.composer-media-overlay span button {
  width: 32px;
  padding: 0;
  font-size: 14px;
}

.composer-preview-grid,
.post-media-grid {
  display: grid;
  gap: 6px;
}

.composer-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.composer-preview-grid.count-1 {
  grid-template-columns: 1fr;
}

.composer-preview-grid figure {
  aspect-ratio: 1;
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 196, 107, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.composer-preview-grid.count-1 figure {
  aspect-ratio: 4 / 5;
  max-height: 62vh;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.08);
  background: #050505;
}

.composer-preview-grid img,
.composer-preview-grid video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.composer-preview-grid.count-1 img,
.composer-preview-grid.count-1 video,
.post-edit-media-grid.count-1 img,
.post-edit-media-grid.count-1 video {
  object-fit: contain;
  background: #050505;
}

.composer-preview-grid button {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 7px;
  right: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 18px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.post-edit-media-tools {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.post-edit-media-preview {
  display: grid;
  gap: 8px;
}

.composer-preview-grid .uploading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
}

.upload-spinner {
  width: 28px;
  height: 28px;
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  margin: -14px 0 0 -14px;
  border: 3px solid rgba(255, 255, 255, 0.24);
  border-top-color: var(--gold);
  border-radius: 999px;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.media-kind {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  font-size: 11px;
  font-weight: 900;
}

.composer-error {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(255, 121, 114, 0.24);
  border-radius: 10px;
  color: #ffd4d1;
  background: rgba(255, 121, 114, 0.08);
  font-size: 12px;
}

.post-media-grid {
  margin: 10px 0 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-media-grid.count-1 {
  grid-template-columns: 1fr;
}

@media (max-width: 390px) {
  .composer-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .composer-actions .publish-button {
    grid-column: 1 / -1;
  }

  .composer-action-pill {
    width: 100%;
  }
}

.post-author-photo,
.post-author-copy {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.post-author-copy {
  display: grid;
  gap: 2px;
}

.post-author-copy strong {
  color: var(--ink);
}

.social-profile-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(184, 92, 245, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(184, 92, 245, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.045);
}

.social-profile-header {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
}

.social-profile-header img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(240, 196, 107, 0.5);
}

.social-profile-header h3,
.social-profile-header p,
.profile-bio {
  margin: 0;
}

.social-profile-header p,
.social-profile-header span,
.profile-bio {
  color: var(--muted);
}

.social-profile-header span {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 12px;
  text-transform: capitalize;
}

.profile-bio {
  line-height: 1.45;
}

.social-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.social-stats button {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.social-stats strong,
.social-stats span {
  display: block;
}

.social-stats strong {
  font-size: 19px;
}

.social-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.follow-button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  color: #140d04;
  background: linear-gradient(135deg, #ffe29a, var(--gold), var(--gold-deep));
  font-weight: 850;
}

.follow-button.following {
  color: var(--ink);
  border: 1px solid rgba(240, 196, 107, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.profile-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 10px;
}

.profile-gallery-header h3 {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
}

.text-button {
  border: 0;
  color: var(--gold);
  background: transparent;
  font-size: 13px;
}

.profile-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}

.gallery-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
}

.gallery-tile img,
.gallery-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-tile span {
  position: absolute;
  right: 7px;
  top: 5px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.profile-loading {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.composer-action-pill i {
  color: var(--gold);
  font-style: normal;
}

.publish-button {
  justify-self: end;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 15px;
  color: #180f06;
  background: linear-gradient(135deg, #f6d27c, #d7a34a);
  box-shadow: none;
  font-size: 11px;
  font-weight: 900;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.publish-button:hover {
  filter: brightness(1.04);
}

.publish-button:active {
  transform: scale(0.97);
}

.publish-button:disabled {
  opacity: 0.52;
  cursor: progress;
}

.composer-preview {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.feed-list {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}

.empty-feed {
  margin: 18px 0;
  padding: 22px 18px;
  border: 1px solid rgba(240, 196, 107, 0.12);
  border-radius: 16px;
  color: var(--muted);
  background:
    radial-gradient(circle at 50% 0%, rgba(184, 92, 245, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.04);
  text-align: center;
}

.feed-skeleton {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.feed-skeleton span {
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  background-size: 220% 100%, 100% 100%;
  animation: skeletonShimmer 1180ms ease-in-out infinite;
}

@keyframes skeletonShimmer {
  0% { background-position: 120% 0, 0 0; }
  100% { background-position: -120% 0, 0 0; }
}

.post-card {
  padding: 0 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.078);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.024)),
    rgba(6, 6, 9, 0.74);
  box-shadow: var(--shadow-soft);
  animation: cardIn 260ms var(--ease-premium) both;
  backdrop-filter: blur(16px);
}

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

.post-card header {
  display: grid;
  grid-template-columns: 44px 1fr max-content;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.post-card header strong,
.post-card header span {
  display: block;
}

.post-caption {
  margin: 12px 14px 0;
  color: rgba(255, 247, 234, 0.92);
  font-size: 14px;
  line-height: 1.45;
}

.post-caption strong {
  color: var(--ink);
}

.post-actions-menu {
  position: relative;
  justify-self: end;
}

.post-actions-menu summary {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 247, 234, 0.72);
  list-style: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms var(--spring-premium);
}

.post-actions-menu summary::-webkit-details-marker {
  display: none;
}

.post-actions-menu summary:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

.post-actions-menu[open] summary {
  color: var(--gold);
  background: rgba(240, 196, 107, 0.08);
}

.post-actions {
  min-width: 132px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 12;
  display: grid;
  gap: 4px;
  padding: 7px;
  border: 1px solid rgba(240, 196, 107, 0.16);
  border-radius: 14px;
  background: rgba(9, 8, 13, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  animation: menuIn 150ms var(--ease-premium) both;
}

.post-actions-menu:not([open]) .post-actions {
  display: none !important;
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.post-actions button {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.post-actions button:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.065);
}

.post-edit-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.post-edit-form textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid rgba(240, 196, 107, 0.22);
  border-radius: 14px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.045));
  padding: 13px 14px;
  font: inherit;
  line-height: 1.45;
  outline: 0;
}

.post-edit-form textarea:focus {
  border-color: rgba(240, 196, 107, 0.52);
  box-shadow: 0 0 0 3px rgba(240, 196, 107, 0.08);
}

.post-edit-form > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.post-edit-form .slim,
.post-edit-form .ghost-button {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 850;
}

.post-edit-form .ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
}

.post-edit-form .gold-button.slim {
  box-shadow: 0 10px 24px rgba(199, 139, 54, 0.16);
}

.post-media-frame {
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
  background: #050505;
}

.post-media-frame.image {
  aspect-ratio: 1 / 1;
}

.post-media-frame.image.portrait {
  aspect-ratio: 4 / 5;
}

.post-media-frame.image.landscape {
  aspect-ratio: 16 / 9;
}

.post-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  display: block;
  background: transparent;
  opacity: 0;
  animation: mediaReveal 280ms ease forwards;
}

@keyframes mediaReveal {
  from { opacity: 0; filter: blur(8px); transform: scale(1.01); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}

.post-media-frame.video .post-media {
  min-height: 72vh;
  max-height: 85vh;
  object-fit: cover;
  aspect-ratio: auto;
}

.connect-video-frame {
  position: relative;
  min-height: 72vh;
  border-radius: 16px;
  margin: 0 8px;
  overflow: hidden;
}

.video-sound-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.44);
  padding: 0 11px;
  font-size: 11px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.shared-playlist {
  padding: 14px;
  border: 1px solid rgba(240, 196, 107, 0.18);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(240, 196, 107, 0.08);
}

.post-card footer {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 12px 0;
}

.post-card footer button {
  min-width: 36px;
  min-height: 36px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 19px;
  border-radius: 999px;
}

.post-card footer button:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.055);
}

.post-card footer .save-action {
  margin-left: auto;
}

.post-social-meta {
  display: grid;
  gap: 6px;
  margin: 0 14px;
}

.post-social-meta strong {
  color: var(--ink);
  font-size: 13px;
}

.post-social-meta button {
  width: max-content;
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.comment-panel {
  display: none;
  margin: 10px 12px 0;
}

.comment-panel.active {
  display: grid;
  gap: 10px;
}

.comment-thread {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.comment-thread article {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px;
  align-items: baseline;
  color: var(--ink);
  font-size: 13px;
}

.comment-thread strong {
  color: var(--gold);
}

.comment-thread p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.post-card footer button.active {
  color: var(--coral);
  animation: likePulse 260ms var(--spring-premium);
}

@keyframes likePulse {
  0% { transform: scale(0.92); }
  55% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 8px;
  margin: 10px 12px 0;
  opacity: 0.9;
  transition: opacity 160ms ease, transform 160ms ease;
}

.comment-form.active,
.comment-form:focus-within {
  opacity: 1;
  transform: translateY(-1px);
}

.comment-form input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  padding: 0 12px;
  outline: none;
}

.comment-form button {
  min-height: 38px;
  border: 1px solid rgba(240, 196, 107, 0.22);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(240, 196, 107, 0.08);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 380px) {
  .comment-form {
    grid-template-columns: 1fr;
  }
}

.festival-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.cairo-hero-promo {
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding: 18px 22px 22px;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 4, 9, 0.92) 0%, rgba(5, 4, 9, 0.58) 38%, rgba(5, 4, 9, 0.12) 70%),
    linear-gradient(180deg, rgba(5, 4, 9, 0.1), rgba(5, 4, 9, 0.8)),
    url("./hero-generated-premium.png") center/cover;
}

.cairo-hero-promo > div {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.cairo-hero-promo .hero-logo {
  margin-bottom: 64px;
}

.cairo-hero-promo h1 {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  text-transform: uppercase;
}

.cairo-hero-promo strong {
  display: block;
  margin-bottom: 4px;
}

.cairo-hero-promo p {
  max-width: 205px;
  margin: 0 0 14px;
  color: #efe5d5;
}

.cairo-hero-promo .gold-button {
  width: max-content;
  min-height: 40px;
  padding: 0 17px;
}

.festival-card img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
}

.festival-card div {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  place-items: center;
  padding: 60px 16px 18px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.92));
}

.festival-card span {
  display: block;
  margin: 4px 0 14px;
  color: #efe6d7;
}

.event-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.event-actions button {
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
}

.event-actions span {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 10px;
}

.news-list {
  display: grid;
  gap: 10px;
}

.news-list article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.news-list strong,
.news-list span {
  display: block;
}

.news-list img {
  height: 58px;
}

.profile-panel {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  margin-bottom: 12px;
}

.profile-panel img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(240, 196, 107, 0.5);
}

.profile-panel h3,
.profile-panel p {
  margin: 0 0 4px;
}

.profile-panel span {
  color: var(--gold);
  font-size: 13px;
}

.stats-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stats-grid article,
.admin-grid article {
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.stats-grid span {
  color: var(--muted);
  font-size: 10px;
}

.stats-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.profile-menu {
  display: grid;
  margin-top: 16px;
  overflow: hidden;
}

.profile-menu button {
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0 16px;
  color: var(--ink);
  background: transparent;
}

.profile-menu button::after {
  content: ">";
  float: right;
  color: var(--muted);
}

.language-setting {
  min-height: 56px;
  display: grid;
  grid-template-columns: 1fr max-content;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.language-setting span {
  color: var(--ink);
}

.language-setting select {
  min-height: 34px;
  border: 1px solid rgba(240, 196, 107, 0.24);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  padding: 0 8px;
}

.language-setting.setting-highlight {
  background: rgba(240, 196, 107, 0.08);
  box-shadow: inset 0 0 0 1px rgba(240, 196, 107, 0.28);
}

.admin-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 12px;
}

.admin-grid article {
  min-height: 130px;
}

.admin-grid strong {
  display: block;
  margin: 8px 0;
  font-size: 30px;
}

.admin-grid button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #150f08;
  font-weight: 800;
}

.admin-shell {
  display: grid;
  gap: 14px;
}

.admin-intro,
.admin-content-form,
.admin-course-list article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  padding: 14px;
}

.admin-intro span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-intro h3 {
  margin: 8px 0;
  font-size: 24px;
}

.admin-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-content-form {
  display: grid;
  gap: 12px;
}

.admin-content-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-content-form input,
.admin-content-form textarea,
.admin-content-form select {
  width: 100%;
  border: 1px solid rgba(240, 196, 107, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
  outline: 0;
}

.admin-content-form input:focus,
.admin-content-form textarea:focus,
.admin-content-form select:focus {
  border-color: rgba(240, 196, 107, 0.52);
  box-shadow: 0 0 0 3px rgba(240, 196, 107, 0.08);
}

.admin-field-help {
  color: rgba(255, 247, 234, 0.48);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.admin-content-form input[type="file"] {
  min-height: 46px;
  display: grid;
  align-items: center;
  border-style: dashed;
  color: rgba(255, 247, 234, 0.72);
  cursor: pointer;
}

.admin-file-upload {
  border: 1px solid rgba(240, 196, 107, 0.12);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-toggle-row {
  grid-template-columns: max-content 1fr;
  align-items: center;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.admin-form-actions button {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 16px;
}

.admin-form-actions button:first-child {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.admin-course-list {
  display: grid;
  gap: 10px;
}

.admin-course-list article {
  display: grid;
  grid-template-columns: 58px 1fr max-content max-content;
  align-items: center;
  gap: 10px;
}

.admin-course-list img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
}

.admin-course-list strong,
.admin-course-list span {
  display: block;
}

.admin-course-list span {
  color: var(--muted);
  font-size: 12px;
}

.admin-course-list button {
  min-height: 32px;
  border: 1px solid rgba(240, 196, 107, 0.22);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(240, 196, 107, 0.08);
  padding: 0 10px;
  font-weight: 800;
}

.admin-music-list article {
  cursor: grab;
}

.admin-music-list article.dragging {
  opacity: 0.55;
  transform: scale(0.99);
}

.admin-music-list article.drag-over {
  border-color: rgba(240, 196, 107, 0.62);
  box-shadow: inset 0 0 0 1px rgba(240, 196, 107, 0.24);
}

.inline-tool-input {
  min-height: 38px;
  border: 1px solid rgba(240, 196, 107, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 13px;
  font: inherit;
  outline: 0;
}

.inline-tool-input:focus {
  border-color: rgba(240, 196, 107, 0.52);
  box-shadow: 0 0 0 3px rgba(240, 196, 107, 0.08);
}

.admin-multi-content {
  display: grid;
  gap: 14px;
}

.admin-multi-content .admin-content-form h3 {
  margin: 0;
  color: var(--gold);
}

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 2000;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.hubra-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid rgba(240, 196, 107, 0.2);
  border-radius: 14px;
  background: rgba(13, 11, 18, 0.94);
  color: var(--text);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46), 0 0 24px rgba(184, 92, 245, 0.16);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.hubra-toast::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--gold));
  box-shadow: 0 0 16px rgba(240, 196, 107, 0.55);
  flex: 0 0 auto;
}

.hubra-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hubra-toast.success::before {
  background: var(--gold);
}

.hubra-toast.error {
  border-color: rgba(255, 112, 112, 0.35);
}

.hubra-toast.error::before {
  background: #ff7070;
  box-shadow: 0 0 16px rgba(255, 112, 112, 0.45);
}

.mini-list .course-link-button {
  margin-top: 8px;
}

.moderation-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.moderation-list article {
  display: grid;
  grid-template-columns: 1fr 76px 76px;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.moderation-list strong,
.moderation-list span {
  display: block;
}

.moderation-list span {
  color: var(--muted);
  font-size: 12px;
}

.moderation-list button {
  min-height: 34px;
  border: 1px solid rgba(240, 196, 107, 0.24);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(240, 196, 107, 0.08);
  font-size: 12px;
}

.social-list {
  display: grid;
  gap: 10px;
}

.social-list-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
  text-align: left;
}

.social-list-row img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
}

.social-list-row strong,
.social-list-row small {
  display: block;
}

.social-list-row small {
  color: var(--muted);
  margin-top: 3px;
}

.notification-composer {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin-top: 16px;
}

.notification-composer input,
.notification-composer textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  padding: 12px;
}

.notification-composer textarea {
  min-height: 92px;
  resize: vertical;
}

.floating-create {
  position: fixed;
  right: calc(50% - min(50%, 215px) + 18px);
  bottom: 92px;
  z-index: 20;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(240, 196, 107, 0.54);
  border-radius: 50%;
  color: #ffe5a1;
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 237, 181, 0.95), rgba(230, 166, 67, 0.88) 32%, transparent 34%),
    conic-gradient(from 230deg, #6f25a7, #d954ff, #f0c46b, #7a2ca8, #21101f, #6f25a7);
  font-size: 32px;
  line-height: 1;
  font-weight: 300;
  box-shadow:
    0 16px 36px rgba(184, 92, 245, 0.24),
    0 8px 26px rgba(240, 196, 107, 0.16),
    inset 0 0 0 8px rgba(5, 5, 5, 0.42);
}

.floating-create:hover {
  transform: translateY(-2px) scale(1.035);
  box-shadow:
    0 20px 46px rgba(184, 92, 245, 0.32),
    0 10px 34px rgba(240, 196, 107, 0.22),
    inset 0 0 0 8px rgba(5, 5, 5, 0.42);
}

.floating-create::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.74);
}

.floating-create::after {
  content: "+";
  position: relative;
  z-index: 1;
}

.desktop-sidebar {
  display: none;
}

@media (min-width: 760px) {
  body {
    padding: 20px 0;
  }

  .app-shell {
    min-height: calc(100vh - 40px);
    border: 1px solid var(--line);
    border-radius: 28px;
  }

  .login-screen,
  .splash-screen,
  .phone-app {
    min-height: calc(100vh - 40px);
  }

  .bottom-nav {
    bottom: 20px;
    border-radius: 0 0 28px 28px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .app-shell {
    width: min(100%, 760px);
  }

  .content-panels {
    padding: 0 28px;
  }

  .bottom-nav {
    width: min(100%, 760px);
  }

  .hub-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .music-shelf,
  .playlist-shelf {
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }

  .playlist-list,
  .tools-grid,
  .course-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  body {
    min-height: 100vh;
    padding: 24px;
    overflow: hidden;
    background:
      radial-gradient(circle at 6% 10%, rgba(184, 92, 245, 0.2), transparent 30%),
      radial-gradient(circle at 92% 8%, rgba(240, 196, 107, 0.14), transparent 28%),
      linear-gradient(135deg, #050505, #090711 48%, #050505);
  }

  #welcome.login-screen {
    min-height: calc(100vh - 48px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    gap: 18px clamp(44px, 7vw, 96px);
    padding: clamp(44px, 6vw, 82px);
  }

  #welcome .login-card {
    grid-column: 1;
    grid-row: 1 / span 2;
    transform: none;
    text-align: left;
  }

  #welcome .login-logo {
    width: min(42vw, 430px);
    margin: 0;
    filter: drop-shadow(0 28px 70px rgba(184, 92, 245, 0.26));
  }

  #welcome .login-card p {
    margin-top: 18px;
    max-width: 440px;
    font-size: clamp(18px, 1.8vw, 25px);
    line-height: 1.35;
  }

  #welcome .returning-user-card {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    max-width: 420px;
    justify-self: stretch;
  }

  #welcome .auth-stack {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    width: min(100%, 420px);
  }

  #welcome .auth-button,
  #welcome .returning-user-card {
    border-radius: 16px;
  }

  .app-shell {
    width: min(100%, 1480px);
    height: calc(100vh - 48px);
    min-height: 720px;
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.045), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.035)),
      #050505;
  }

  #app.phone-app {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: 260px minmax(460px, 1fr) 220px;
    gap: 0;
    padding-bottom: 0;
  }

  #app.hidden {
    display: none !important;
  }

  .topbar,
  .bottom-nav {
    display: none;
  }

  .desktop-sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
    min-height: 100%;
    max-height: 100%;
    padding: 24px;
    background: rgba(7, 6, 10, 0.72);
    backdrop-filter: blur(22px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(240, 196, 107, 0.34) transparent;
  }

  .desktop-left-nav {
    grid-column: 3;
    grid-row: 1;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .content-panels {
    grid-column: 2;
    grid-row: 1;
  }

  .desktop-context-panel {
    grid-column: 1;
    grid-row: 1;
  }

  .desktop-brand {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
  }

  .desktop-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
  }

  .desktop-brand span {
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 24px;
    letter-spacing: 0.18em;
  }

  .desktop-left-nav nav {
    display: grid;
    gap: 8px;
  }

  .desktop-left-nav button,
  .desktop-settings-link,
  .desktop-mini-stack button,
  .suggested-profile-list button,
  .desktop-music-rail button {
    min-height: 46px;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(255, 247, 234, 0.72);
    background: transparent;
    padding: 0 12px;
    text-align: left;
  }

  .desktop-left-nav button i,
  .desktop-settings-link i {
    color: var(--gold);
    font-style: normal;
    font-size: 20px;
  }

  .desktop-left-nav button.active {
    color: var(--ink);
    border-color: rgba(240, 196, 107, 0.24);
    background: linear-gradient(135deg, rgba(240, 196, 107, 0.14), rgba(184, 92, 245, 0.1));
  }

  .content-panels {
    height: 100%;
    overflow-y: auto;
    padding: 28px clamp(24px, 3vw, 42px);
    scrollbar-width: thin;
    scrollbar-color: rgba(240, 196, 107, 0.38) transparent;
  }

  .screen.active {
    width: min(100%, 920px);
    margin: 0 auto;
  }

  .screen-title-row {
    min-height: 50px;
    margin-bottom: 18px;
  }

  .screen-title-row h2 {
    font-size: 24px;
  }

  .home-identity,
  .hub-actions,
  .section-header,
  .community-search,
  .community-composer,
  .feed-list,
  .music-editor-tool-card,
  .playlist-list,
  .tools-shell,
  .social-profile-card,
  .profile-gallery,
  .note-detail-card,
  .tempo-card,
  .photo-enhancer-card {
    max-width: none;
  }

  .hub-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .desktop-home-feed-shell {
    display: grid;
    gap: 14px;
  }

  .mobile-home-dashboard {
    display: none;
  }

  [data-screen="home"].active {
    width: min(100%, 760px);
  }

  .hub-actions button {
    min-height: 110px;
    border-radius: 18px;
  }

  .music-shelf,
  .playlist-shelf {
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    gap: 14px;
  }

  [data-screen="community"].active,
  [data-screen="public-profile"].active {
    width: min(100%, 720px);
  }

  .community-search {
    position: sticky;
    top: -28px;
    z-index: 8;
    padding-top: 4px;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.96), rgba(5, 5, 5, 0.74), transparent);
  }

  .community-composer {
    margin-bottom: 24px;
    border-radius: 20px;
  }

  .instagram-post {
    border-radius: 20px;
  }

  .post-card header {
    padding: 14px 16px;
  }

  .post-media-frame.image {
    max-height: 78vh;
  }

  .post-media-frame.image .post-media {
    object-fit: contain;
  }

  .connect-video-frame,
  .post-media-frame.video .post-media {
    min-height: min(78vh, 760px);
    max-height: min(85vh, 840px);
  }

  [data-screen="music"].active {
    width: min(100%, 1040px);
  }

  .playlist-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #music-category-view:not(.hidden) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .music-embed-grid,
  .embed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  [data-screen="tools"].active {
    width: 100%;
  }

  .tools-main-panel {
    padding: 24px;
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .tool-card {
    min-height: 190px;
    border-radius: 18px;
  }

  [data-screen="profile"].active {
    width: min(100%, 980px);
  }

  .own-profile-card,
  .social-profile-card {
    padding: 24px;
    border-radius: 22px;
  }

  .social-profile-header {
    grid-template-columns: 128px 1fr;
    gap: 24px;
  }

  .social-profile-header > img {
    width: 128px;
    height: 128px;
  }

  .social-profile-header .profile-card-logo {
    width: 40px;
    height: 40px;
  }

  .social-stats {
    max-width: 520px;
  }

  .profile-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .social-list {
    display: grid;
    gap: 10px;
  }

  .social-list-row {
    min-height: 66px;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.045);
    padding: 10px;
    text-align: left;
  }

  .social-list-row img {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    object-fit: cover;
  }

  .social-list-row strong,
  .social-list-row small {
    display: block;
  }

  .social-list-row small {
    color: var(--muted);
    margin-top: 3px;
  }

  .desktop-context-panel {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .desktop-context {
    display: none;
    gap: 14px;
  }

  .desktop-context.active {
    display: grid;
  }

  .desktop-context h3 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
  }

  .desktop-context h3:not(:first-of-type) {
    margin-top: 8px;
  }

  .desktop-mini-stack,
  .suggested-profile-list,
  .desktop-music-rail {
    display: grid;
    gap: 10px;
  }

  .desktop-mini-stack button {
    grid-template-columns: 1fr;
    min-height: 72px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.045);
  }

  .desktop-mini-stack strong,
  .suggested-profile-list strong,
  .desktop-music-rail strong {
    display: block;
    color: var(--ink);
  }

  .desktop-mini-stack small,
  .suggested-profile-list small,
  .desktop-music-rail small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
  }

  .suggested-profile-list button,
  .desktop-music-rail button {
    grid-template-columns: 44px 1fr;
    min-height: 64px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
  }

  .suggested-profile-list img,
  .desktop-music-rail img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
  }

  .desktop-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .desktop-stat-grid article {
    min-height: 76px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
  }

  .desktop-stat-grid strong,
  .desktop-stat-grid span {
    display: block;
  }

  .desktop-stat-grid strong {
    color: var(--gold);
    font-size: 20px;
  }

  .desktop-stat-grid span {
    color: var(--muted);
    font-size: 12px;
  }

  .floating-create {
    right: calc(24px + 318px + 22px);
    bottom: 34px;
  }

  .toast-stack {
    bottom: 30px;
  }
}

@media (min-width: 1440px) {
  #app.phone-app {
    grid-template-columns: 320px minmax(0, 1fr) 260px;
  }

  .screen.active {
    width: min(100%, 1040px);
  }

  [data-screen="community"].active {
    width: min(100%, 760px);
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .playlist-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* HUBRA 2026 visual layer: premium, lighter, more native-app and ultra-tech. */
:root {
  --bg: #050507;
  --panel: #17171b;
  --panel-soft: #222127;
  --surface-tech: rgba(31, 30, 36, 0.82);
  --surface-tech-strong: rgba(42, 40, 48, 0.92);
  --line: rgba(255, 255, 255, 0.115);
  --line-gold: rgba(240, 196, 107, 0.26);
  --line-purple: rgba(183, 92, 246, 0.26);
  --mint-tech: #73ffd1;
  --purple-electric: #9d5cff;
  --radius-tech: 22px;
  --radius-tight: 15px;
  --shadow-soft: 0 22px 70px rgba(0, 0, 0, 0.42);
  --shadow-glass: 0 20px 60px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.075);
  --shadow-gold: 0 18px 52px rgba(240, 196, 107, 0.18);
}

body {
  background:
    radial-gradient(circle at 12% -4%, rgba(157, 92, 255, 0.26), transparent 34%),
    radial-gradient(circle at 92% 2%, rgba(240, 196, 107, 0.12), transparent 28%),
    linear-gradient(180deg, #050507, #101014 52%, #050507);
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.58;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(157, 92, 255, 0.09), transparent 42%);
  background-size: 42px 42px, 42px 42px, 100% 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.28) 76%, transparent);
}

.phone-app,
.content-panels,
.desktop-sidebar,
.bottom-nav,
.floating-create,
.toast-stack {
  position: relative;
  z-index: 1;
}

.screen.active {
  animation: techScreenIn 260ms var(--ease-premium) both;
}

@keyframes techScreenIn {
  from { opacity: 0; transform: translateY(12px) scale(0.992); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.screen-title-row {
  min-height: 54px;
  padding: 2px 0 10px;
}

.screen-title-row h2 {
  color: rgba(255, 247, 234, 0.96);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-transform: none;
}

.screen-title-row h2::after,
.profile-title-row h2::after {
  height: 2px;
  width: 30px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--mint-tech), var(--gold), transparent);
  box-shadow: 0 0 18px rgba(115, 255, 209, 0.3);
}

.glass,
.returning-user-card,
.home-hero,
.cairo-home-card,
.academy-hero-card,
.cairo-hero-promo,
.feature-panel,
.profile-panel,
.profile-menu,
.own-profile-card,
.social-profile-card,
.community-composer,
.post-card,
.playlist-card,
.playlist-row,
.music-category-card,
.music-education-card,
.music-embed-card,
.course-card,
.course-row,
.event-list-card,
.note-detail-card,
.notes-workspace,
.tempo-card,
.photo-enhancer-card,
.music-editor-tool-card,
.tools-main-panel,
.tool-card,
.admin-card,
.event-create-form,
.event-detail-card,
.desktop-sidebar,
.desktop-mini-stack button,
.desktop-music-rail button,
.desktop-stat-grid article,
.mini-list article,
.news-list article {
  border: 1px solid rgba(255, 255, 255, 0.105);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.032)),
    radial-gradient(circle at 8% 0%, rgba(157, 92, 255, 0.12), transparent 34%),
    rgba(22, 22, 27, 0.84);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(22px) saturate(1.12);
}

.community-composer,
.post-card,
.profile-panel,
.profile-menu,
.own-profile-card,
.social-profile-card,
.notes-workspace,
.tempo-card,
.photo-enhancer-card,
.music-editor-tool-card,
.tools-main-panel,
.event-create-form,
.event-detail-card {
  border-radius: var(--radius-tech);
}

.mini-list article,
.playlist-row,
.music-category-card,
.course-row,
.event-list-card,
.news-list article,
.desktop-mini-stack button,
.desktop-music-rail button {
  border-radius: var(--radius-tight);
}

input,
textarea,
select,
.rich-note-body,
.community-search label,
.composer-bar textarea,
.event-create-form input,
.event-create-form textarea,
.note-editor input,
.notes-toolbar input,
.email-form input {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  color: rgba(255, 247, 234, 0.94);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.026)),
    rgba(0, 0, 0, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

input:focus,
textarea:focus,
select:focus,
.rich-note-body:focus,
.community-search label:focus-within,
.composer-bar textarea:focus {
  border-color: rgba(115, 255, 209, 0.38) !important;
  box-shadow:
    0 0 0 3px rgba(115, 255, 209, 0.065),
    0 0 28px rgba(157, 92, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

.gold-button,
.primary,
.notification-composer button,
.publish-button,
.event-save-button,
.note-footer .gold-button,
.photo-actions .gold-button,
.tempo-controls .gold-button {
  border: 0;
  border-radius: 999px;
  color: #120d04;
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.58), transparent 28%),
    linear-gradient(135deg, #ffe9ac 0%, #f2c362 42%, #b77827 100%);
  box-shadow: 0 14px 36px rgba(240, 196, 107, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.ghost-button,
.outline,
.composer-action-pill,
.note-attachments label,
.event-owner-actions button,
.filter-pills button,
.auth-button.glass {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 247, 234, 0.84);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.icon-ghost {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bottom-nav {
  left: 50%;
  right: auto;
  bottom: 10px;
  width: min(calc(100% - 24px), 406px);
  height: 78px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(31, 31, 36, 0.88), rgba(6, 6, 9, 0.94)),
    rgba(0, 0, 0, 0.68);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(26px) saturate(1.16);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}

.bottom-nav button {
  border-radius: 18px;
  color: rgba(255, 247, 234, 0.56);
}

.bottom-nav button.active {
  color: var(--gold);
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 196, 107, 0.24), transparent 44%),
    linear-gradient(180deg, rgba(240, 196, 107, 0.12), rgba(157, 92, 255, 0.1));
  box-shadow: inset 0 0 0 1px rgba(240, 196, 107, 0.16), 0 16px 34px rgba(0, 0, 0, 0.24);
}

.bottom-nav button[data-nav="community"] {
  background:
    radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.46), transparent 28%),
    linear-gradient(135deg, #ffe8a3, #f2bd53 52%, #8b4bff);
  color: #110d08;
  box-shadow: 0 14px 38px rgba(240, 196, 107, 0.26), 0 0 32px rgba(157, 92, 255, 0.18);
}

.floating-create {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.58), transparent 30%),
    conic-gradient(from 210deg, #8a37ff, #2b0a42, #f3c35e, #8a37ff);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 30px rgba(157, 92, 255, 0.3);
}

.floating-create::before {
  font-size: 33px;
  color: #fff5d9;
}

.community-search label {
  min-height: 54px;
  border-radius: 999px !important;
  padding: 0 17px;
}

.community-composer {
  padding: 14px;
}

.composer-bar {
  align-items: start;
}

.composer-bar img,
.post-author-photo img,
.post-card header img,
.social-profile-header > img,
.own-profile-card > img {
  border: 1px solid rgba(240, 196, 107, 0.26);
  box-shadow: 0 0 0 3px rgba(157, 92, 255, 0.08);
}

.composer-bar textarea {
  min-height: 52px;
  padding: 15px 16px;
  font-size: 16px;
}

.composer-actions {
  gap: 9px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.composer-action-pill {
  min-height: 42px;
  padding: 0 14px;
}

.post-card {
  overflow: hidden;
  margin-bottom: 18px;
}

.post-card header {
  padding: 14px;
}

.post-card header strong {
  letter-spacing: -0.015em;
}

.post-media-frame,
.post-media-frame.image,
.post-media-frame.video {
  background: #050507;
}

.post-media {
  opacity: 0;
  animation: mediaReveal 360ms var(--ease-premium) forwards;
}

@keyframes mediaReveal {
  from { opacity: 0; transform: scale(1.012); filter: blur(10px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

.post-card footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
}

.post-card footer button {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.post-card footer button.active {
  color: var(--coral);
  background: rgba(255, 121, 114, 0.1);
}

.playlist-card small,
.music-category-card small,
.tool-card small,
.course-card small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.playlist-card,
.music-category-card {
  min-height: 270px;
}

.playlist-card img,
.music-category-card img {
  filter: saturate(1.08) contrast(1.04);
}

.hub-actions button {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hub-actions i {
  color: var(--gold);
}

.post-actions-menu summary {
  background: rgba(255, 255, 255, 0.04);
}

.post-actions {
  border-radius: 16px;
  background: rgba(26, 25, 31, 0.96);
}

.tool-card {
  min-height: 168px;
  overflow: hidden;
}

.tool-card::before,
.playlist-card::before,
.music-category-card::before,
.event-list-card::before,
.mini-list article::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 22%, transparent 74%, rgba(240, 196, 107, 0.08)),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
}

.tool-card,
.playlist-card,
.music-category-card,
.event-list-card,
.mini-list article {
  position: relative;
}

.tool-card > *,
.playlist-card > *,
.music-category-card > *,
.event-list-card > *,
.mini-list article > * {
  position: relative;
  z-index: 1;
}

.tool-card i,
.hub-actions i,
.mini-list i {
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.38), transparent 28%),
    linear-gradient(135deg, rgba(157, 92, 255, 0.34), rgba(240, 196, 107, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 28px rgba(0, 0, 0, 0.24);
}

.profile-menu button,
.desktop-left-nav button,
.desktop-settings-link,
.settings-row,
.social-list-row {
  min-height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0;
  background: transparent;
}

.profile-menu button::after,
.desktop-mini-stack button::after,
.desktop-music-rail button::after {
  content: "›";
  color: rgba(255, 247, 234, 0.36);
  font-size: 22px;
}

.notes-workspace {
  padding: 16px;
}

.note-switches {
  align-items: stretch;
}

.note-switches label {
  flex: 1 1 150px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.attachment-chip,
.note-list-row {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tempo-card.metronome-pro {
  background:
    radial-gradient(circle at 50% 8%, rgba(115, 255, 209, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(38, 36, 43, 0.96), rgba(12, 12, 16, 0.98));
}

.metronome-display {
  border-color: rgba(115, 255, 209, 0.18);
  background:
    linear-gradient(rgba(115, 255, 209, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 255, 209, 0.025) 1px, transparent 1px),
    rgba(0, 0, 0, 0.28);
  background-size: 24px 24px;
}

.metronome-bpm-line strong,
.metronome-meter,
.metronome-subdivision {
  color: #66f7ff;
  text-shadow: 0 0 18px rgba(102, 247, 255, 0.24);
}

@media (min-width: 1024px) {
  .app-shell {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.04)),
      #050507;
  }

  .desktop-sidebar {
    background:
      linear-gradient(180deg, rgba(28, 28, 34, 0.82), rgba(8, 8, 11, 0.82)),
      rgba(0, 0, 0, 0.58);
  }

  .content-panels {
    background:
      radial-gradient(circle at 50% 0%, rgba(157, 92, 255, 0.08), transparent 34%),
      transparent;
  }
}

@media (max-width: 1023px) {
  .bottom-nav {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    border-radius: 26px !important;
  }

  .hub-actions button {
    min-height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

/* Premium Photo Editor redesign. */
[data-screen="tool-photo-enhancer"].active {
  padding-bottom: 18px;
}

.photo-studio {
  min-height: calc(100vh - 140px);
  display: grid;
}

.photo-native-input {
  position: fixed;
  inset: auto;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-entry-screen,
.photo-selector-screen,
.photo-editor-screen {
  min-height: calc(100vh - 150px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 54%, rgba(157, 92, 255, 0.23), transparent 32%),
    radial-gradient(circle at 50% 60%, rgba(240, 196, 107, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(18, 17, 24, 0.86), rgba(5, 5, 7, 0.96));
  overflow: hidden;
}

.photo-entry-screen {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 34px 20px;
  text-align: center;
}

.photo-entry-screen > img {
  width: 154px;
  height: 154px;
  object-fit: contain;
  margin-bottom: 4px;
}

.photo-entry-screen > p {
  margin: -18px 0 34px;
  color: rgba(255, 247, 234, 0.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.photo-orb-button {
  width: 184px;
  height: 184px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px solid rgba(255, 234, 172, 0.78);
  border-radius: 999px;
  color: #ffe6a6;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.08), transparent 38%),
    radial-gradient(circle at 55% 55%, rgba(157, 92, 255, 0.28), transparent 58%),
    rgba(0, 0, 0, 0.42);
  box-shadow:
    0 0 0 1px rgba(178, 77, 255, 0.28),
    0 0 42px rgba(157, 92, 255, 0.44),
    0 0 34px rgba(240, 196, 107, 0.22),
    inset 0 0 38px rgba(255, 255, 255, 0.045);
}

.photo-orb-button i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 14px;
  font-size: 26px;
  font-style: normal;
}

.photo-orb-button span {
  font-size: 15px;
  font-weight: 950;
  text-transform: uppercase;
}

.photo-entry-actions {
  width: min(100%, 310px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.photo-entry-actions button,
.photo-selector-tabs button,
.photo-flow-top button,
.photo-editor-top button {
  border: 0;
  color: rgba(255, 247, 234, 0.88);
  background: transparent;
}

.photo-entry-actions button {
  display: grid;
  place-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
}

.photo-entry-actions i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 196, 107, 0.25);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.035);
  font-style: normal;
  font-size: 19px;
}

.photo-selector-screen {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 16px;
}

.photo-flow-top,
.photo-editor-top {
  min-height: 44px;
  display: grid;
  grid-template-columns: 42px 1fr 72px;
  align-items: center;
  gap: 8px;
}

.photo-flow-top strong,
.photo-editor-top span {
  color: rgba(255, 247, 234, 0.96);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.photo-flow-top button:last-child,
.photo-editor-top button:last-child {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.photo-album-pill {
  width: max-content;
  justify-self: center;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 247, 234, 0.84);
  background: rgba(255, 255, 255, 0.055);
  padding: 0 14px;
  font-size: 12px;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  overflow-y: auto;
  padding-bottom: 8px;
}

.photo-gallery-grid button {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
}

.photo-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-selector-tabs {
  width: min(100%, 240px);
  justify-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
}

.photo-selector-tabs button {
  min-height: 38px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.photo-selector-tabs .active {
  color: var(--gold);
  background: rgba(240, 196, 107, 0.09);
  box-shadow: inset 0 0 0 1px rgba(240, 196, 107, 0.26);
}

.photo-editor-screen {
  position: relative;
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr) 136px 64px;
  height: min(820px, calc(100vh - 110px));
  min-height: 640px;
  background: #050507;
}

.photo-editor-top {
  z-index: 4;
  padding: 10px 12px 6px;
}

.photo-editor-canvas {
  position: relative;
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 50% 0%, rgba(157, 92, 255, 0.14), transparent 44%),
    #050507;
  padding: 10px;
}

.photo-preview-frame {
  width: min(100%, calc(100% * var(--photo-aspect, 1)));
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  aspect-ratio: var(--photo-aspect, auto);
  background-color: #050507;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain !important;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.photo-editor-canvas img {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.photo-editor-canvas canvas {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.photo-editor-canvas[data-photo-orientation="portrait"] .photo-preview-frame {
  width: auto !important;
  height: 100% !important;
  aspect-ratio: var(--photo-aspect) !important;
  background-size: contain !important;
}

.photo-editor-canvas[data-photo-orientation="landscape"] .photo-preview-frame {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: var(--photo-aspect) !important;
  background-size: contain !important;
}

.photo-editor-canvas[data-photo-orientation="square"] .photo-preview-frame {
  width: min(100%, 560px) !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  background-size: contain !important;
}

.photo-editor-canvas[data-ratio]:not([data-ratio="auto"]) .photo-preview-frame {
  max-width: 100% !important;
  max-height: 100% !important;
}

.photo-editor-canvas[data-ratio]:not([data-ratio="auto"])::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(76%, 420px);
  max-width: calc(100% - 34px);
  max-height: calc(100% - 34px);
  aspect-ratio: var(--photo-crop-ratio);
  border: 1px solid rgba(241, 198, 108, 0.86);
  border-radius: 18px;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 999px rgba(5, 5, 7, 0.18),
    0 0 28px rgba(157, 92, 255, 0.2);
  pointer-events: none;
}

.photo-tool-panel {
  height: 136px;
  min-height: 136px;
  overflow: hidden auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(180deg, rgba(20, 18, 24, 0.96), rgba(5, 5, 7, 0.98));
  padding: 14px 12px;
  overscroll-behavior: contain;
}

.photo-filter-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 66px;
  gap: 11px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.photo-filter-strip button {
  display: grid;
  gap: 7px;
  border: 0;
  color: rgba(255, 247, 234, 0.72);
  background: transparent;
  padding: 0;
  font-size: 11px;
}

.photo-filter-strip img {
  width: 66px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  object-fit: cover;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.photo-filter-strip [data-photo-preset="clarendon"] img { filter: contrast(1.18) saturate(1.2) brightness(1.06) hue-rotate(-3deg); }
.photo-filter-strip [data-photo-preset="juno"] img { filter: contrast(1.13) saturate(1.28) brightness(1.04) sepia(0.08); }
.photo-filter-strip [data-photo-preset="lark"] img { filter: contrast(1.05) saturate(1.14) brightness(1.12) hue-rotate(-8deg); }
.photo-filter-strip [data-photo-preset="gingham"] img { filter: contrast(0.92) saturate(0.88) brightness(1.1) sepia(0.16); }
.photo-filter-strip [data-photo-preset="valencia"] img { filter: contrast(1.07) saturate(1.1) brightness(1.08) sepia(0.22); }
.photo-filter-strip [data-photo-preset="lofi"] img { filter: contrast(1.32) saturate(1.26) brightness(0.98); }
.photo-filter-strip [data-photo-preset="aden"] img { filter: contrast(0.96) saturate(1.04) brightness(1.14) sepia(0.14); }
.photo-filter-strip [data-photo-preset="sierra"] img { filter: contrast(1.04) saturate(0.94) brightness(1.08) sepia(0.2); }
.photo-filter-strip [data-photo-preset="vivid"] img { filter: contrast(1.18) saturate(1.34) brightness(1.05); }
.photo-filter-strip [data-photo-preset="noir"] img { filter: grayscale(1) contrast(1.38) brightness(0.96); }
.photo-filter-strip [data-photo-preset="cinematic"] img { filter: contrast(1.3) saturate(1.12) brightness(0.96) hue-rotate(-10deg); }
.photo-filter-strip [data-photo-preset="stageGold"] img { filter: contrast(1.2) saturate(1.22) brightness(1.08) sepia(0.28); }

.photo-filter-strip .active img {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(240, 196, 107, 0.32), 0 0 20px rgba(240, 196, 107, 0.14);
  transform: translateY(-2px);
}

.photo-filter-strip .active span {
  color: var(--gold);
}

.photo-tool-panel label {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 31px;
  color: rgba(255, 247, 234, 0.82);
  font-size: 12px;
  font-weight: 750;
}

.photo-tool-panel input[type="range"] {
  accent-color: var(--gold);
}

.beauty-tool-row,
.photo-ratio-grid,
.photo-share-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.photo-ratio-grid .active,
.photo-share-grid .active {
  color: var(--gold);
  border-color: rgba(240, 196, 107, 0.42);
  background: rgba(240, 196, 107, 0.1);
}

.beauty-tool-row button,
.photo-ratio-grid button,
.photo-share-grid button {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 58px;
  border: 1px solid rgba(240, 196, 107, 0.16);
  border-radius: 16px;
  color: rgba(255, 247, 234, 0.78);
  background: rgba(255, 255, 255, 0.035);
  font-size: 10px;
  font-weight: 800;
}

.beauty-tool-row i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 196, 107, 0.24);
  border-radius: 999px;
  color: var(--gold);
  font-style: normal;
}

.beauty-tool-row .active,
.photo-ratio-grid button:hover,
.photo-share-grid button:hover {
  color: var(--gold);
  border-color: rgba(240, 196, 107, 0.36);
  background: rgba(240, 196, 107, 0.08);
}

.beauty-intensity {
  margin-top: 18px;
  grid-template-columns: 86px 1fr !important;
}

.photo-ratio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-share-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
}

.photo-share-grid button {
  min-height: 74px;
  border: 0;
  background: transparent;
  font-size: 10px;
}

.photo-share-grid button i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-style: normal;
  font-size: 21px;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.photo-share-grid button i svg {
  width: 25px;
  height: 25px;
  display: block;
}

.photo-share-grid button span {
  color: rgba(255, 247, 234, 0.72);
  font-size: 10px;
  font-weight: 800;
}

.photo-share-save i {
  color: #1a1204 !important;
  background: linear-gradient(135deg, #fff4c8, #f0c46b 58%, #bd7c28);
}

.photo-share-hubra i {
  background:
    radial-gradient(circle at 35% 25%, #fff4c8, transparent 24%),
    conic-gradient(from 220deg, #8e2bff, #d94cff, #f0c46b, #6d24f2, #8e2bff);
}

.photo-share-instagram i {
  background:
    radial-gradient(circle at 72% 24%, #ffd66b 0 9%, transparent 10%),
    radial-gradient(circle at 32% 100%, #feda75 0 13%, transparent 36%),
    linear-gradient(135deg, #405de6 0%, #833ab4 25%, #c13584 52%, #e1306c 72%, #fd1d1d 88%, #fcb045 100%);
}

.photo-share-facebook i {
  background: #1877f2;
}

.photo-share-whatsapp i {
  background: #25d366;
}

.photo-share-more i {
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 247, 234, 0.9) !important;
}

.photo-editor-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 64px;
  min-height: 64px;
  padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
  background: rgba(5, 5, 7, 0.98);
}

.photo-editor-nav button {
  display: grid;
  place-items: center;
  gap: 3px;
  border: 0;
  color: rgba(255, 247, 234, 0.48);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.photo-editor-nav i {
  color: inherit;
  font-style: normal;
  font-size: 19px;
}

.photo-editor-nav .active {
  color: var(--gold);
}

@media (min-width: 1024px) {
  [data-screen="tool-photo-enhancer"].active {
    width: min(100%, 760px);
  }

  .photo-entry-screen,
  .photo-selector-screen,
  .photo-editor-screen {
    height: 760px;
    min-height: 760px;
  }
}

@media (max-width: 430px) {
  [data-screen="tool-photo-enhancer"].active {
    margin-left: -18px;
    margin-right: -18px;
  }

  .photo-entry-screen,
  .photo-selector-screen,
  .photo-editor-screen {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .photo-editor-screen {
    height: calc(100vh - 92px);
    min-height: 620px;
    grid-template-rows: 50px minmax(0, 1fr) 132px 62px;
  }

  .photo-tool-panel {
    height: 132px;
    min-height: 132px;
  }
}

.hub-actions button {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Stabilization pass after the tech redesign. */
.screen-title-row {
  position: relative;
  padding-top: 18px;
}

.screen-title-row h2::before {
  content: "HUBRA";
  display: block;
  margin-bottom: 3px;
  color: rgba(255, 247, 234, 0.54);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.34em;
}

.screen-title-row h2::after {
  content: "" !important;
  display: block;
  width: 30px;
  height: 2px;
  margin: 7px auto 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--gold), var(--mint-tech), transparent);
}

@media (max-width: 1023px) {
  .phone-app {
    padding-bottom: 116px;
  }

  .content-panels {
    padding-bottom: 122px;
  }

  .bottom-nav {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    z-index: 80 !important;
  }

  .floating-create {
    position: fixed !important;
    right: max(22px, calc((100vw - 430px) / 2 + 22px)) !important;
    bottom: calc(98px + env(safe-area-inset-bottom)) !important;
    z-index: 90 !important;
  }
}

.bottom-nav button[data-nav="community"] {
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 4px 2px;
}

.bottom-nav button[data-nav="community"] span {
  display: block !important;
  max-width: 100%;
  color: #211404 !important;
  font-size: 10px !important;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.bottom-nav button[data-nav="community"] i {
  width: 34px !important;
  height: 34px !important;
  border-radius: 13px !important;
  font-size: 22px !important;
}

.community-composer {
  position: relative;
}

.composer-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-right: 0;
}

.publish-button {
  position: relative;
  justify-self: end;
  align-self: center;
  min-width: 96px;
  margin-top: 8px;
}

.post-card header {
  grid-template-columns: 44px minmax(0, 1fr) 40px !important;
}

.post-actions-menu {
  display: block !important;
  z-index: 4;
}

.post-actions-menu summary {
  display: grid !important;
  width: 34px;
  height: 34px;
  color: rgba(255, 247, 234, 0.82) !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

.tool-card i {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.tool-card .tool-visual {
  border-radius: 18px;
}

.academy-course-card {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: stretch;
}

.academy-course-card > img {
  display: none;
}

.academy-course-media {
  min-height: 132px;
  overflow: hidden;
  border-radius: 16px;
}

.academy-course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.academy-course-body {
  min-width: 0;
  display: grid;
  gap: 7px;
  align-content: center;
}

.academy-course-body p,
.academy-course-body small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.academy-course-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.event-course-card {
  grid-template-columns: minmax(132px, 0.34fr) minmax(0, 1fr);
  min-height: 156px;
}

.event-course-card .academy-course-media {
  min-height: 156px;
}

.event-course-card .academy-course-body strong {
  font-size: 20px;
  line-height: 1.12;
}

.event-course-card .academy-course-body span {
  color: var(--gold);
  font-weight: 900;
}

.event-course-card .course-link-button {
  width: fit-content;
  min-width: 160px;
  justify-content: center;
}

.content-visual-card {
  display: grid;
  grid-template-columns: minmax(148px, 0.5fr) minmax(0, 0.5fr);
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(0, 0, 0, 0.2);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.content-visual-media {
  min-height: 220px;
  overflow: hidden;
}

.content-visual-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.content-visual-body {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
}

.content-visual-body strong {
  color: var(--ink);
  font-size: clamp(20px, 3.4vw, 28px);
  line-height: 1.05;
}

.content-visual-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 247, 234, 0.78);
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.content-visual-body span {
  color: var(--gold);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
}

.content-visual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.content-visual-actions button {
  min-height: 34px;
  border: 1px solid rgba(240, 196, 107, 0.24);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(240, 196, 107, 0.06);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

.content-visual-card-preview {
  min-height: 190px;
}

.content-visual-card-preview .content-visual-media {
  min-height: 190px;
}

.content-visual-card-preview .content-visual-body strong {
  font-size: 22px;
}

@media (max-width: 620px) {
  .content-visual-card {
    grid-template-columns: 1fr 1fr;
    min-height: 190px;
    border-radius: 18px;
  }

  .content-visual-media {
    min-height: 190px;
  }

  .content-visual-body {
    gap: 8px;
    padding: 13px;
  }

  .content-visual-body strong {
    font-size: 18px;
  }

  .content-visual-body p {
    font-size: 12px;
    -webkit-line-clamp: 4;
  }

  .content-visual-body span {
    font-size: 12px;
  }
}

.academy-course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bottom-nav button.active[data-nav="community"] span,
.bottom-nav button[data-nav="community"] span {
  color: #211404 !important;
  text-shadow: none !important;
}

/* Connect composer refinement. */
.community-composer {
  gap: 12px;
}

.composer-actions {
  display: grid !important;
  grid-template-columns: repeat(3, 44px) minmax(92px, 1fr) !important;
  align-items: center;
  gap: 8px !important;
}

.composer-action-pill {
  width: 44px;
  min-width: 44px !important;
  height: 38px;
  min-height: 38px !important;
  padding: 0 !important;
  border-radius: 999px !important;
}

.composer-action-pill span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.composer-action-pill i {
  font-size: 16px !important;
}

.publish-button {
  width: 100%;
  min-width: 0;
  min-height: 38px !important;
  margin-top: 0 !important;
  padding: 0 14px !important;
  justify-self: stretch !important;
  font-size: 12px !important;
}

.composer-expanded {
  gap: 10px;
}

.composer-bar textarea {
  min-height: 48px;
}

.connect-video-frame {
  min-height: clamp(320px, 54vh, 520px) !important;
  max-height: 58vh !important;
  margin: 0 8px 8px !important;
  cursor: pointer;
}

.post-media-frame.video .post-media {
  min-height: clamp(320px, 54vh, 520px) !important;
  max-height: 58vh !important;
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(18px);
}

.video-lightbox video {
  width: min(100%, 520px);
  max-height: 88vh;
  border-radius: 22px;
  object-fit: contain;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

.video-lightbox-close {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top));
  right: 18px;
  z-index: 141;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 26px;
}

.post-actions-menu {
  visibility: visible !important;
  opacity: 1 !important;
}

.post-actions-menu summary {
  font-size: 24px !important;
}

.post-card header {
  min-width: 0;
}

.post-author-copy {
  min-width: 0;
}

.post-author-copy strong,
.post-author-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .phone-app {
    padding-bottom: 96px !important;
  }

  .content-panels {
    padding-bottom: 96px !important;
  }

  .bottom-nav {
    width: auto !important;
    max-width: min(430px, calc(100vw - 24px)) !important;
    left: 12px !important;
    right: 12px !important;
    transform: none !important;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom)) !important;
    gap: 2px !important;
  }

  .bottom-nav button {
    min-width: 0 !important;
    overflow: hidden;
    font-size: 10px !important;
  }

  .bottom-nav button[data-nav="community"] {
    transform: translateY(-2px) !important;
  }

  .bottom-nav button[data-nav="community"] i {
    width: 32px !important;
    height: 32px !important;
    font-size: 21px !important;
  }

  [data-screen="community"].active .feed-list {
    width: calc(100% + 36px);
    margin-left: -18px;
    margin-right: -18px;
  }

  [data-screen="community"].active .community-composer {
    width: calc(100% + 36px);
    margin-left: -18px;
    margin-right: -18px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  [data-screen="community"].active .post-card {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  [data-screen="community"].active .post-media-frame,
  [data-screen="community"].active .connect-video-frame,
  [data-screen="community"].active .post-media-grid {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
  }

  [data-screen="community"].active .post-media-frame.image,
  [data-screen="community"].active .post-media-frame.video {
    border-radius: 0 !important;
  }

  [data-screen="community"].active .post-media {
    border-radius: 0 !important;
  }

  [data-screen="community"].active .connect-video-frame {
    min-height: auto !important;
    height: min(118vw, 640px) !important;
    max-height: 82vh !important;
    aspect-ratio: 5 / 6 !important;
  }

  [data-screen="community"].active .post-media-frame.video .post-media {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover !important;
  }
}

@media (max-width: 374px) {
  .composer-actions {
    grid-template-columns: repeat(3, 40px) minmax(78px, 1fr) !important;
    gap: 6px !important;
  }

  .composer-action-pill {
    width: 40px;
    min-width: 40px !important;
  }

  .publish-button {
    padding: 0 10px !important;
  }
}

/* Compact home playlist cards and full-width reels. */
#playlist-shelf .playlist-card,
.playlist-shelf .playlist-card {
  min-height: 218px !important;
  max-height: 238px;
  padding-bottom: 10px;
}

#playlist-shelf .playlist-card img,
.playlist-shelf .playlist-card img {
  aspect-ratio: 1 / 0.82 !important;
  max-height: 128px;
}

#playlist-shelf .playlist-card strong,
.playlist-shelf .playlist-card strong {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.1;
}

#playlist-shelf .playlist-card span,
.playlist-shelf .playlist-card span {
  min-height: 0 !important;
  display: -webkit-box !important;
  overflow: hidden !important;
  padding: 0 8px;
  color: rgba(255, 247, 234, 0.64);
  font-size: 11px;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3 !important;
}

#playlist-shelf .playlist-card span::after,
.playlist-shelf .playlist-card span::after {
  content: "";
}

.post-card .post-media-frame.video,
.post-card .connect-video-frame {
  width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.post-card .connect-video-frame {
  min-height: clamp(300px, 52vh, 500px) !important;
  max-height: 56vh !important;
}

.post-card .post-media-frame.video .post-media {
  width: 100% !important;
  min-height: clamp(300px, 52vh, 500px) !important;
  max-height: 56vh !important;
  object-fit: cover !important;
}

.media-openable {
  position: relative;
  cursor: pointer;
}

.media-openable:hover .media-open-cue {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.media-open-cue {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 247, 234, 0.92);
  background: rgba(8, 8, 12, 0.52);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  opacity: 0.72;
  transform: translateY(-2px) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
  pointer-events: none;
}

.video-lightbox {
  cursor: default;
}

.media-viewer-sheet {
  position: relative;
  width: min(100%, 620px);
  max-height: 92vh;
  display: grid;
  place-items: center;
  touch-action: none;
  transition: transform 180ms ease;
}

.video-lightbox img,
.media-viewer-sheet img {
  width: 100%;
  max-height: 86vh;
  border-radius: 24px;
  object-fit: contain;
  background: #050507;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

.media-viewer-hint {
  margin-top: 12px;
  color: rgba(255, 247, 234, 0.54);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-align: center;
}

/* Visual content cards for Music, Courses and News. */
#music-playlists.playlist-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.playlist-category-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 132px minmax(120px, 1fr);
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  text-align: left;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(13, 11, 17, 0.82);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.playlist-category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(238, 190, 98, 0.28);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.32);
}

.playlist-category-card:active {
  transform: scale(0.985);
}

.playlist-category-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.playlist-category-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 13px;
  align-content: start;
}

.playlist-category-copy strong {
  font-size: 15px;
}

.playlist-category-copy small {
  min-height: 48px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.playlist-category-copy em {
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

#courses-list,
#news-list {
  display: grid;
  gap: 12px;
}

#courses-list .academy-course-card,
#news-list .academy-course-card {
  width: 100%;
  margin: 0;
}

#courses-list .academy-course-body strong,
#news-list .academy-course-body strong {
  font-size: 15px;
}

/* Restore rich image backgrounds on the featured Cairo Andes and Academy cards. */
.cairo-home-card,
.cairo-home-card.events-card {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96), rgba(5, 5, 5, 0.62) 52%, rgba(5, 5, 5, 0.1)),
    url("./cairo-andes-stage.png") center/cover !important;
}

.academy-hero-card {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98), rgba(5, 5, 5, 0.74) 54%, rgba(5, 5, 5, 0.18)),
    url("./hero-cairo-andes.jpg") right center/cover !important;
}

@media (min-width: 1024px) {
  .desktop-quick-icons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(72px, 1fr)) !important;
    gap: 16px 14px !important;
    justify-items: center !important;
    align-items: start !important;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .desktop-quick-icons button {
    width: 76px !important;
    min-height: 88px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 56px auto !important;
    justify-items: center !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    border: 0;
    color: rgba(255, 247, 234, 0.82);
    background: transparent;
    font-size: 11px;
    font-weight: 850;
    text-align: center !important;
  }

  .desktop-quick-icons i {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    color: var(--gold);
    background:
      radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
      linear-gradient(135deg, rgba(157, 92, 255, 0.24), rgba(240, 196, 107, 0.13)),
      rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 28px rgba(0, 0, 0, 0.22);
    font-style: normal;
    font-size: 22px;
  }

  .desktop-quick-icons span {
    width: 100% !important;
    max-width: 76px !important;
    display: block !important;
    color: rgba(255, 247, 234, 0.9);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.15;
    text-align: center !important;
    white-space: normal !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
  }

  #music-playlists.playlist-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .desktop-mini-stack button,
  .desktop-music-rail button {
    grid-template-columns: 58px minmax(0, 1fr) 14px !important;
    min-height: 76px;
    padding: 8px !important;
    gap: 11px !important;
  }

  .desktop-mini-stack button > img,
  .desktop-music-rail button > img {
    width: 58px !important;
    height: 58px !important;
    border-radius: 14px !important;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  }

  .desktop-mini-stack button > span,
  .desktop-music-rail button > span {
    min-width: 0;
  }

  .desktop-mini-stack button::after,
  .desktop-music-rail button::after {
    align-self: center;
    justify-self: end;
  }

  [data-screen="community"].active,
  [data-screen="home"].active {
    width: min(100%, 820px);
  }

  [data-screen="community"].active .post-media-grid,
  [data-screen="home"].active .post-media-grid,
  .desktop-home-feed .post-media-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100% !important;
  }

  [data-screen="community"].active .post-media-frame.image,
  [data-screen="home"].active .post-media-frame.image,
  .desktop-home-feed .post-media-frame.image,
  .post-media-frame.image {
    width: min(100%, 540px) !important;
    aspect-ratio: 4 / 5 !important;
    max-height: min(76vh, 760px) !important;
    margin-inline: auto !important;
    display: grid !important;
    place-items: center !important;
    background: #050507;
    border-radius: 20px;
    overflow: hidden !important;
  }

  .post-media-frame.image.portrait {
    aspect-ratio: 4 / 5 !important;
  }

  .post-media-frame.image.square {
    aspect-ratio: 1 / 1 !important;
  }

  .post-media-frame.image.landscape {
    aspect-ratio: 4 / 5 !important;
  }

  [data-screen="community"].active .post-media-frame.image .post-media,
  [data-screen="home"].active .post-media-frame.image .post-media,
  .desktop-home-feed .post-media-frame.image .post-media,
  .post-media-frame.image .post-media {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #050507;
  }

  .post-card .connect-video-frame {
    min-height: min(64vh, 620px) !important;
    max-height: min(70vh, 700px) !important;
    background: #050507;
  }

  .post-card .post-media-frame.video .post-media {
    min-height: min(64vh, 620px) !important;
    max-height: min(70vh, 700px) !important;
    object-fit: contain !important;
    background: #050507;
  }
}

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

/* Stability pass: prevent desktop shimmer/flicker and keep mobile nav locked. */
html,
body {
  overscroll-behavior-y: none;
}

.screen.active,
.post-card,
.post-media,
.phone-app.app-enter,
.phone-app.app-enter .screen.active {
  animation: none !important;
  filter: none !important;
}

.post-media {
  opacity: 1 !important;
}

.app-shell::before {
  opacity: 0.18 !important;
  mask-image: none !important;
}

@media (min-width: 1024px) {
  .glass,
  .returning-user-card,
  .home-hero,
  .cairo-home-card,
  .academy-hero-card,
  .cairo-hero-promo,
  .feature-panel,
  .profile-panel,
  .profile-menu,
  .own-profile-card,
  .social-profile-card,
  .community-composer,
  .post-card,
  .playlist-card,
  .playlist-row,
  .music-category-card,
  .music-education-card,
  .music-embed-card,
  .course-card,
  .course-row,
  .event-list-card,
  .note-detail-card,
  .notes-workspace,
  .tempo-card,
  .photo-enhancer-card,
  .music-editor-tool-card,
  .tools-main-panel,
  .tool-card,
  .admin-card,
  .event-create-form,
  .event-detail-card,
  .desktop-sidebar,
  .desktop-mini-stack button,
  .desktop-music-rail button,
  .desktop-stat-grid article,
  .mini-list article,
  .news-list article {
    backdrop-filter: none !important;
  }

  .screen.active {
    transform: none !important;
  }
}

@media (max-width: 1023px) {
  .bottom-nav {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(18px + env(safe-area-inset-bottom)) !important;
    width: min(430px, calc(100vw - 16px)) !important;
    max-width: calc(100vw - 16px) !important;
    box-sizing: border-box !important;
    height: 78px !important;
    min-height: 78px !important;
    transform: translate3d(-50%, 0, 0) !important;
    border-radius: 24px !important;
    padding: 7px 8px 9px !important;
    overflow: hidden !important;
    contain: layout paint;
    backface-visibility: hidden;
    will-change: transform;
  }

  .bottom-nav button {
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    align-content: center !important;
  }

  .bottom-nav button[data-nav="community"] {
    transform: translateY(-1px) !important;
  }

  .content-panels {
    padding-bottom: 132px !important;
  }

  .floating-create {
    bottom: calc(112px + env(safe-area-inset-bottom)) !important;
  }

  .phone-app:has([data-screen="tool-photo-enhancer"].active) .bottom-nav,
  .phone-app:has([data-screen="tool-photo-enhancer"].active) .floating-create {
    display: none !important;
  }

  .phone-app:has([data-screen="tool-photo-enhancer"].active) .content-panels {
    padding-bottom: 0 !important;
  }
}

/* Final premium background override: replaces older tech-grid layers with
   ultra-subtle Islamic geometry, mashrabiya rhythm, gold/purple light and grain. */
body {
  background:
    radial-gradient(circle at 12% 2%, rgba(126, 51, 158, 0.2), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(240, 196, 107, 0.1), transparent 26%),
    radial-gradient(circle at 82% 84%, rgba(93, 35, 125, 0.16), transparent 32%),
    linear-gradient(180deg, #050505 0%, #08070b 44%, #050505 100%) !important;
}

body::before {
  opacity: 0.18 !important;
  background:
    repeating-linear-gradient(45deg, transparent 0 27px, rgba(240, 196, 107, 0.075) 27px 28px, transparent 28px 56px),
    repeating-linear-gradient(135deg, transparent 0 27px, rgba(166, 89, 226, 0.06) 27px 28px, transparent 28px 56px),
    radial-gradient(circle at 50% 10%, rgba(240, 196, 107, 0.06), transparent 36%) !important;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0 62%, transparent 90%) !important;
  mask-image: radial-gradient(ellipse at center, #000 0 62%, transparent 90%) !important;
}

body::after {
  opacity: 0.12 !important;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 72%, rgba(240, 196, 107, 0.18) 0 1px, transparent 1px) !important;
  background-size: 34px 34px, 53px 53px !important;
}

.app-shell {
  background:
    radial-gradient(circle at 16% 3%, rgba(240, 196, 107, 0.09), transparent 23%),
    radial-gradient(circle at 88% 16%, rgba(126, 51, 158, 0.24), transparent 30%),
    radial-gradient(circle at 50% 97%, rgba(240, 196, 107, 0.065), transparent 30%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.98), rgba(9, 7, 13, 0.98) 48%, rgba(5, 5, 5, 0.98)) !important;
}

.app-shell::before {
  position: fixed !important;
  inset: 0 !important;
  opacity: 0.24 !important;
  background:
    linear-gradient(30deg, transparent 0 47%, rgba(240, 196, 107, 0.055) 48% 49%, transparent 50%),
    linear-gradient(150deg, transparent 0 47%, rgba(157, 92, 255, 0.048) 48% 49%, transparent 50%),
    repeating-conic-gradient(from 45deg at 50% 50%, transparent 0deg 43deg, rgba(240, 196, 107, 0.045) 43deg 45deg, transparent 45deg 88deg, rgba(157, 92, 255, 0.036) 88deg 90deg) !important;
  background-size: 88px 88px, 88px 88px, 176px 176px !important;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 86%, transparent 100%) !important;
  mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 86%, transparent 100%) !important;
}

.app-shell::after {
  position: fixed !important;
  inset: 0 !important;
  opacity: 0.14 !important;
  background:
    radial-gradient(circle at 24% 12%, rgba(240, 196, 107, 0.2), transparent 20%),
    radial-gradient(circle at 82% 24%, rgba(157, 92, 255, 0.22), transparent 22%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 5px) !important;
  mix-blend-mode: soft-light !important;
}

@media (max-width: 767px) {
  .cover-card,
  .playlist-category-card {
    isolation: isolate;
    background: #07070b !important;
  }

  .cover-card::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 68%;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.48) 34%, rgba(0, 0, 0, 0.86) 72%, rgba(0, 0, 0, 0.96) 100%),
      radial-gradient(circle at 15% 100%, rgba(240, 196, 107, 0.18), transparent 38%);
  }

  .cover-card img,
  .playlist-category-card img {
    filter: brightness(0.72) contrast(1.08) saturate(1.02) !important;
  }

  .cover-card strong,
  .cover-card span {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.92), 0 1px 2px rgba(0, 0, 0, 0.9);
  }

  .cover-card strong {
    color: #fff8eb !important;
    font-weight: 950;
  }

  .cover-card span {
    color: rgba(255, 247, 234, 0.86) !important;
    font-weight: 650;
  }

  .playlist-category-copy {
    position: relative;
    z-index: 2;
    margin-top: -18px;
    border-top: 1px solid rgba(240, 196, 107, 0.12);
    background:
      linear-gradient(180deg, rgba(5, 5, 7, 0.78), rgba(5, 5, 7, 0.96) 62%, rgba(5, 5, 7, 0.98));
    box-shadow: 0 -24px 36px rgba(0, 0, 0, 0.46);
  }

  .playlist-category-copy strong {
    color: #fff8eb !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.82);
  }

  .playlist-category-copy small {
    color: rgba(255, 247, 234, 0.82) !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.74);
  }

  .playlist-category-copy em {
    color: #ffd981 !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.72);
  }
}

@media (min-width: 1024px) {
  .floating-create {
    position: fixed !important;
    right: calc(318px + max(28px, (100vw - 1440px) / 2 + 28px)) !important;
    bottom: 34px !important;
    z-index: 140 !important;
    display: grid !important;
    place-items: center !important;
  }
}

/* Final mobile spacing and video performance pass. */
@media (max-width: 1023px) {
  .phone-app {
    padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important;
  }

  .content-panels,
  .screen.active {
    padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  }

  .screen.active > :last-child,
  .content-panels > :last-child,
  .profile-menu,
  .profile-panel,
  .post-card:last-child,
  .playlist-grid:last-child,
  .profile-gallery:last-child,
  .events-list:last-child,
  #academy-courses:last-child,
  #courses-list:last-child,
  #news-list:last-child {
    margin-bottom: 0 !important;
  }

  .bottom-nav {
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  }

  .floating-create {
    bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  }
}

.connect-video-frame {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(8, 7, 11, 0.94);
}

.video-poster,
.video-skeleton,
.gallery-video-skeleton {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.video-poster {
  object-fit: cover;
  z-index: 1;
  opacity: 1;
  transition: opacity 220ms ease;
}

.connect-video-frame.is-video-ready .video-poster {
  opacity: 0;
  pointer-events: none;
}

.video-skeleton,
.gallery-video-skeleton {
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.045) 0%, rgba(240, 196, 107, 0.1) 44%, rgba(255, 255, 255, 0.045) 82%),
    radial-gradient(circle at 65% 30%, rgba(184, 92, 245, 0.22), transparent 34%),
    rgba(12, 10, 16, 0.95);
  background-size: 220% 100%, 100% 100%, 100% 100%;
  animation: videoSkeletonSweep 1400ms ease-in-out infinite;
}

@keyframes videoSkeletonSweep {
  from { background-position: 140% 0, 0 0, 0 0; }
  to { background-position: -80% 0, 0 0, 0 0; }
}

.connect-video {
  position: relative;
  z-index: 2;
}

.connect-video-frame:not(.is-video-ready) .connect-video {
  opacity: 0;
}

.gallery-tile .gallery-video-skeleton {
  position: absolute;
  border-radius: inherit;
}

/* Editorial content cards for Academy, Courses, Events and News. */
.course-stack,
#courses-list,
#events-list,
#news-list {
  display: grid !important;
  gap: 16px !important;
}

.content-visual-card {
  grid-template-columns: minmax(150px, 0.5fr) minmax(0, 0.5fr) !important;
  min-height: clamp(220px, 34vw, 320px) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.024)),
    radial-gradient(circle at 18% 12%, rgba(184, 92, 245, 0.16), transparent 34%),
    rgba(8, 7, 11, 0.92) !important;
}

.content-visual-media {
  min-height: clamp(220px, 34vw, 320px) !important;
}

.content-visual-body {
  padding: clamp(18px, 3vw, 30px) !important;
  align-content: center !important;
  gap: 12px !important;
}

.content-visual-kicker {
  width: fit-content;
  margin: 0 0 2px;
  color: rgba(240, 196, 107, 0.82);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-visual-body strong {
  font-size: clamp(22px, 4.5vw, 34px) !important;
  line-height: 1.02 !important;
}

.content-visual-body p {
  -webkit-line-clamp: 5 !important;
  color: rgba(255, 247, 234, 0.82) !important;
  font-size: clamp(13px, 2.5vw, 16px) !important;
  line-height: 1.42 !important;
}

.content-visual-meta {
  color: var(--gold) !important;
  font-size: clamp(13px, 2.4vw, 15px) !important;
  font-weight: 950 !important;
}

@media (max-width: 520px) {
  .content-visual-card {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
  }

  .content-visual-media {
    min-height: 0 !important;
    aspect-ratio: 16 / 10;
  }

  .content-visual-body {
    padding: 16px !important;
  }
}

@media (min-width: 1024px) {
  .desktop-left-nav nav {
    gap: 8px;
  }

  .desktop-left-nav nav button {
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    min-height: 58px;
    padding: 9px 12px;
    position: relative;
    overflow: hidden;
    border-color: rgba(240, 196, 107, 0.12);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
      rgba(255, 255, 255, 0.025);
  }

  .desktop-left-nav nav button::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at 18% 50%, rgba(240, 196, 107, 0.2), transparent 34%);
    transition: opacity 180ms ease;
  }

  .desktop-left-nav nav button:hover::before,
  .desktop-left-nav nav button.active::before {
    opacity: 1;
  }

  .desktop-left-nav nav button i {
    grid-row: 1 / span 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(240, 196, 107, 0.24);
    border-radius: 15px;
    color: var(--gold);
    background:
      radial-gradient(circle at 30% 20%, rgba(240, 196, 107, 0.26), transparent 42%),
      linear-gradient(135deg, rgba(184, 92, 245, 0.16), rgba(255, 255, 255, 0.035));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    font-size: 18px;
  }

  .desktop-left-nav nav button span,
  .desktop-left-nav nav button em {
    position: relative;
    z-index: 1;
  }

  .desktop-left-nav nav button span {
    align-self: end;
    font-size: 14px;
    font-weight: 850;
  }

  .desktop-left-nav nav button em {
    display: block;
    align-self: start;
    color: rgba(255, 247, 234, 0.46);
    font-size: 10px;
    font-style: normal;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
}

.gallery-video-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  background: #050505;
  transition: opacity 180ms ease;
}

.gallery-tile.has-video-preview .gallery-video-preview {
  opacity: 1;
}

.gallery-tile.has-video-preview .gallery-video-skeleton {
  opacity: 0;
  animation: none;
}

/* Final iOS/PWA profile spacing correction: avoid double padding from the
   scroll wrapper plus the active screen while keeping content above nav. */
@media (max-width: 1023px) {
  .phone-app {
    padding-bottom: 0 !important;
  }

  .content-panels {
    padding-bottom: 0 !important;
  }

  .screen.active {
    padding-bottom: calc(86px + env(safe-area-inset-bottom)) !important;
  }

  [data-screen="profile"].active,
  [data-screen="public-profile"].active {
    padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  }

  .profile-menu,
  .profile-panel,
  .own-profile-card,
  .social-profile-card,
  .profile-gallery {
    margin-bottom: 10px !important;
  }

  .profile-menu:last-child,
  .profile-panel:last-child {
    margin-bottom: 0 !important;
  }

  .bottom-nav {
    bottom: calc(6px + env(safe-area-inset-bottom)) !important;
  }

  .floating-create {
    bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  }
}

/* HUBRA social restructure: News = posts, Connect = reels, + = creation. */
.create-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.create-content-grid button {
  min-height: 132px;
  display: grid;
  align-content: end;
  gap: 7px;
  border: 1px solid rgba(240, 196, 107, 0.14);
  border-radius: 20px;
  color: var(--ink);
  background:
    radial-gradient(circle at 26% 20%, rgba(240, 196, 107, 0.2), transparent 34%),
    radial-gradient(circle at 85% 0%, rgba(184, 92, 245, 0.22), transparent 36%),
    rgba(255, 255, 255, 0.045);
  padding: 14px;
  text-align: left;
}

.create-content-grid i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.28);
  font-style: normal;
  font-size: 20px;
}

.create-content-grid strong,
.create-content-grid span {
  display: block;
}

.create-content-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.create-content-composer {
  margin-top: 8px;
}

.home-news-preview .post-card:nth-child(n + 4),
.desktop-home-feed .post-card:nth-child(n + 4) {
  display: none;
}

.news-feed .save-action,
.reels-feed .save-action {
  display: none;
}

.reels-feed {
  height: calc(100dvh - 88px);
  margin: 0 -18px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  border-radius: 22px;
  background: #050505;
  scrollbar-width: none;
}

.reels-feed::-webkit-scrollbar {
  display: none;
}

.reels-feed .post-card {
  min-height: calc(100dvh - 88px);
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #050505;
  scroll-snap-align: start;
}

.reels-feed .post-card > header {
  position: absolute;
  left: 14px;
  right: 72px;
  bottom: 116px;
  z-index: 5;
  padding: 0;
  color: #fff;
}

.reels-feed .post-author-photo img {
  width: 44px;
  height: 44px;
}

.reels-feed .post-card .post-actions-menu {
  display: none;
}

.reels-feed .post-media-frame.video,
.reels-feed .connect-video-frame {
  width: 100%;
  height: calc(100dvh - 88px);
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #050505;
}

.reels-feed .post-media-frame.video .post-media,
.reels-feed .connect-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reels-feed .post-caption {
  position: absolute;
  left: 16px;
  right: 76px;
  bottom: 84px;
  z-index: 5;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

.reels-feed .post-card > footer {
  position: absolute;
  right: 14px;
  bottom: 104px;
  z-index: 5;
  display: grid;
  gap: 12px;
}

.reels-feed .post-card > footer button,
.reels-feed .video-sound-toggle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}

.reels-feed .post-social-meta,
.reels-feed .comment-panel,
.reels-feed .comment-form {
  position: absolute;
  left: 16px;
  right: 76px;
  z-index: 6;
}

.reels-feed .post-social-meta {
  bottom: 52px;
}

.reels-feed .comment-panel {
  bottom: 92px;
  max-height: 26vh;
  overflow-y: auto;
}

.reels-feed .comment-form.active {
  bottom: 12px;
  display: flex;
}

@media (max-width: 520px) {
  .create-content-grid {
    grid-template-columns: 1fr;
  }

  [data-screen="community"].active {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .reels-title-row {
    padding: 0 18px;
  }

  .reels-feed {
    margin: 0;
    border-radius: 0;
  }
}

/* Connect Reels: TikTok-style immersive video layer. */
[data-screen="community"].active {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  overflow: hidden;
  background: #000;
}

[data-screen="community"].active .reels-title-row {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 85;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 18px;
  pointer-events: none;
}

[data-screen="community"].active .reels-title-row h2 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 4vw, 26px);
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.86rem, 3.8vw, 1.05rem);
  font-weight: 750;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.78);
  white-space: nowrap;
  pointer-events: auto;
}

[data-screen="community"].active .reels-title-row h2 button {
  position: relative;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-shadow: inherit;
  cursor: pointer;
  pointer-events: auto;
}

[data-screen="community"].active .reels-title-row h2 button.active {
  position: relative;
  color: #fff;
  font-weight: 900;
}

[data-screen="community"].active .reels-title-row h2 button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #fff, #f3c966);
  box-shadow: 0 0 18px rgba(243, 201, 102, 0.55);
}

.reels-live-pill,
.reels-search-icon {
  justify-self: center;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.reels-live-pill {
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.reels-search-icon {
  font-size: 1.75rem;
  line-height: 1;
  opacity: 0.9;
}

[data-screen="community"].active .reels-feed {
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

[data-screen="community"].active .reels-feed .post-card {
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
  box-shadow: none !important;
}

[data-screen="community"].active .reels-feed .post-media-frame.video,
[data-screen="community"].active .reels-feed .connect-video-frame {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100dvh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
  box-shadow: none !important;
}

[data-screen="community"].active .reels-feed .post-media-frame.video::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 22%, transparent 57%, rgba(0, 0, 0, 0.68)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 38%, rgba(0, 0, 0, 0.14));
}

[data-screen="community"].active .reels-feed .post-media-frame.video .post-media,
[data-screen="community"].active .reels-feed .connect-video,
[data-screen="community"].active .reels-feed .video-poster {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

[data-screen="community"].active .reels-feed .media-open-cue {
  display: none !important;
}

[data-screen="community"].active .reels-feed .video-sound-toggle {
  top: auto;
  right: 18px;
  bottom: calc(218px + env(safe-area-inset-bottom));
  z-index: 12;
  width: 48px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  font-size: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.46);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

[data-screen="community"].active .reels-feed .video-sound-toggle::before {
  content: "♪";
  font-size: 1.35rem;
  color: #fff;
}

[data-screen="community"].active .reels-feed .post-card > header {
  position: absolute;
  left: 18px !important;
  right: 92px !important;
  bottom: calc(154px + env(safe-area-inset-bottom)) !important;
  z-index: 12;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

[data-screen="community"].active .reels-feed .post-author-photo img {
  width: 48px !important;
  height: 48px !important;
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
}

[data-screen="community"].active .reels-feed .post-author-copy {
  align-items: flex-start;
  color: #fff;
}

[data-screen="community"].active .reels-feed .post-author-copy strong {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

[data-screen="community"].active .reels-feed .post-author-copy span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

[data-screen="community"].active .reels-feed .post-actions-menu {
  display: none !important;
}

[data-screen="community"].active .reels-feed .post-caption {
  position: absolute;
  left: 18px !important;
  right: 92px !important;
  bottom: calc(108px + env(safe-area-inset-bottom)) !important;
  z-index: 12;
  display: -webkit-box;
  max-height: 4.2em;
  margin: 0 !important;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: #fff !important;
  font-size: 0.95rem;
  line-height: 1.32;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

[data-screen="community"].active .reels-feed .post-card > footer {
  position: absolute;
  right: 12px !important;
  bottom: calc(126px + env(safe-area-inset-bottom)) !important;
  z-index: 14;
  display: grid !important;
  gap: 14px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

[data-screen="community"].active .reels-feed .post-card > footer button {
  width: 52px !important;
  height: 52px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: rgba(0, 0, 0, 0.42) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38) !important;
  backdrop-filter: blur(12px);
  font-size: 1.35rem !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

[data-screen="community"].active .reels-feed .post-card > footer button.active {
  color: #ff496d !important;
  background: rgba(0, 0, 0, 0.5) !important;
}

[data-screen="community"].active .reels-feed .post-card > footer .save-action {
  display: none !important;
}

[data-screen="community"].active .reels-feed .post-card > footer [data-share-post] {
  display: grid;
}

[data-screen="community"].active .reels-feed .post-social-meta {
  position: absolute;
  left: 18px !important;
  right: 92px !important;
  bottom: calc(64px + env(safe-area-inset-bottom)) !important;
  z-index: 12;
  display: grid;
  gap: 2px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

[data-screen="community"].active .reels-feed .post-social-meta strong {
  color: #fff;
  font-size: 0.88rem;
}

[data-screen="community"].active .reels-feed .post-social-meta button {
  justify-self: start;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  border: 0;
  font-size: 0.84rem;
}

[data-screen="community"].active .reels-feed .comment-panel {
  position: absolute;
  left: 16px !important;
  right: 78px !important;
  bottom: calc(136px + env(safe-area-inset-bottom)) !important;
  z-index: 16;
  max-height: 28vh;
  overflow-y: auto;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(16px);
}

[data-screen="community"].active .reels-feed .comment-form {
  position: absolute;
  left: 16px !important;
  right: 88px !important;
  bottom: calc(22px + env(safe-area-inset-bottom)) !important;
  z-index: 18;
  display: none;
  gap: 8px;
  padding: 0;
  background: transparent;
}

[data-screen="community"].active .reels-feed .comment-form.active {
  display: flex !important;
}

[data-screen="community"].active .reels-feed .comment-form input {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.44);
  color: #fff;
  backdrop-filter: blur(14px);
}

[data-screen="community"].active .reels-feed .comment-form button {
  min-height: 42px;
  border-radius: 999px;
  background: rgba(218, 176, 88, 0.92);
  color: #191006;
  box-shadow: 0 12px 26px rgba(218, 176, 88, 0.2);
}

@media (max-width: 1023px) {
  .phone-app:has([data-screen="community"].active) .content-panels {
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
  }

  .phone-app:has([data-screen="community"].active) .bottom-nav {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: calc(76px + env(safe-area-inset-bottom));
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
    border-radius: 0 !important;
    border: 0 !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72) 16%, rgba(0, 0, 0, 0.98));
    box-shadow: none !important;
    backdrop-filter: blur(10px);
  }

  .phone-app:has([data-screen="community"].active) .bottom-nav button {
    color: rgba(255, 255, 255, 0.78);
    background: transparent !important;
    box-shadow: none !important;
  }

  .phone-app:has([data-screen="community"].active) .bottom-nav button.active {
    color: #fff;
  }

  .phone-app:has([data-screen="community"].active) .bottom-nav button[data-nav="community"] {
    background: transparent !important;
    border: 0 !important;
    transform: none !important;
  }

  .phone-app:has([data-screen="community"].active) .bottom-nav button[data-nav="community"]::before {
    display: none !important;
  }

  .phone-app:has([data-screen="community"].active) .bottom-nav button[data-nav="community"] i {
    width: 46px;
    height: 34px;
    border-radius: 12px;
    color: #050505;
    background: linear-gradient(135deg, #fff, #f7d477 48%, #b33cff);
  }

  .phone-app:has([data-screen="community"].active) .floating-create {
    right: 14px !important;
    bottom: calc(78px + env(safe-area-inset-bottom)) !important;
    z-index: 90;
    width: 56px;
    height: 56px;
  }
}

@media (min-width: 1024px) {
  .desktop-app:has([data-screen="community"].active) .main-viewport,
  .desktop-app:has([data-screen="community"].active) .content-panels {
    overflow: hidden;
  }

  .desktop-app:has([data-screen="community"].active) .reels-feed {
    height: min(100dvh, 900px) !important;
    max-width: 560px;
    margin: 0 auto !important;
    border-radius: 28px !important;
    overflow: hidden auto;
  }

  .desktop-app:has([data-screen="community"].active) .reels-feed .post-card,
  .desktop-app:has([data-screen="community"].active) .reels-feed .post-media-frame.video,
  .desktop-app:has([data-screen="community"].active) .reels-feed .connect-video-frame {
    height: min(100dvh, 900px) !important;
    min-height: min(100dvh, 900px) !important;
    border-radius: 28px !important;
  }
}

.reel-create-screen.active {
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
}

.reel-composer {
  display: grid;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.reel-upload-stage {
  position: relative;
  display: grid;
  min-height: min(72dvh, 720px);
  overflow: hidden;
  border: 1px solid rgba(244, 198, 96, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 20%, rgba(153, 73, 255, 0.24), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.reel-upload-button {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 10px;
  min-height: 100%;
  text-align: center;
  color: #fff;
  cursor: pointer;
}

.reel-upload-button input {
  display: none;
}

.reel-upload-button i {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0 auto;
  border-radius: 999px;
  color: #130c04;
  font-size: 2rem;
  background: linear-gradient(135deg, #ffe69c, #d8a43f 52%, #a53dff);
  box-shadow: 0 0 44px rgba(166, 63, 255, 0.38), 0 18px 42px rgba(0, 0, 0, 0.42);
}

.reel-upload-button strong {
  font-size: 1.25rem;
}

.reel-upload-button span {
  color: rgba(255, 255, 255, 0.68);
}

.reel-upload-stage:has(.composer-preview:not(.hidden)) .reel-upload-button {
  inset: auto 16px 16px auto;
  width: auto;
  min-height: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(14px);
}

.reel-upload-stage:has(.composer-preview:not(.hidden)) .reel-upload-button i,
.reel-upload-stage:has(.composer-preview:not(.hidden)) .reel-upload-button span {
  display: none;
}

.reel-upload-stage .composer-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.reel-upload-stage .composer-preview-grid,
.reel-upload-stage .composer-preview-grid figure,
.reel-upload-stage .composer-preview-grid video,
.reel-upload-stage .composer-preview-grid img {
  width: 100%;
  height: 100%;
}

.reel-upload-stage .composer-preview-grid {
  display: block;
}

.reel-upload-stage .composer-preview-grid figure {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.reel-upload-stage .composer-preview-grid video,
.reel-upload-stage .composer-preview-grid img {
  object-fit: cover;
}

.reel-composer textarea {
  min-height: 108px;
  border-radius: 22px;
  border: 1px solid rgba(244, 198, 96, 0.16);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.reel-publish-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Reels cleanup requested: no top tabs, no duplicate controls, centered nav. */
[data-screen="community"].active .reels-title-row {
  display: none !important;
}

[data-screen="community"].active .reels-feed .video-sound-toggle {
  display: none !important;
}

[data-screen="community"].active .reels-feed .post-card > footer {
  right: 12px !important;
  bottom: calc(170px + env(safe-area-inset-bottom)) !important;
  z-index: 22;
  gap: 16px !important;
}

[data-screen="community"].active .reels-feed .post-card > footer button {
  display: grid !important;
  place-items: center !important;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.38) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(14px);
  line-height: 1 !important;
  text-align: center !important;
}

[data-screen="community"].active .reels-feed .post-card > footer button::before,
[data-screen="community"].active .reels-feed .post-card > footer button::after {
  display: none !important;
}

[data-screen="community"].active .reels-feed .post-card > footer [data-like-post] {
  font-size: 1.55rem !important;
}

[data-screen="community"].active .reels-feed .post-card > footer [data-comment-focus] {
  font-size: 1.34rem !important;
}

[data-screen="community"].active .reels-feed .post-card > footer [data-share-post] {
  font-size: 1.22rem !important;
  transform: rotate(-10deg);
}

[data-screen="community"].active .reels-feed .post-card > header {
  right: 86px !important;
  bottom: calc(126px + env(safe-area-inset-bottom)) !important;
}

[data-screen="community"].active .reels-feed .post-caption {
  right: 86px !important;
  bottom: calc(82px + env(safe-area-inset-bottom)) !important;
}

[data-screen="community"].active .reels-feed .comment-form.active {
  left: 14px !important;
  right: 88px !important;
  bottom: calc(118px + env(safe-area-inset-bottom)) !important;
}

@media (max-width: 1023px) {
  .phone-app:has([data-screen="community"].active) .bottom-nav {
    left: 50% !important;
    right: auto !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    width: min(94vw, 520px) !important;
    height: 78px !important;
    padding: 8px 10px !important;
    border-radius: 26px !important;
    transform: translateX(-50%) !important;
    background: rgba(3, 3, 5, 0.88) !important;
  }

  .phone-app:has([data-screen="community"].active) .bottom-nav button[data-nav="community"] {
    background: var(--gold-gradient) !important;
    border: 1px solid rgba(244, 198, 96, 0.22) !important;
    border-radius: 18px !important;
    box-shadow: 0 0 30px rgba(244, 198, 96, 0.18) !important;
  }

  .phone-app:has([data-screen="community"].active) .bottom-nav button[data-nav="community"]::before {
    display: block !important;
  }

  .phone-app:has([data-screen="community"].active) .bottom-nav button[data-nav="community"] i {
    width: auto !important;
    height: auto !important;
    color: #090706 !important;
    background: transparent !important;
  }

  .phone-app:has([data-screen="community"].active) .bottom-nav button[data-nav="community"] span {
    display: block !important;
    color: #090706 !important;
    font-weight: 900 !important;
  }

  .phone-app:has([data-screen="community"].active) .floating-create {
    right: 16px !important;
    bottom: calc(98px + env(safe-area-inset-bottom)) !important;
    width: 58px !important;
    height: 58px !important;
    z-index: 24 !important;
  }
}

.reel-create-screen.active {
  min-height: 100dvh;
  padding: 0 !important;
  background: #000;
}

.reel-create-screen.active .screen-title-row {
  display: none;
}

.reel-create-screen.active .reel-composer {
  min-height: 100dvh;
  padding: 0 0 calc(22px + env(safe-area-inset-bottom));
  gap: 0;
}

.reel-create-screen.active .reel-upload-stage {
  min-height: calc(100dvh - 172px);
  border: 0;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(circle at 50% 28%, rgba(244, 198, 96, 0.16), transparent 32%),
    radial-gradient(circle at 70% 20%, rgba(150, 60, 255, 0.18), transparent 36%),
    #070707;
}

.reel-camera-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.reel-camera-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  background: #000;
}

.reel-camera-preview.active {
  opacity: 1;
}

.reel-close-button {
  position: absolute;
  top: max(22px, env(safe-area-inset-top));
  left: 18px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.36);
  font-size: 2rem;
  pointer-events: auto;
}

.reel-camera-button {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 5px solid #fff;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.18);
  cursor: pointer;
  pointer-events: auto;
}

.reel-camera-button.recording {
  border-color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 35, 84, 0.18);
}

.reel-camera-button input,
.reel-gallery-button input {
  display: none;
}

.reel-camera-button span {
  width: 72px;
  height: 72px;
  border-radius: inherit;
  background: #fff;
}

.reel-camera-button.recording span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ff2d55;
}

.reel-gallery-button {
  position: absolute;
  left: 22px;
  bottom: 34px;
  z-index: 6;
  display: grid;
  gap: 6px;
  justify-items: center;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  pointer-events: auto;
}

.reel-gallery-button i {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
    radial-gradient(circle at 32% 24%, rgba(244, 198, 96, 0.8), transparent 18%),
    linear-gradient(145deg, rgba(91, 38, 165, 0.92), rgba(15, 9, 20, 0.96));
  backdrop-filter: blur(12px);
  font-style: normal;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), 0 10px 26px rgba(0, 0, 0, 0.34);
}

.reel-gallery-button i::before {
  content: "";
  width: 38px;
  height: 30px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 58%, rgba(255, 255, 255, 0.64) 59%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.7), transparent 44%);
}

.reel-upload-stage:has(.composer-preview:not(.hidden)) .reel-camera-overlay {
  opacity: 0;
  pointer-events: none;
}

.reel-create-screen.active .reel-upload-stage:has(.composer-preview:not(.hidden)) {
  min-height: 44dvh;
  margin: 18px;
  border-radius: 24px;
}

.reel-create-screen.active .reel-draft-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px 6px;
}

.reel-draft-strip span,
.reel-draft-strip button {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.07);
}

.reel-create-screen.active .reel-composer textarea {
  margin: 8px 18px;
  min-height: 108px;
}

.reel-create-screen.active .reel-publish-row {
  margin: 12px 18px 0;
}

/* Final Connect polish: no overlaps, centered controls, working tabs. */
[data-screen="community"].active .reels-title-row {
  top: max(16px, env(safe-area-inset-top)) !important;
  grid-template-columns: 1fr auto 38px !important;
  padding: 0 16px !important;
  pointer-events: auto !important;
}

[data-screen="community"].active .reels-title-row .reels-live-pill {
  display: none !important;
}

[data-screen="community"].active .reels-title-row h2 {
  grid-column: 1 / 4;
  justify-self: center;
  max-width: calc(100vw - 72px);
  gap: clamp(14px, 3vw, 22px);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
}

[data-screen="community"].active .reels-title-row h2 button {
  display: grid;
  place-items: center;
  min-width: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1;
}

[data-screen="community"].active .reels-title-row h2 button:active {
  transform: scale(0.96);
}

[data-screen="community"].active .reels-title-row .reels-search-icon {
  grid-column: 3;
  z-index: 2;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

[data-screen="community"].active .reels-feed .post-card > footer {
  right: 12px !important;
  bottom: calc(138px + env(safe-area-inset-bottom)) !important;
  gap: 12px !important;
  justify-items: center;
}

[data-screen="community"].active .reels-feed .post-card > footer button,
[data-screen="community"].active .reels-feed .video-sound-toggle {
  display: grid !important;
  place-items: center !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  font-size: 1.28rem !important;
}

[data-screen="community"].active .reels-feed .post-card > footer [data-share-post] {
  font-size: 1.18rem !important;
}

[data-screen="community"].active .reels-feed .post-card > footer .save-action {
  display: none !important;
}

[data-screen="community"].active .reels-feed .post-social-meta {
  display: none !important;
}

[data-screen="community"].active .reels-feed .post-card > header {
  bottom: calc(108px + env(safe-area-inset-bottom)) !important;
}

[data-screen="community"].active .reels-feed .post-caption {
  bottom: calc(62px + env(safe-area-inset-bottom)) !important;
}

[data-screen="community"].active .reels-feed .comment-form.active {
  left: 14px !important;
  right: 78px !important;
  bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  align-items: center;
}

[data-screen="community"].active .reels-feed .comment-form button {
  display: grid;
  place-items: center;
  min-width: 92px;
  padding: 0 14px;
}

@media (max-width: 1023px) {
  .phone-app:has([data-screen="community"].active) .bottom-nav {
    left: 50% !important;
    right: auto !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    width: min(94vw, 520px) !important;
    height: 78px !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 26px !important;
    transform: translateX(-50%) !important;
    background: rgba(3, 3, 5, 0.86) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48) !important;
    backdrop-filter: blur(18px);
  }

  .phone-app:has([data-screen="community"].active) .bottom-nav button {
    display: grid;
    place-items: center;
    min-width: 0;
    transform: none !important;
  }

  .phone-app:has([data-screen="community"].active) .bottom-nav button i,
  .phone-app:has([data-screen="community"].active) .bottom-nav button span {
    justify-self: center;
    text-align: center;
  }

  .phone-app:has([data-screen="community"].active) .floating-create {
    right: 18px !important;
    bottom: calc(94px + env(safe-area-inset-bottom)) !important;
    z-index: 72;
    width: 54px !important;
    height: 54px !important;
  }
}

/* Emergency final layer: reels and reel creation must not inherit stale app chrome. */
[data-screen="community"].active .reels-title-row {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

[data-screen="community"].active .reels-feed .post-card > footer {
  right: 14px !important;
  bottom: calc(198px + env(safe-area-inset-bottom)) !important;
  gap: 18px !important;
  z-index: 30 !important;
}

[data-screen="community"].active .reels-feed .post-card > footer button {
  display: grid !important;
  place-items: center !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  line-height: 1 !important;
  transform: none !important;
}

[data-screen="community"].active .reels-feed .post-card > footer [data-share-post] {
  transform: rotate(-10deg) !important;
}

[data-screen="community"].active .reels-feed .post-card > header {
  right: 92px !important;
  bottom: calc(138px + env(safe-area-inset-bottom)) !important;
}

[data-screen="community"].active .reels-feed .post-caption {
  right: 92px !important;
  bottom: calc(96px + env(safe-area-inset-bottom)) !important;
}

[data-screen="community"].active .reels-feed .post-social-meta,
[data-screen="community"].active .reels-feed .video-sound-toggle,
[data-screen="community"].active .reels-feed .save-action {
  display: none !important;
}

@media (max-width: 1023px) {
  .phone-app:has([data-screen="community"].active) .bottom-nav {
    left: 50% !important;
    right: auto !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    display: grid !important;
    width: min(94vw, 520px) !important;
    height: 78px !important;
    transform: translateX(-50%) !important;
  }

  .phone-app:has([data-screen="community"].active) .bottom-nav button[data-nav="community"] {
    display: grid !important;
    place-items: center !important;
    border-radius: 18px !important;
    color: #090706 !important;
    background: var(--gold-gradient) !important;
    opacity: 1 !important;
  }

  .phone-app:has([data-screen="community"].active) .bottom-nav button[data-nav="community"] i,
  .phone-app:has([data-screen="community"].active) .bottom-nav button[data-nav="community"] span {
    display: block !important;
    width: auto !important;
    height: auto !important;
    color: #090706 !important;
    background: transparent !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }

  .phone-app:has([data-screen="community"].active) .floating-create {
    right: 16px !important;
    bottom: calc(100px + env(safe-area-inset-bottom)) !important;
    z-index: 24 !important;
    width: 58px !important;
    height: 58px !important;
  }
}

@media (max-width: 1023px) {
  .phone-app:has([data-screen="reel-create"].active) {
    background: #000 !important;
  }

  .phone-app:has([data-screen="reel-create"].active) .content-panels {
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .phone-app:has([data-screen="reel-create"].active) .bottom-nav,
  .phone-app:has([data-screen="reel-create"].active) .floating-create {
    display: none !important;
  }
}

.reel-create-screen.active {
  width: 100% !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden auto !important;
  padding: 0 !important;
  background: #000 !important;
}

.reel-create-screen.active .reel-composer {
  min-height: 100dvh !important;
  padding: 0 0 calc(18px + env(safe-area-inset-bottom)) !important;
  border: 0 !important;
  background: #000 !important;
  box-shadow: none !important;
}

.reel-create-screen.active .reel-upload-stage {
  min-height: 100dvh !important;
  margin: 0 !important;
  border-radius: 0 0 30px 30px !important;
}

.reel-create-screen.active .reel-composer:not(:has(.composer-preview:not(.hidden))) .reel-draft-strip,
.reel-create-screen.active .reel-composer:not(:has(.composer-preview:not(.hidden))) textarea,
.reel-create-screen.active .reel-composer:not(:has(.composer-preview:not(.hidden))) .reel-publish-row {
  display: none !important;
}

.reel-create-screen.active .reel-composer:not(:has(.composer-preview:not(.hidden))) .composer-preview {
  display: none !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-upload-stage {
  min-height: 48dvh !important;
  margin: 14px !important;
  border-radius: 26px !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) {
  overflow-y: auto !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-draft-strip,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) textarea,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row {
  display: flex !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) textarea {
  display: block !important;
}

.reel-create-screen.active .reel-camera-button {
  bottom: calc(34px + env(safe-area-inset-bottom)) !important;
}

.reel-create-screen.active .reel-gallery-button {
  bottom: calc(46px + env(safe-area-inset-bottom)) !important;
}

/* Reel picker/composer final pass: hide native inputs and mimic modern social upload. */
.reel-native-camera-fallback,
.reel-gallery-button input,
.reel-camera-button input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

.reel-create-screen.active .reel-gallery-button {
  left: 18px !important;
  bottom: calc(34px + env(safe-area-inset-bottom)) !important;
}

.reel-create-screen.active .reel-gallery-button i {
  width: 54px !important;
  height: 54px !important;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 10px;
}

.reel-create-screen.active .reel-gallery-button strong {
  max-width: 68px;
  overflow: hidden;
  color: #fff;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) {
  max-height: none !important;
  min-height: 100dvh !important;
  overflow-y: auto !important;
  background: #f7f7f7 !important;
  color: #111 !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-upload-stage {
  min-height: 0 !important;
  height: 132px !important;
  width: 132px !important;
  margin: calc(18px + env(safe-area-inset-top)) 18px 8px !important;
  border-radius: 14px !important;
  background: #e9e9e9 !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .composer-preview-grid,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .composer-preview-grid figure,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .composer-preview-grid video,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .composer-preview-grid img {
  border-radius: 14px !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-draft-strip {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top));
  left: 168px;
  right: 18px;
  display: flex !important;
  padding: 0 !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-draft-strip span,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-draft-strip button {
  width: 104px;
  height: 104px;
  border: 0;
  color: #111;
  background: #ececec;
}

.reel-title-input {
  display: none;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-title-input {
  display: block;
  width: calc(100% - 36px);
  margin: 12px 18px 0;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  color: #111;
  background: transparent;
  font-size: 1.12rem;
  font-weight: 800;
  outline: none;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) textarea {
  width: calc(100% - 36px);
  min-height: 96px !important;
  margin: 0 18px !important;
  padding: 16px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #ececec !important;
  border-radius: 0 !important;
  color: #111 !important;
  background: transparent !important;
  font-size: 1rem;
  box-shadow: none !important;
}

.reel-options-list {
  display: none;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list {
  display: grid;
  margin-top: 18px;
  background: #fff;
}

.reel-options-list button {
  display: grid;
  grid-template-columns: 34px 1fr 20px;
  align-items: center;
  min-height: 62px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid #eeeeee;
  color: #111;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.reel-options-list span,
.reel-options-list i {
  color: #111;
  font-style: normal;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row {
  position: sticky;
  bottom: 0;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 !important;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
  background: rgba(247, 247, 247, 0.94);
  backdrop-filter: blur(12px);
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row .ghost-button,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row .publish-button {
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row .ghost-button {
  color: #111;
  background: #eaeaea;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row .publish-button {
  color: #fff;
  background: #ff2d55;
}

/* Final active Connect button fix across Reels overrides. */
@media (max-width: 1023px) {
  .bottom-nav button.active[data-nav="community"],
  .phone-app:has([data-screen="community"].active) .bottom-nav button.active[data-nav="community"] {
    background: linear-gradient(135deg, #ffe69c 0%, #e6b64f 52%, #9d45ff 100%) !important;
    color: #090706 !important;
    opacity: 1 !important;
    border: 1px solid rgba(255, 225, 150, 0.42) !important;
    box-shadow: 0 0 30px rgba(244, 198, 96, 0.24), 0 16px 34px rgba(0, 0, 0, 0.44) !important;
  }

  .bottom-nav button.active[data-nav="community"] i,
  .bottom-nav button.active[data-nav="community"] span,
  .phone-app:has([data-screen="community"].active) .bottom-nav button.active[data-nav="community"] i,
  .phone-app:has([data-screen="community"].active) .bottom-nav button.active[data-nav="community"] span {
    display: block !important;
    color: #090706 !important;
    background: transparent !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }
}

/* Last word: dark compact reel composer. This intentionally overrides older white composer rules. */
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) {
  min-height: 100dvh !important;
  max-height: none !important;
  display: block !important;
  overflow-y: auto !important;
  padding: calc(18px + env(safe-area-inset-top)) 0 0 !important;
  color: #fff !important;
  background: radial-gradient(circle at 72% 0%, rgba(157, 69, 255, 0.2), transparent 34%), #050505 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-upload-stage {
  position: relative !important;
  width: 106px !important;
  height: 132px !important;
  min-height: 0 !important;
  margin: 0 0 8px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #101014 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .composer-media-overlay {
  display: none !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .composer-preview-grid,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .composer-preview-grid figure,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .composer-preview-grid video,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .composer-preview-grid img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 18px !important;
  object-fit: cover !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-draft-strip {
  position: absolute !important;
  top: calc(18px + env(safe-area-inset-top)) !important;
  left: 134px !important;
  right: 16px !important;
  display: flex !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-draft-strip span,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-draft-strip button {
  width: 78px !important;
  height: 78px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
  color: rgba(255, 247, 234, 0.76) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  font-size: 0.82rem !important;
  font-weight: 850 !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-title-input {
  display: block !important;
  width: calc(100% - 32px) !important;
  min-height: 44px !important;
  margin: 12px 16px 0 !important;
  padding: 0 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 15px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.055) !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  outline: none !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) textarea {
  display: block !important;
  width: calc(100% - 32px) !important;
  min-height: 76px !important;
  max-height: 112px !important;
  margin: 8px 16px 0 !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 16px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.045) !important;
  font-size: 0.94rem !important;
  line-height: 1.35 !important;
  resize: none !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list {
  display: grid !important;
  margin: 12px 16px 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list button {
  min-height: 48px !important;
  grid-template-columns: 28px 1fr 16px !important;
  padding: 0 13px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065) !important;
  color: rgba(255, 247, 234, 0.92) !important;
  background: transparent !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list span,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list i {
  color: rgba(255, 224, 142, 0.9) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list strong {
  color: rgba(255, 247, 234, 0.92) !important;
  font-size: 0.9rem !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row {
  position: sticky !important;
  bottom: 0 !important;
  display: grid !important;
  grid-template-columns: 0.9fr 1.25fr !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom)) !important;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.94) 26%, #050505) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row .ghost-button,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row .publish-button {
  min-height: 48px !important;
  border-radius: 999px !important;
  font-size: 0.92rem !important;
  font-weight: 950 !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row .ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 247, 234, 0.78) !important;
  background: rgba(255, 255, 255, 0.065) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row .publish-button {
  border: 0 !important;
  color: #100b05 !important;
  background: linear-gradient(135deg, #fff0b8 0%, #f0c46b 46%, #d69434 100%) !important;
}

/* Gallery entry should feel like a real social app thumbnail, not a generic upload square. */
.reel-create-screen.active .reel-gallery-button {
  width: 70px !important;
}

.reel-create-screen.active .reel-gallery-button i {
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.62) 100%),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Dalilah_bailando_danza_oriental_en_la_Esfinge.jpg") center / cover no-repeat !important;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(240, 196, 107, 0.18) !important;
}

.reel-create-screen.active .reel-gallery-button i::before {
  display: none !important;
}

.reel-create-screen.active .reel-gallery-button strong {
  color: #fff !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85) !important;
}

/* Composer proportions: TikTok/Instagram-style layout, translated to HUBRA black. */
.reel-create-screen.active:has(.composer-preview:not(.hidden)) .screen-title-row {
  min-height: 52px !important;
  padding: 8px 18px 6px !important;
  background: #050505 !important;
  border: 0 !important;
}

.reel-create-screen.active:has(.composer-preview:not(.hidden)) .screen-title-row h2 {
  color: rgba(255, 247, 234, 0.94) !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) {
  min-height: calc(100dvh - 52px) !important;
  display: grid !important;
  grid-template-rows: 116px 46px minmax(230px, 1fr) auto auto !important;
  row-gap: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: relative !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-upload-stage {
  grid-row: 1 !important;
  width: 94px !important;
  height: 94px !important;
  margin: 12px 0 0 22px !important;
  border-radius: 14px !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-draft-strip {
  top: 12px !important;
  left: 124px !important;
  right: auto !important;
  width: auto !important;
  gap: 10px !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-draft-strip span,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-draft-strip button {
  width: 94px !important;
  height: 94px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-title-input {
  grid-row: 2 !important;
  align-self: stretch !important;
  width: calc(100% - 44px) !important;
  min-height: 46px !important;
  margin: 0 22px !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 1rem !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) textarea {
  grid-row: 3 !important;
  width: calc(100% - 44px) !important;
  min-height: 0 !important;
  max-height: none !important;
  height: 100% !important;
  margin: 0 22px !important;
  padding: 18px 0 54px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 1rem !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) textarea:focus {
  outline: none !important;
  box-shadow: inset 3px 0 0 rgba(240, 196, 107, 0.95) !important;
  padding-left: 10px !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list::before {
  content: "#   @   ✨";
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  color: rgba(255, 224, 142, 0.92);
  white-space: pre;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.025);
  font-size: 1.05rem;
  font-weight: 900;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list {
  grid-row: 4 !important;
  margin: 0 !important;
  border-right: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  background: rgba(10, 10, 12, 0.98) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-options-list button {
  min-height: 56px !important;
  grid-template-columns: 34px 1fr 18px !important;
  padding: 0 22px !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row {
  grid-row: 5 !important;
  position: relative !important;
  bottom: auto !important;
  grid-template-columns: 1fr 1fr !important;
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom)) !important;
}

.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row .ghost-button,
.reel-create-screen.active .reel-composer:has(.composer-preview:not(.hidden)) .reel-publish-row .publish-button {
  min-height: 54px !important;
}

/* Final reels layout: true full-screen mobile, desktop reel player stage. */
[data-screen="community"].active .reels-feed {
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
  overflow-y: auto !important;
  scroll-snap-type: y mandatory !important;
}

[data-screen="community"].active .reels-feed .post-card,
[data-screen="community"].active .reels-feed .post-media-frame.video,
[data-screen="community"].active .reels-feed .connect-video-frame {
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  width: 100% !important;
  margin: 0 !important;
}

[data-screen="community"].active .reels-feed .post-media-frame.video .post-media,
[data-screen="community"].active .reels-feed .connect-video,
[data-screen="community"].active .reels-feed .video-poster {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

@media (max-width: 1023px) {
  .phone-app:has([data-screen="community"].active),
  .phone-app:has([data-screen="community"].active) .content-panels {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }

  .phone-app:has([data-screen="community"].active) .bottom-nav {
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
  }

  .phone-app:has([data-screen="community"].active) .floating-create {
    bottom: calc(88px + max(8px, env(safe-area-inset-bottom))) !important;
  }
}

@media (min-width: 1024px) {
  .app-shell:has([data-screen="community"].active) {
    width: 100vw !important;
    max-width: none !important;
    min-height: 100vh !important;
    background:
      radial-gradient(circle at 50% 42%, rgba(157, 69, 255, 0.14), transparent 28%),
      #050505 !important;
  }

  .app-shell:has([data-screen="community"].active) .desktop-shell {
    grid-template-columns: minmax(210px, 270px) minmax(420px, 640px) minmax(170px, 260px) !important;
    justify-content: center !important;
    gap: 30px !important;
    max-width: 1280px !important;
    height: 100vh !important;
    margin: 0 auto !important;
    overflow: hidden !important;
  }

  .app-shell:has([data-screen="community"].active) .desktop-main {
    display: grid !important;
    place-items: center !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  .app-shell:has([data-screen="community"].active) .content-panels,
  .app-shell:has([data-screen="community"].active) [data-screen="community"].active {
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  [data-screen="community"].active .reels-feed {
    width: min(42vh, 440px) !important;
    height: min(92vh, 860px) !important;
    min-height: min(92vh, 860px) !important;
    max-height: min(92vh, 860px) !important;
    border: 1px solid rgba(240, 196, 107, 0.16) !important;
    border-radius: 24px !important;
    box-shadow:
      0 0 0 1px rgba(157, 69, 255, 0.12),
      0 28px 90px rgba(0, 0, 0, 0.62) !important;
  }

  [data-screen="community"].active .reels-feed .post-card,
  [data-screen="community"].active .reels-feed .post-media-frame.video,
  [data-screen="community"].active .reels-feed .connect-video-frame {
    width: 100% !important;
    height: min(92vh, 860px) !important;
    min-height: min(92vh, 860px) !important;
    max-height: min(92vh, 860px) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
  }

  [data-screen="community"].active .reels-feed .post-card > footer {
    right: 14px !important;
    bottom: 148px !important;
  }

  [data-screen="community"].active .reels-feed .post-card > header {
    bottom: 92px !important;
  }

  [data-screen="community"].active .reels-feed .post-caption {
    bottom: 54px !important;
  }
}
