/* Codentra v3.1 glass redesign */
:root {
  --glass-v3-surface: linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0.04) 100%);
  --glass-v3-surface-soft: linear-gradient(145deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.06) 56%, rgba(255, 255, 255, 0.025) 100%);
  --glass-v3-surface-strong: linear-gradient(145deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.12) 52%, rgba(255, 255, 255, 0.05) 100%);
  --glass-v3-border: rgba(255, 255, 255, 0.18);
  --glass-v3-border-strong: rgba(255, 255, 255, 0.26);
  --glass-v3-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --glass-v3-shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.22);
  --glass-v3-glow: 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --glass-v3-pill: rgba(255, 255, 255, 0.08);
  --glass-v3-pill-hover: rgba(255, 255, 255, 0.16);
  --glass-v3-backdrop: blur(28px) saturate(165%);
}

html[data-theme="light"] {
  --glass-v3-surface: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 50%, rgba(255, 255, 255, 0.68) 100%);
  --glass-v3-surface-soft: linear-gradient(145deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.74) 56%, rgba(255, 255, 255, 0.64) 100%);
  --glass-v3-surface-strong: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.84) 50%, rgba(255, 255, 255, 0.72) 100%);
  --glass-v3-border: rgba(15, 23, 42, 0.10);
  --glass-v3-border-strong: rgba(15, 23, 42, 0.14);
  --glass-v3-shadow: 0 22px 64px rgba(15, 23, 42, 0.12);
  --glass-v3-shadow-soft: 0 14px 32px rgba(15, 23, 42, 0.08);
  --glass-v3-glow: 0 0 0 1px rgba(255, 255, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  --glass-v3-pill: rgba(15, 23, 42, 0.04);
  --glass-v3-pill-hover: rgba(15, 23, 42, 0.10);
}

body {
  position: relative;
  isolation: isolate;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.9;
}

body::before {
  width: min(40vw, 520px);
  height: min(40vw, 520px);
  top: 72px;
  left: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 55%, transparent 75%);
}

body::after {
  width: min(34vw, 420px);
  height: min(34vw, 420px);
  right: -80px;
  bottom: 10vh;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 58%, transparent 74%);
}

html[data-theme="light"] body::before,
html[data-theme="light"] body::after {
  opacity: 0.55;
}

.main-header {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  padding-top: 14px;
}

.main-header .container {
  min-height: 78px;
  padding: 10px 22px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(24, 28, 44, 0.54) 0%, rgba(28, 34, 52, 0.42) 52%, rgba(32, 40, 60, 0.32) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 22px rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  backdrop-filter: blur(34px) saturate(180%);
}

html[data-theme="light"] .main-header .container {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.68) 0%, rgba(248, 250, 255, 0.6) 48%, rgba(240, 244, 252, 0.54) 100%);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.96), inset 0 0 18px rgba(255, 255, 255, 0.24);
}

.logo a span {
  letter-spacing: 0.02em;
}

.logo-img,
.footer-logo {
  border: 1px solid var(--glass-v3-border);
  box-shadow: var(--glass-v3-shadow-soft);
}

.main-nav {
  gap: 10px;
}

.main-nav a:not(.btn),
.user-name {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.main-nav a:not(.btn):hover,
.user-name:hover {
  background: var(--glass-v3-pill);
  border-color: var(--glass-v3-border);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn,
button,
input[type="submit"],
input[type="button"] {
  border-radius: 18px;
}

.btn {
  padding: 12px 18px;
  border: 1px solid var(--glass-v3-border);
  box-shadow: var(--glass-v3-glow);
}

.btn-primary,
.message-form button,
.community-post-actions .btn-primary,
.community-hero .btn-primary,
.purchase-actions .btn-primary {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.76) 100%);
  color: rgba(0, 0, 0, 0.92);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .btn-primary,
html[data-theme="light"] .message-form button,
html[data-theme="light"] .community-post-actions .btn-primary,
html[data-theme="light"] .community-hero .btn-primary,
html[data-theme="light"] .purchase-actions .btn-primary {
  color: rgba(15, 23, 42, 0.96);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.btn-secondary,
.theme-toggle,
.main-nav .btn-secondary,
.purchase-actions .btn-secondary {
  background: var(--glass-v3-surface-soft);
  color: var(--text-primary);
  border-color: var(--glass-v3-border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.btn:hover,
button:hover {
  transform: translateY(-2px);
}

.release-banner-section {
  padding-top: 10px;
}

.release-banner {
  --release-scroll-progress: 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: 28px;
  padding: 34px 36px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(151, 172, 255, 0.22), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(20, 24, 40, 0.74) 0%, rgba(24, 30, 48, 0.64) 46%, rgba(28, 36, 58, 0.52) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 30px rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(38px) saturate(185%);
  backdrop-filter: blur(38px) saturate(185%);
  overflow: hidden;
  animation: releaseAmbientGlow 5.2s ease-in-out infinite;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
  will-change: transform, opacity;
}

.release-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 36%, transparent 62%, rgba(255, 255, 255, 0.08));
  opacity: 0.9;
  animation: releaseBannerShimmer 4.8s linear infinite;
}

.release-banner::after {
  content: '';
  position: absolute;
  inset: -20% auto -20% -12%;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(141, 166, 255, 0.18) 45%, rgba(255, 255, 255, 0.34) 50%, rgba(141, 166, 255, 0.18) 55%, transparent 100%);
  filter: blur(14px);
  opacity: 0.55;
  transform: skewX(-20deg) translateX(-140%);
  animation: releaseScanlineSweep 5.4s linear infinite;
}

html[data-theme="light"] .release-banner {
  background:
    radial-gradient(circle at top right, rgba(126, 156, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.95), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 249, 255, 0.86) 48%, rgba(236, 241, 251, 0.76) 100%);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow:
    0 22px 62px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 0 30px rgba(255, 255, 255, 0.24);
}

.release-banner-copy,
.release-banner-mark {
  position: relative;
  z-index: 1;
}

.release-banner-copy {
  display: grid;
  gap: 12px;
  animation: releaseBannerRise 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.18s ease-out;
  will-change: transform;
}

.release-banner-copy:hover .release-banner-badge {
  transform: translateY(-2px) scale(1.03);
}

.release-banner:hover .release-banner-highlights span {
  transform: translateY(-5px);
}

.release-banner-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(18px);
  opacity: 0.9;
}

.release-banner-orb-one {
  width: 180px;
  height: 180px;
  top: -42px;
  left: -26px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(122, 146, 255, 0.08) 54%, transparent 74%);
  animation: releaseOrbDriftOne 4.8s ease-in-out infinite;
}

.release-banner-orb-two {
  width: 210px;
  height: 210px;
  right: 12%;
  bottom: -110px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(108, 130, 255, 0.12) 48%, transparent 72%);
  animation: releaseOrbDriftTwo 5.2s ease-in-out infinite;
}

.release-banner-badge {
  width: fit-content;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  animation: releaseBadgePulse 2.8s ease-in-out infinite;
  transition: transform 0.28s ease;
}

.release-banner h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4.8vw, 3.9rem);
  line-height: 1;
  letter-spacing: -0.06em;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
  animation: releaseTitleGlow 3.2s ease-in-out infinite;
  position: relative;
}

.release-banner h2::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -10px;
  width: min(220px, 44%);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(140, 160, 255, 0.34), transparent);
  animation: releaseUnderlineFlow 2.8s ease-in-out infinite;
}

html[data-theme="light"] .release-banner h2::after {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(99, 102, 241, 0.36), transparent);
}

.release-banner p {
  margin: 0;
  max-width: 58ch;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.9;
}

.release-banner-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.release-banner-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.9rem;
  animation: releaseChipFloat 3.1s ease-in-out infinite;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.release-banner-highlights span:nth-child(2) {
  animation-delay: 0.3s;
}

.release-banner-highlights span:nth-child(3) {
  animation-delay: 0.6s;
}

html[data-theme="light"] .release-banner-highlights span {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(15, 23, 42, 0.08);
}

.release-banner-mark {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 220px;
  padding: 26px 28px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 18px rgba(255, 255, 255, 0.04),
    0 22px 52px rgba(0, 0, 0, 0.18);
  animation: releaseBannerRise 1.2s cubic-bezier(0.22, 1, 0.36, 1) both, releaseMarkAura 4.8s ease-in-out infinite 1.2s;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}

.release-banner:hover .release-banner-mark {
  transform: translateY(-6px) rotateX(4deg) rotateY(-4deg);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 0 24px rgba(255, 255, 255, 0.06),
    0 26px 62px rgba(0, 0, 0, 0.24);
}

.release-mark-word,
.release-mark-version {
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text-primary);
}

.release-mark-topline {
  justify-self: center;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--text-secondary);
  animation: releaseToplineDrift 3.4s ease-in-out infinite;
}

.release-mark-core {
  display: grid;
  grid-template-columns: auto 1px auto;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.release-mark-word {
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  letter-spacing: 0.14em;
  animation: releaseWordShift 3.8s ease-in-out infinite;
}

.release-mark-divider {
  width: 1px;
  height: 118px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.22));
  animation: releaseDividerGlow 2.4s ease-in-out infinite;
}

html[data-theme="light"] .release-mark-divider {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.22));
}

.release-mark-version {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.08em;
  animation: releaseVersionPulse 2.1s ease-in-out infinite;
  transform-origin: center;
}

.release-mark-shine {
  position: absolute;
  inset: 12px;
  border-radius: 24px;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.16), transparent 26%, transparent 68%, rgba(255, 255, 255, 0.08));
  opacity: 0.8;
  animation: releaseShineSweep 2.8s linear infinite;
}

.release-banner:hover,
.release-banner:focus-within {
  box-shadow:
    0 32px 98px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 0 32px rgba(255, 255, 255, 0.06);
}

.release-mark-corner {
  position: absolute;
  width: 58px;
  height: 58px;
  border-color: rgba(255, 255, 255, 0.72);
  opacity: 0.9;
}

html[data-theme="light"] .release-mark-corner {
  border-color: rgba(15, 23, 42, 0.72);
}

.release-mark-corner-top {
  top: 20px;
  left: 20px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.release-mark-corner-bottom {
  right: 20px;
  bottom: 20px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.release-mark-corner-top {
  animation: releaseCornerBlinkTop 1.8s ease-in-out infinite;
}

.release-mark-corner-bottom {
  animation: releaseCornerBlinkBottom 2.1s ease-in-out infinite;
}

@keyframes releaseBannerRise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes releaseAmbientGlow {
  0%, 100% {
    box-shadow:
      0 28px 90px rgba(0, 0, 0, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      inset 0 0 30px rgba(255, 255, 255, 0.05);
  }
  50% {
    box-shadow:
      0 34px 104px rgba(68, 92, 190, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      inset 0 0 38px rgba(255, 255, 255, 0.08);
  }
}

@keyframes releaseBannerShimmer {
  0%, 100% {
    opacity: 0.68;
    transform: translateX(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(14px) scale(1.02);
  }
}

@keyframes releaseScanlineSweep {
  0% {
    transform: skewX(-20deg) translateX(-140%);
    opacity: 0;
  }
  12% {
    opacity: 0.72;
  }
  55% {
    opacity: 0.82;
  }
  100% {
    transform: skewX(-20deg) translateX(340%);
    opacity: 0;
  }
}

@keyframes releaseOrbDriftOne {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -14px, 0) scale(1.12);
  }
}

@keyframes releaseOrbDriftTwo {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-18px, 16px, 0) scale(1.1);
  }
}

@keyframes releaseBadgePulse {
  0%, 100% {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: translateY(0) scale(1);
  }
  50% {
    box-shadow: 0 16px 34px rgba(108, 130, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transform: translateY(-2px) scale(1.045);
  }
}

@keyframes releaseTitleGlow {
  0%, 100% {
    text-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
    transform: translateY(0);
  }
  50% {
    text-shadow: 0 16px 40px rgba(130, 148, 255, 0.18);
    transform: translateY(-3px);
  }
}

@keyframes releaseUnderlineFlow {
  0%, 100% {
    opacity: 0.7;
    transform: scaleX(0.92);
    transform-origin: right center;
  }
  50% {
    opacity: 1;
    transform: scaleX(1.08);
    transform-origin: right center;
  }
}

@keyframes releaseChipFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.03);
  }
}

@keyframes releaseMarkAura {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      inset 0 0 18px rgba(255, 255, 255, 0.04),
      0 22px 52px rgba(0, 0, 0, 0.18);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.26),
      inset 0 0 24px rgba(255, 255, 255, 0.06),
      0 30px 66px rgba(84, 104, 198, 0.22);
  }
}

@keyframes releaseToplineDrift {
  0%, 100% {
    letter-spacing: 0.24em;
    opacity: 0.78;
  }
  50% {
    letter-spacing: 0.32em;
    opacity: 1;
  }
}

@keyframes releaseWordShift {
  0%, 100% {
    transform: translateX(0);
    letter-spacing: 0.14em;
  }
  50% {
    transform: translateX(-6px) scale(1.03);
    letter-spacing: 0.2em;
  }
}

@keyframes releaseDividerGlow {
  0%, 100% {
    opacity: 0.82;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 28px rgba(255, 255, 255, 0.28);
  }
}

@keyframes releaseVersionPulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.08) rotate(-2deg);
  }
}

@keyframes releaseShineSweep {
  0%, 100% {
    opacity: 0.3;
    transform: translateX(-18px) skewX(-10deg);
  }
  50% {
    opacity: 1;
    transform: translateX(18px) skewX(-10deg);
  }
}

@keyframes releaseCornerBlinkTop {
  0%, 100% {
    opacity: 0.72;
    transform: translate(0, 0);
  }
  50% {
    opacity: 1;
    transform: translate(-3px, -3px) scale(1.05);
  }
}

@keyframes releaseCornerBlinkBottom {
  0%, 100% {
    opacity: 0.72;
    transform: translate(0, 0);
  }
  50% {
    opacity: 1;
    transform: translate(3px, 3px) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .release-banner,
  .release-banner::before,
  .release-banner::after,
  .release-banner-copy,
  .release-banner-mark,
  .release-banner-orb,
  .release-banner-badge,
  .release-banner h2,
  .release-banner-highlights span,
  .release-mark-divider,
  .release-mark-version,
  .release-mark-shine {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}

main.hero,
.project-hero,
.presentations-hero {
  padding-top: 32px;
}

.hero .container,
.project-hero-content,
.presentations-hero-grid,
.blocked-card,
.auth-box,
.chat-container,
.community-hero,
.meet-header,
.main-footer,
.purchase-card,
.project-card,
.content-section,
.purchase-box,
.project-meta,
.community-card,
.meet-video-card,
.presentations-card,
.presentations-mini-card,
.presentations-stat,
.admin-table-container,
.stat-card,
.form-container,
.empty-state,
.admin-team-page .team-messages,
.admin-team-page .team-compose,
.admin-team-page .team-msg .bubble,
.admin-sidebar {
  background: var(--glass-v3-surface);
  border: 1px solid var(--glass-v3-border);
  box-shadow: var(--glass-v3-glow), var(--glass-v3-shadow-soft);
  -webkit-backdrop-filter: var(--glass-v3-backdrop);
  backdrop-filter: var(--glass-v3-backdrop);
}

.hero .container {
  position: relative;
  overflow: hidden;
  padding: 56px clamp(22px, 5vw, 54px);
  border-radius: 34px;
  box-shadow: var(--glass-v3-glow), var(--glass-v3-shadow);
}

.hero .container::before,
.project-hero-content::before,
.community-hero::before,
.auth-box::before,
.presentations-card::before,
.purchase-box::before,
.content-section::before,
.admin-table-container::before,
.form-container::before,
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 35%, transparent 60%, rgba(255, 255, 255, 0.08));
  opacity: 0.85;
}

.hero h1,
.project-header h1,
.auth-box h2,
.presentations-hero-copy h1,
.presentations-deck-hero h1,
.presentations-verify-card h1,
.admin-content h1,
.community-hero h1 {
  letter-spacing: -0.03em;
}

.hero p,
.section-copy,
.footer-brand p,
.project-description,
.community-hero p,
.community-notice p,
.purchase-meta,
.meet-room,
.message.received .message-meta,
.message.sent .message-meta,
.presentations-card p,
.presentations-card li,
.project-header p {
  color: var(--text-secondary);
}

.section-head,
.section-header,
.reviews-header,
.community-job-head,
.community-post-header,
.meet-header {
  gap: 14px;
}

.section-head,
.section-header {
  margin-bottom: 22px;
}

.section-kicker,
.project-card-eyebrow,
.community-eyebrow,
.presentations-kicker,
.category-badge,
.community-post-stats span,
.community-job-pills span,
.community-meta-badge,
.status-badge,
.modified-badge {
  background: var(--glass-v3-surface-soft);
  border: 1px solid var(--glass-v3-border);
  box-shadow: var(--glass-v3-glow);
}

.projects-grid,
.community-feed,
.community-jobs-grid,
.presentations-overview-grid,
.presentations-main-grid,
.presentations-builder-grid,
.presentations-verify-grid,
.presentations-plans-grid,
.presentations-slides-grid,
.presentations-mini-grid,
.admin-stats-grid,
.stats-grid {
  gap: 22px;
}

.project-card,
.purchase-card,
.community-card,
.presentations-card,
.stat-card,
.form-container,
.admin-table-container,
.meet-video-card,
.project-image-item,
.project-meta,
.purchase-box,
.review-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.project-card,
.purchase-card,
.community-card,
.presentations-card,
.stat-card,
.meet-video-card,
.project-image-item,
.purchase-box,
.review-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover,
.purchase-card:hover,
.community-card:hover,
.presentations-card:hover,
.stat-card:hover,
.meet-video-card:hover,
.project-image-item:hover,
.purchase-box:hover,
.review-box:hover,
.admin-table-container:hover,
.form-container:hover {
  transform: translateY(-6px);
  border-color: var(--glass-v3-border-strong);
  box-shadow: var(--glass-v3-glow), 0 24px 70px rgba(0, 0, 0, 0.28);
}

.project-card,
.purchase-card {
  padding: 28px;
}

.project-image,
.project-image-item,
.project-post-media,
.community-post-media,
.meet-video-card video,
.project-image-item img,
.project-cover,
.preview-image {
  border-radius: 22px;
}

.project-card .project-image,
.project-card .placeholder-img {
  border-radius: 24px;
}

.project-card .project-image,
.placeholder-img,
.project-image-item,
.community-post-media,
.meet-video-card video {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.main-footer {
  margin-top: 48px;
  border-radius: 34px 34px 0 0;
  border-left: none;
  border-right: none;
}

.footer-content {
  gap: 28px;
}

.footer-links a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.footer-links a:hover {
  background: var(--glass-v3-pill);
  border-color: var(--glass-v3-border);
}

.form-group input,
.form-group select,
.form-group textarea,
.message-form textarea,
.appointment-book-form select,
.appointment-book-form input[type="text"],
.appointment-book-form input[type="date"],
.appointment-book-form input[type="time"],
.appointment-book-form input[type="number"],
.admin-team-page .compose-row input[type="text"],
.admin-team-page .compose-row textarea {
  background: var(--glass-v3-surface-soft);
  border: 1px solid var(--glass-v3-border);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.message-form textarea:focus,
.appointment-book-form select:focus,
.appointment-book-form input:focus,
.admin-team-page .compose-row input[type="text"]:focus,
.admin-team-page .compose-row textarea:focus {
  border-color: var(--glass-v3-border-strong);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.error-message,
.success-message,
.community-inline-message,
.presentations-flash,
.meet-status {
  border-radius: 20px;
  border: 1px solid var(--glass-v3-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--glass-v3-glow);
}

.error-message {
  background: linear-gradient(145deg, rgba(255, 92, 92, 0.14) 0%, rgba(255, 92, 92, 0.07) 100%);
}

.success-message,
.community-inline-message {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
}

.auth-page,
.messages-page,
.purchases-page,
.appointments-page,
.community-page,
.meet-page,
.project-detail-page {
  padding-top: 30px;
  padding-bottom: 64px;
}

.auth-box,
.chat-container,
.blocked-card {
  border-radius: 32px;
}

.auth-box {
  box-shadow: var(--glass-v3-glow), var(--glass-v3-shadow);
}

.chat-container {
  height: min(720px, calc(100vh - 190px));
}

.chat-header,
.chat-input {
  background: rgba(255, 255, 255, 0.06);
}

.message {
  border-radius: 24px;
  border: 1px solid var(--glass-v3-border);
  box-shadow: var(--glass-v3-glow);
}

.message.sent {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.76) 100%);
  color: rgba(0, 0, 0, 0.92);
}

.message.received {
  background: var(--glass-v3-surface-soft);
}

.community-hero {
  padding: 36px;
}

.community-post,
.community-job-card,
.community-tracking-card,
.community-composer,
.community-notice {
  border-radius: 28px;
}

.community-tracking-card,
.community-history-item,
.community-apply-form,
.community-comment-form,
.community-comments {
  background: var(--glass-v3-surface-soft);
  border: 1px solid var(--glass-v3-border);
  border-radius: 24px;
  box-shadow: var(--glass-v3-glow);
}

.community-apply-form,
.community-comment-form,
.community-comments,
.community-history-list,
.community-tracking-panel {
  padding: 22px;
}

.meet-header {
  padding: 24px 26px;
  border-radius: 28px;
  margin-bottom: 22px;
}

.meet-grid {
  gap: 22px;
}

.meet-video-card {
  padding: 20px;
}

.meet-video-card video {
  height: 360px;
}

.project-detail-page {
  background: transparent;
}

.project-hero {
  background: transparent;
  padding-bottom: 24px;
}

.project-hero::before,
.project-main-content::before {
  display: none;
}

.project-hero-content {
  max-width: 1240px;
  padding: 48px clamp(22px, 5vw, 46px);
  border-radius: 34px;
  overflow: hidden;
}

.project-main-content {
  max-width: 1240px;
  gap: 28px;
  padding-top: 10px;
}

.content-section,
.purchase-box,
.project-meta,
.review-box {
  padding: 28px;
}

.section-title::before {
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.32));
}

.tech-badge,
.category-badge {
  color: var(--text-primary);
}

.project-images-grid {
  gap: 18px;
}

.project-image-item img {
  display: block;
}

.presentations-card,
.presentations-mini-card,
.presentations-empty,
.presentations-owner-code,
.presentations-summary-row,
.presentations-list-item,
.presentations-notes,
.presentations-stat {
  border-radius: 28px;
}

.admin-layout {
  gap: 28px;
  padding: 18px 0 42px;
}

.admin-sidebar {
  top: 94px;
  right: 18px;
  width: 272px;
  border-radius: 30px;
  border-left: 1px solid var(--glass-v3-border);
  box-shadow: var(--glass-v3-glow), var(--glass-v3-shadow-soft);
}

.admin-nav {
  gap: 8px;
  padding: 0 14px;
}

.admin-nav a {
  border-radius: 18px;
  border: 1px solid transparent;
  margin-bottom: 0;
  padding: 14px 18px;
}

.admin-nav a:hover,
.admin-nav a.active {
  border-right-color: transparent;
  border-color: var(--glass-v3-border);
  background: var(--glass-v3-surface-soft);
}

.admin-content {
  margin-right: 300px;
  padding: 18px 12px 24px 0;
}

.stats-grid,
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
  min-height: 132px;
  padding: 26px;
}

.stat-card h3,
.stat-card p,
.stat-card span,
.stat-card strong {
  position: relative;
  z-index: 1;
}

.admin-table-container {
  padding: 18px;
}

.admin-table {
  overflow: hidden;
  border-radius: 22px;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.admin-table td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.06);
}

.form-container {
  padding: 26px;
}

.blocked-card {
  max-width: 780px;
}

.blocked-card h1,
.blocked-card h2 {
  letter-spacing: -0.03em;
}

html[data-theme="light"] .message.sent {
  color: rgba(15, 23, 42, 0.96);
}

html[data-theme="light"] .chat-header,
html[data-theme="light"] .chat-input,
html[data-theme="light"] .admin-table th,
html[data-theme="light"] .admin-table td,
html[data-theme="light"] .main-nav a:not(.btn):hover,
html[data-theme="light"] .footer-links a:hover {
  background: rgba(15, 23, 42, 0.04);
}

@media (max-width: 1100px) {
  .admin-sidebar {
    position: static;
    width: 100%;
    right: auto;
    top: auto;
  }

  .admin-content {
    margin-right: 0;
    padding-right: 0;
  }

  .project-main-content,
  .presentations-hero-grid,
  .presentations-main-grid,
  .presentations-builder-grid,
  .presentations-verify-grid,
  .project-content,
  .community-hero,
  .meet-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-header {
    padding-top: 10px;
  }

  .release-banner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
  }

  .release-banner-mark {
    min-height: 170px;
  }

  .main-header .container,
  .hero .container,
  .project-hero-content,
  .auth-box,
  .chat-container,
  .community-hero,
  .purchase-card,
  .project-card,
  .content-section,
  .purchase-box,
  .project-meta,
  .community-card,
  .meet-header,
  .meet-video-card,
  .presentations-card,
  .admin-table-container,
  .stat-card,
  .form-container,
  .main-footer {
    border-radius: 24px;
  }

  .hero .container,
  .project-hero-content,
  .community-hero,
  .auth-box,
  .chat-container,
  .purchase-card,
  .content-section,
  .purchase-box,
  .project-meta,
  .presentations-card,
  .form-container {
    padding: 22px;
  }

  .main-nav,
  .nav-links {
    gap: 8px;
  }

  .main-nav a:not(.btn),
  .user-name {
    padding: 9px 12px;
  }

  .meet-video-card video {
    height: 250px;
  }

  .chat-container {
    height: auto;
    min-height: 560px;
  }
}

@media (max-width: 640px) {
  .release-banner {
    padding: 20px 18px;
    border-radius: 26px;
  }

  .release-banner h2 {
    font-size: 2.2rem;
  }

  .release-banner p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .release-banner-mark {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
    min-height: unset;
    padding: 22px 18px;
  }

  .release-banner-highlights {
    gap: 8px;
  }

  .release-banner-highlights span {
    min-height: 36px;
    font-size: 0.84rem;
    padding: 0 12px;
  }

  .release-mark-core {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .release-mark-divider {
    width: 88px;
    height: 1px;
    justify-self: center;
  }

  .release-mark-corner {
    width: 40px;
    height: 40px;
  }

  .release-mark-corner-top {
    top: 14px;
    left: 14px;
  }

  .release-mark-corner-bottom {
    right: 14px;
    bottom: 14px;
  }
}

/* Smart navbar redesign */
.nav-shell {
  position: relative;
}

.smart-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: visible;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: nowrap;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-secondary);
  white-space: nowrap;
}

.nav-pill-badge,
.mobile-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

html[data-theme="light"] .nav-pill-badge,
html[data-theme="light"] .mobile-nav-badge {
  background: rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.92);
}

.nav-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
}

html[data-theme="light"] .nav-pill:hover {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(15, 23, 42, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.nav-compact-btn {
  min-height: 44px;
  padding: 0 16px;
}

.nav-user-chip {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--glass-v3-glow);
}

html[data-theme="light"] .nav-user-chip {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

.nav-user-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.nav-user-chip strong {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  font-size: 0.92rem;
}

.nav-more-menu {
  position: relative;
}

.nav-more-menu summary {
  list-style: none;
}

.nav-more-menu summary::-webkit-details-marker {
  display: none;
}

.nav-more-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--glass-v3-glow);
}

html[data-theme="light"] .nav-more-trigger {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

.nav-more-icon {
  font-weight: 700;
  transition: transform 0.2s ease;
}

.nav-more-menu[open] .nav-more-icon {
  transform: rotate(45deg);
}

.nav-more-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(20, 24, 38, 0.82) 0%, rgba(24, 28, 44, 0.72) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 16px rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  backdrop-filter: blur(26px) saturate(165%);
  z-index: 120;
}

html[data-theme="light"] .nav-more-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84) 0%, rgba(244, 247, 252, 0.78) 100%);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 0 16px rgba(255, 255, 255, 0.18);
}

.nav-more-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 16px;
  color: var(--text-primary);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .nav-more-link {
  background: rgba(15, 23, 42, 0.03);
}

.nav-more-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="light"] .nav-more-link:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.1);
}

.nav-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid var(--glass-v3-border);
  background: var(--glass-v3-surface-soft);
  box-shadow: var(--glass-v3-glow);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-panel[hidden] {
  display: none;
}

.mobile-nav-panel {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 18, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
}

html[data-theme="light"] .mobile-nav-backdrop {
  background: rgba(236, 240, 247, 0.62);
}

.mobile-nav-sheet {
  position: relative;
  width: min(390px, 86vw);
  max-width: 100vw;
  height: 100dvh;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 18px calc(20px + env(safe-area-inset-bottom, 0px));
  border-radius: 32px 0 0 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(14, 18, 30, 0.96) 0%, rgba(10, 14, 24, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-right: none;
  box-shadow: -28px 0 68px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

html[data-theme="light"] .mobile-nav-sheet {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(243, 246, 251, 0.96) 100%);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: -24px 0 54px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.mobile-nav-panel.is-open .mobile-nav-sheet {
  transform: translateX(0);
  opacity: 1;
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-kicker {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1;
  letter-spacing: 0.02em;
}

.mobile-nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: var(--text-primary);
}

.mobile-nav-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-nav-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  min-width: 0;
  margin-left: auto;
  text-align: right;
}

.mobile-nav-brand-copy strong {
  display: block;
  margin: 0;
  font-size: 1.42rem;
  line-height: 1;
}

.mobile-nav-subtitle {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.35;
}

.mobile-nav-close {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.mobile-nav-body {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 18px;
}

.mobile-nav-list {
  display: grid;
  gap: 12px;
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
}

.mobile-nav-user {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 4px;
  text-align: right;
}

html[data-theme="light"] .mobile-nav-user {
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(15, 23, 42, 0.08);
}

.mobile-nav-user-label {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.mobile-nav-auth {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.mobile-nav-link::before {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(135deg);
  opacity: 0.4;
  flex-shrink: 0;
}

html[data-theme="light"] .mobile-nav-link {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  transform: translateX(-2px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] .mobile-nav-link:hover,
html[data-theme="light"] .mobile-nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
}

.mobile-nav-link span {
  flex: 1;
  text-align: right;
}

.mobile-nav-link-secondary {
  color: var(--text-secondary);
}

.mobile-action-btn,
.mobile-theme-toggle {
  width: 100%;
}

.mobile-theme-toggle,
.mobile-action-btn {
  min-height: 46px;
}

@media (max-width: 420px) {
  .mobile-nav-sheet {
    width: 100vw;
    border-radius: 0;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-nav-auth {
    grid-template-columns: 1fr;
  }
}

body.nav-panel-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .nav-user-chip {
    display: none;
  }
}

@media (max-width: 960px) {
  .smart-nav {
    justify-content: flex-end;
  }

  .nav-primary,
  .nav-more-menu,
  .nav-actions > .nav-user-chip,
  .nav-actions > a.btn,
  .nav-actions > .theme-toggle {
    display: none;
  }

  .nav-menu-toggle {
    display: inline-flex;
  }

  .main-header .container {
    min-height: 74px;
  }
}

@media (max-width: 640px) {
  .main-header .container {
    padding: 10px 14px;
  }

  .logo a {
    gap: 8px;
    font-size: 1.2rem;
  }

  .logo-img {
    height: 34px;
  }
}
