/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #0D0D0D;
    color: #EAEAEA;
    line-height: 1.6;
}

.sr-file-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Text Rules */

h1 {
    font-size: 3rem;
    font-family: "Smooch Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    }


.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.view-all {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #ffffff;
}

.section-subtitle {
    color: #808080;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}


/* Navigation */
nav {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 72px);
    max-width: 1980px;
    background: rgba(10, 10, 10, 0.28);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    font-family: 'Georgia', 'Garamond', 'Times New Roman', serif;
    cursor: pointer;
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
}

.logo-icon {
    height: 35px;
    width: auto;
    display: inline-block;
    flex-shrink: 0;
    vertical-align: baseline;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    font-family: 'Georgia', 'Garamond', 'Times New Roman', serif;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

body.nav-scrolled .nav-links a {
    color: #ffffff;
}

body.nav-scrolled .nav-links a:hover,
body.nav-scrolled .nav-links a.active {
    color: #ffffff;
}

body:not(.not-home) .nav-links a,
body:not(.not-home) .login-btn,
body:not(.not-home) .signup-btn {
    color: #ffffff;
    font-weight: 600;
}

body:not(.not-home) .nav-links a:hover,
body:not(.not-home) .nav-links a.active,
body:not(.not-home) .login-btn:hover,
body:not(.not-home) .signup-btn:hover {
    color: #e0e0e0;
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 0.9rem;
    }
}


/* login & search */

.login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    background: none;
    border: none;
    color: #0a0a0a;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.login-btn:hover {
    color: #ffffff;
}

body.nav-scrolled .login-btn {
    color: #ffffff;
}

.signup-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    background: none;
    border: none;
    color: #0a0a0a;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.signup-btn span {
    white-space: nowrap;
}

.login-btn.is-hidden,
.signup-btn.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

.auth-logged-in nav .login-btn,
.auth-logged-in nav .signup-btn:not(.profile-btn) {
    display: none;
}

.auth-logged-in:not(.auth-ready) nav .login-btn,
.auth-logged-in:not(.auth-ready) nav .signup-btn:not(.profile-btn) {
    visibility: hidden;
    pointer-events: none;
}

.nav-links .login-btn,
.nav-links .signup-btn,
.nav-links .profile-btn {
    margin-left: 0;
}

.signup-btn:hover {
    color: #ffffff;
}

body.nav-scrolled .signup-btn {
    color: #ffffff;
}

body.not-home .nav-links a,
body.not-home .login-btn,
body.not-home .signup-btn {
    color: #ffffff;
}

body.not-home .nav-links a:hover,
body.not-home .nav-links a.active,
body.not-home .login-btn:hover,
body.not-home .signup-btn:hover {
    color: #e0e0e0;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.auth-logged-in .profile-btn {
    display: flex;
    visibility: visible;
}

.nav-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.341);
    background: transparent;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer; 
    transition: color 0.2s ease, border-color 0.2s ease;
    padding: 0;
}

.nav-icon-btn svg {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
}

.nav-icon-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
}

.nav-notifications-btn {
    position: relative;
}

.nav-notifications-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ff3b30;
    box-shadow: 0 0 0 2px #0b0b0b;
    display: none;
}

.nav-notifications-btn.has-unread .nav-notifications-dot {
    display: inline-block;
}

.nav-notifications {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-notifications-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    min-width: 220px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    display: none;
    z-index: 2000;
}

.nav-notifications.is-open .nav-notifications-menu {
    display: block;
}

.nav-notifications-empty {
    color: #9a9a9a;
    font-size: 0.9rem;
}

.overflow-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.overflow-toggle {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #bdbdbd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

.overflow-toggle:hover {
    color: #ffffff;
}

.overflow-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 0.4rem;
    min-width: 120px;
    display: none;
    z-index: 2100;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.overflow-menu.is-open .overflow-panel {
    display: block;
}

.overflow-item {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    color: #d6d6d6;
    text-align: left;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.overflow-item:hover {
    color: #ffffff;
    background: #1e1e1e;
}

.action-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.action-modal.is-open {
    display: flex;
}

.action-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.action-modal__dialog {
    position: relative;
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    width: min(90vw, 360px);
    color: #f0f0f0;
    display: grid;
    gap: 0.9rem;
}

.action-modal__dialog h3 {
    margin: 0;
    font-size: 1rem;
}

.action-modal__dialog p {
    margin: 0;
    color: #c6c6c6;
    font-size: 0.9rem;
    line-height: 1.5;
}

.action-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.action-modal__actions button {
    border-radius: 999px;
    padding: 0.4rem 1rem;
    border: 1px solid #2a2a2a;
    background: #101010;
    color: #e2e2e2;
    cursor: pointer;
}

.action-modal__actions button:hover {
    border-color: #3a3a3a;
    color: #ffffff;
}

.action-modal__link {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    background: #0f0f0f;
    color: #f0f0f0;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

/* Main wrapper */
main {
    margin-top: 80px;
}

body.not-home main {
    margin-top: 0;
}

body.not-home {
    padding-top: 80px;
}

body.not-home .search-container {
  width: 240px;
}

.search-container {
  position: relative;
  width: 300px;
}

#search-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgb(255, 255, 255);
  background: rgba(255, 255, 255, 0);
  color: #f3f3f3;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#search-input:focus {
  outline: none;
  border-color: #e2e2e2;
  box-shadow: 0 0 0 3px rgba(240, 64, 48, 0.15);
}

#search-input::placeholder {
  color: #bfbfbf;
}

.search-results {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.35);
}

.search-result-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.search-results .search-result-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.search-results .search-result-thumb {
  width: 24px;
  height: 34px;
  border-radius: 4px;
  background: #1b1b1b;
  border: 1px solid #2b2b2b;
  overflow: hidden;
  flex: 0 0 24px;
}

.search-results .search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-results .search-result-content {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
}

.search-results .search-result-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Auth Modal */
.auth-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.auth-modal.is-open {
  display: flex;
}

.auth-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 92vw);
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  padding: 2rem;
}

.auth-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.auth-modal__title {
  font-size: 1.4rem;
  font-weight: 700;
}

.auth-modal__close {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #bbb;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.auth-modal__body {
  display: grid;
  gap: 1rem;
}

.auth-modal__field label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 0.4rem;
}

.auth-modal__field input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #2b2b2b;
  background: #0b0b0b;
  color: #f1f1f1;
}

.auth-modal__field input[aria-invalid="true"] {
  border-color: rgba(255, 96, 96, 0.9);
}

.auth-modal__error {
  color: #ff8f8f;
  font-size: 0.86rem;
  line-height: 1.35;
  margin-top: -0.2rem;
}

.auth-modal__error.is-success {
  color: #8fe8b1;
}

.auth-modal__error[hidden] {
  display: none;
}

.auth-modal__checks {
  display: grid;
  gap: 0.55rem;
}

.auth-modal__check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #cfcfcf;
  font-size: 0.85rem;
  line-height: 1.4;
}

.auth-modal__check input[type="checkbox"] {
  margin-top: 0.1rem;
  width: 16px;
  height: 16px;
  accent-color: #F04030;
  flex: 0 0 16px;
}

.auth-modal__check a {
  color: #e5e5e5;
  text-underline-offset: 2px;
}

.auth-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.auth-modal__helper {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.35rem;
}

.auth-modal__text-btn {
  border: none;
  background: transparent;
  color: #bcbcbc;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

.auth-modal__text-btn:hover {
  color: #ffffff;
}

.auth-modal__actions .primary {
  background: #F04030;
  border: none;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.auth-modal__actions .secondary {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #ddd;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0b0b;
  padding: 3rem;
  margin-top: 4rem;
}

.site-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 2rem;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__social {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.site-footer__social .social-link {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d2d2d2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.site-footer__social .social-link:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.site-footer__social svg {
  width: 16px;
  height: 16px;
}

.site-footer__copyright {
  margin-top: 0.75rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.25;
}

.site-footer__brand p {
  color: #9a9a9a;
  font-size: 0.95rem;
}

.site-footer__nav h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b5b5b5;
  margin-bottom: 0.75rem;
}

.site-footer__nav a {
  display: block;
  color: #d2d2d2;
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.site-footer__nav a:hover {
  color: #ffffff;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
}

.site-footer__logo .logo-icon {
  height: 32px;
}

@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

.search-result-title {
  font-size: 14px;
  font-weight: 500;
}

.search-result-meta {
  font-size: 12px;
  color: #888;
}

.user-upvote-total {
  font-weight: 300;
  color: #a7a7a7;
  letter-spacing: 0.01em;
}

.user-featured-badge {
  width: 18px;
  height: 18px;
  margin-left: 0.3rem;
  border-radius: 4px;
  object-fit: contain;
  vertical-align: middle;
}

.auth-hint {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2400;
  padding: 1.15rem 1.8rem;
  background: rgba(18, 18, 18, 0.95);
  border-bottom: 1px solid rgba(240, 64, 48, 0.4);
  color: #f04030;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.auth-hint.is-visible {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

/* Global responsive baseline */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

@media (max-width: 1024px) {
  :root {
    font-size: 15px;
  }

  .site-footer,
  body.not-home,
  main {
    width: 100%;
  }
}

@media (max-width: 900px) {
  nav {
    padding: 0.8rem 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: rgba(10, 10, 10, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links {
    width: 100%;
    gap: 0.5rem;
    align-items: stretch;
  }

  .search-container,
  body.not-home .search-container {
    order: 99;
    width: 100%;
    flex: 1 1 100%;
  }

  .nav-links a,
  .login-btn,
  .signup-btn,
  .profile-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(20, 20, 20, 0.72);
  }

  .nav-icon-btn,
  .overflow-toggle,
  .site-footer__social .social-link,
  .auth-modal__close {
    width: 44px;
    height: 44px;
  }

  body.not-home {
    padding-top: 108px;
  }
}

@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }

  body {
    line-height: 1.5;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
    line-height: 1.1;
  }

  h2 {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
    line-height: 1.2;
  }

  p,
  li,
  .section-subtitle {
    font-size: 1rem;
  }

  main {
    margin-top: 0;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .site-footer,
  .content-section,
  .community-feed,
  .daily-trivia,
  .top-movies {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .site-footer {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .site-footer__inner {
    gap: 1.2rem;
  }

  button,
  .btn-primary,
  .btn-secondary,
  .btn-danger,
  .page-btn,
  .watchlist-link,
  .trivia-submit,
  .overflow-item,
  input[type="button"],
  input[type="submit"],
  select,
  .sort-select,
  .filter-select {
    min-height: 44px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  [class*="grid"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 414px) {
  .nav-links a,
  .login-btn,
  .signup-btn,
  .profile-btn {
    flex: 1 1 auto;
  }

  body.not-home {
    padding-top: 112px;
  }
}

/* Mobile nav collapse under 1024px */
.nav-mobile-controls {
  display: none;
}

@media (max-width: 1024px) {
  nav {
    position: fixed;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: rgba(10, 10, 10, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  .logo-icon {
    height: 30px;
  }

  .nav-mobile-controls {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-mobile-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(19, 19, 19, 0.88);
    color: #f1f1f1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .nav-mobile-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(34, 34, 34, 0.95);
  }

  .nav-mobile-search svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .nav-mobile-menu {
    flex-direction: column;
    gap: 4px;
  }

  .nav-mobile-menu span {
    width: 17px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    z-index: 1300;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(12, 12, 12, 0.98);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
  }

  nav.nav-menu-open .nav-links,
  nav.nav-search-open .nav-links {
    display: flex;
  }

  .nav-links .search-container {
    display: none;
    width: 100%;
    order: -1;
  }

  nav.nav-search-open .nav-links .search-container {
    display: block;
  }

  nav.nav-search-open .nav-links > :not(.search-container) {
    display: none !important;
  }

  .nav-links a,
  .login-btn,
  .signup-btn,
  .profile-btn,
  .nav-notifications .nav-icon-btn {
    width: 100%;
    justify-content: flex-start;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: #f1f1f1;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    font-weight: 600;
  }

  .nav-notifications-btn svg,
  .nav-profile-btn svg {
    display: none;
  }

  .nav-notifications-btn::after {
    content: "Notifications";
    font-weight: 600;
  }

  .nav-profile-btn::after {
    content: "Profile";
  }

  .nav-notifications {
    width: 100%;
  }

  .nav-notifications-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 0.45rem;
    border-radius: 10px;
    box-shadow: none;
    background: #101010;
  }

  body.not-home {
    padding-top: 86px;
  }
}

@media (max-width: 768px) {
  nav {
    width: calc(100% - 24px);
    padding: 0.65rem 0.75rem;
    gap: 0.5rem;
  }

  .logo-icon {
    height: 26px;
  }

  .nav-mobile-controls {
    gap: 0.4rem;
  }

  .nav-mobile-btn {
    width: 40px;
    height: 40px;
  }
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2200;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__content {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 14px 16px;
}

.cookie-banner__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f5f5f5;
}

.cookie-banner__text {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #c3c3c3;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cookie-btn {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f4f4f4;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn--primary {
  border: none;
  background: linear-gradient(135deg, #f04030, #ff6b4a);
  box-shadow: 0 8px 20px rgba(240, 64, 48, 0.35);
}

.cookie-btn--secondary:hover,
.cookie-btn--primary:hover {
  filter: brightness(1.05);
}

.cookie-btn--primary:hover {
  box-shadow: 0 10px 22px rgba(240, 64, 48, 0.42);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: none;
}

.cookie-modal.is-open {
  display: block;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.cookie-modal__panel {
  position: relative;
  width: min(520px, calc(100% - 24px));
  margin: 12vh auto 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: #0f0f10;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.58);
  padding: 18px;
}

.cookie-modal__panel h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #f5f5f5;
}

.cookie-modal__panel p {
  margin: 8px 0 14px;
  color: #bebebe;
  font-size: 0.92rem;
}

.cookie-modal__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #f0f0f0;
}

.cookie-modal__option input {
  width: 18px;
  height: 18px;
}

.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.coming-soon-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2100;
}

.coming-soon-modal.is-open {
  display: flex;
}

.coming-soon-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.coming-soon-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111111;
  color: #ffffff;
  padding: 1.25rem 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.45);
}

.coming-soon-modal__dialog h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.coming-soon-modal__close {
  margin-top: 1rem;
  min-height: 44px;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.coming-soon-modal__close:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-modal__panel {
    margin-top: 8vh;
    padding: 14px;
  }

  .coming-soon-modal__dialog {
    width: min(320px, 100%);
  }
}
