 /* Captcha: hide by default, show only when captcha-active */
.captcha-overlay {
  display: none;
}

body.captcha-active .captcha-overlay {
  display: flex;
}

/* Prevent FOUC (flash of unstyled content) */
body:not(.captcha-active) .captcha-overlay {
  display: none !important;
}
 
 
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('../assets/img/seller-card-bg.png');
    background-size: cover; /* Растянуть на весь экран */
    background-position: center; /* Центрировать */
    background-attachment: fixed; /* Фиксировать фон */
    background-repeat: no-repeat;
    color: #fff;
    font-family: 'Cairo', sans-serif;
  }

  body.is-loading {
    overflow: hidden;
  }

  body.is-loading > *:not(.site-loader):not(.captcha-overlay) {
    filter: blur(10px);
    opacity: 0.35;
    transition: filter 0.3s ease, opacity 0.3s ease;
  }

  .site-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 5, 0.78);
    backdrop-filter: blur(16px);
    transition: opacity 0.4s ease;
  }

  .site-loader__text {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    position: relative;
    color: #f8fafc;
    text-shadow: 0 0 22px rgba(249, 115, 22, 0.45),
      0 0 45px rgba(249, 115, 22, 0.35),
      0 0 80px rgba(249, 115, 22, 0.2);
    animation: loaderGlow 2.2s ease-in-out infinite;
  }

  .site-loader__text::after {
    content: '';
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -0.35em;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.9), transparent);
    opacity: 0.8;
    filter: blur(0.5px);
    transform-origin: left;
    transform: scaleX(var(--loader-progress, 0));
    transition: transform 0.15s ease;
  }

  .site-loader__text span {
    color: #f97316;
  }

  .site-loader__accent {
    color: #f97316;
    text-shadow: 0 0 26px rgba(249, 115, 22, 0.8),
      0 0 55px rgba(249, 115, 22, 0.55);
  }

  .site-loader--hidden {
    opacity: 0;
    pointer-events: none;
  }

  @keyframes loaderGlow {
    0%,
    100% {
      text-shadow: 0 0 18px rgba(249, 115, 22, 0.35),
        0 0 45px rgba(249, 115, 22, 0.3),
        0 0 90px rgba(249, 115, 22, 0.2);
    }
    50% {
      text-shadow: 0 0 30px rgba(249, 115, 22, 0.6),
        0 0 70px rgba(249, 115, 22, 0.4),
        0 0 120px rgba(249, 115, 22, 0.3);
    }
  }


  /* Animations */
  @keyframes orangeFire {

    0%,
    100% {
      text-shadow: 0 0 5px rgba(255, 140, 0, 0.5), 0 0 10px rgba(255, 140, 0, 0.5), 0 0 15px rgba(255, 140, 0, 0.4), 0 0 20px rgba(249, 115, 22, 0.4);
    }

    50% {
      text-shadow: 0 0 8px rgba(255, 140, 0, 0.5), 0 0 13px rgba(255, 140, 0, 0.5), 0 0 18px rgba(255, 140, 0, 0.4), 0 0 23px rgba(249, 115, 22, 0.4);
    }
  }

  @keyframes pulse {

    0%,
    100% {
      opacity: 1;
    }

    50% {
      opacity: 0.5;
    }
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(-50%);
    }
  }

  .fire-text {
    animation: orangeFire 2s ease-in-out infinite;
  }

  .pulse {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  /* Header */
  .header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 50;
    border-bottom: 1px solid #1f2937;
  }

  .header-content {
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .header-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .header-menu-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 2rem;
  }

  .header-notifications {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .header-content > .header-notifications,
  .header-content > .header-menu-toggle {
    margin-left: 0;
  }

  .header-menu-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 2rem;
  }

  .header-notifications {
    display: flex;
    align-items: center;
  }

  .logo {
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: -0.02em;
    margin-left: 15px;
    text-decoration: none;
    color: #fff;
  }

  .logo:hover {
    color: #f97316;
  }

  .logo span {
    color: #f97316;
  }

  .site-footer {
    margin-top: 3rem;
    padding: 2.5rem 0 2rem;
    background: linear-gradient(145deg, rgba(15, 15, 15, 0.98), rgba(5, 5, 5, 0.98));
    border-top: 1px solid #1f2937;
  }

  .site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  .site-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    text-align: left;
    max-width: 420px;
  }

  .site-footer__logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: #fff;
  }

  .site-footer__logo span {
    color: #f97316;
  }

  .site-footer__desc {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
  }

  .site-footer__title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f8fafc;
    margin-bottom: 0.85rem;
    text-align: center;
  }

  .site-footer__column {
    text-align: center;
  }

  .site-footer__list {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.2rem;
  }

  .site-footer__list a,
  .site-footer__text {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
  }

  .site-footer__list a:hover,
  .site-footer__list a:focus {
    color: #f97316;
  }

  .site-footer__button {
    border: none;
    background: transparent;
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 15px 24px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(249, 115, 22, 0.5);
    white-space: nowrap;
  }

  .site-footer__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.25);
    background: #f97316;
    color: #000;
  }
  .nav {
    position: relative;
    display: flex;
    gap: 3rem;
    align-items: center;
  }

  .nav-btn {
    background: none;
    color: #9ca3af;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    /* border-bottom: 2px solid transparent; */
    text-decoration: none;
    padding-bottom: 6px;
    transition:
      color 0.3s ease,
      border-color 0.3s ease;
  }

  .nav-btn:hover {
    color: #fff;
    letter-spacing: 0.08em;
  }

  .nav-btn.active {
    border-bottom-color: #f97316;
    color: #f97316;
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
  }

  .nav-btn--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: auto;
  }

  .nav-btn--disabled:hover {
    color: #9ca3af;
    letter-spacing: 0.05em;
  }

  .nav-btn--disabled::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    background: rgba(15, 15, 15, 0.95);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
  }

  .nav-btn--disabled:hover::after {
    opacity: 1;
  }

  .header-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 42px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 15, 15, 0.65);
    color: #fff;
    cursor: pointer;
  }

  .header-menu-actions {
    display: none;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: flex-end;
  }

  .header-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
  }

  @media (max-width: 1100px) {
    .header-content {
      padding: 0.5rem;
    }

    .header-controls {
      margin-left: auto;
    }

    .logo {
      margin-left: 0;
      font-size: 1.2rem;
    }

    .header-menu-panel {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      display: none;
      flex-direction: column;
      align-items: center;
      gap: 1.5rem;
      padding: 1.5rem 1.5rem 2rem;
      background: rgba(5, 5, 5, 0.96);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav {
      width: 100%;
      flex-direction: column;
      align-items: center;
      gap: 1.1rem;
    }

    .nav-btn,
    .escrow-btn {
      width: 100%;
      text-align: center;
      justify-content: center;
    }

    .header-profile {
      width: 100%;
      justify-content: flex-end;
    }

    .header-profile .profile-chip {
      display: none;
    }

    .header-menu-toggle {
      display: flex;
      order: 2;
    }

    .header-menu-actions {
      display: flex;
    }

    body.header-menu-open .header-menu-panel {
      display: flex;
    }

    body.header-menu-open .create-btn {
      display: none;
    }
  }

  @media (max-width: 768px) {
    main {
      padding: 0 5px;
    }

    .site-footer__inner {
      padding: 0 5px;
    }
  }

  /* .nav-btn::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 0%;
      height: 2px;
      background: linear-gradient(to right, #f97316, #ea580c);
      transition: width 0.3s ease;
    } */

  /* .nav-btn.active::after {
      width: 100%;
      box-shadow: 0 0 10px rgba(249,115,22,0.8);
    } */

  .admin-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s;
  }

  .guest-locked {
    opacity: 0.45;
    cursor: not-allowed;
    position: relative;
  }

  .guest-locked::after {
    content: attr(data-guest-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: rgba(15, 15, 15, 0.95);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    z-index: 100;
  }

  .guest-locked:hover::after {
    opacity: 1;
  }

  .guest-restriction-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: rgba(15, 15, 15, 0.95);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
  }

  .guest-restriction-toast.visible {
    opacity: 1;
  }

  /* Main */
  main {
    padding-top: 4rem;
  }

  /* Decorative elements */
  .deco-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
  }

  .deco-line {
    position: absolute;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
  }

  /* ESCROW Button */
  .escrow-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .escrow-btn:hover {
    color: #fff;
  }

  .escrow-btn .beta {
    font-size: 0.6rem;
    color: #f97316;
    vertical-align: super;
    font-weight: 600;
  }

  /* ESCROW Modal */
  .escrow-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .escrow-modal-overlay.active {
    display: flex;
    opacity: 1;
  }

  .escrow-modal {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.05);
    transform: scale(0.9);
    transition: transform 0.3s ease;
  }

  .escrow-modal-overlay.active .escrow-modal {
    transform: scale(1);
  }

  .escrow-modal-title {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 1rem;
  }

  .escrow-modal-desc {
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  @keyframes gradientShift {
    0% {
      background-position: 0% 50%;
    }

    50% {
      background-position: 100% 50%;
    }

    100% {
      background-position: 0% 50%;
    }
  }

  .escrow-modal-btn {
    display: inline-block;
    background: linear-gradient(90deg, #f97316, #ea580c, #fb923c, #f97316);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    padding: 0.875rem 3rem;
    border-radius: 0.5rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
  }

  .escrow-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(249, 115, 22, 0.6);
  }

  .escrow-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
  }

  .escrow-modal-close:hover {
    color: #fff;
  }

  /* Logout confirmation modal */
  .logout-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 120;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .logout-confirm-overlay.active {
    display: flex;
    opacity: 1;
  }

  .logout-confirm-modal {
    position: relative;
    background: rgba(17, 17, 17, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    padding: 2.25rem 2.5rem;
    width: min(92vw, 420px);
    text-align: center;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    transform: translateY(10px) scale(0.96);
    transition: transform 0.3s ease;
  }

  .logout-confirm-overlay.active .logout-confirm-modal {
    transform: translateY(0) scale(1);
  }

  .logout-confirm-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
  }

  .logout-confirm-desc {
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }

  .logout-confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .logout-confirm-btn {
    border-radius: 0.65rem;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.25s ease;
  }

  .logout-confirm-btn.confirm {
    border: none;
    color: #fff;
    background: linear-gradient(90deg, #f97316, #ea580c, #fb923c, #f97316);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
  }

  .logout-confirm-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(249, 115, 22, 0.5);
  }

  .logout-confirm-btn.cancel {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
  }

  .logout-confirm-btn.cancel:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
  }

  .logout-confirm-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .logout-confirm-close:hover {
    color: #fff;
  }

  body.logout-confirm-open {
    overflow: hidden;
  }

  /* Site alert modal */
  .site-alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 7, 10, 0.74);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 1.5rem;
  }

  .site-alert-overlay.active {
    display: flex;
    opacity: 1;
  }

  body.site-alert-open {
    overflow: hidden;
  }

  .site-alert-modal {
    width: min(92vw, 440px);
    background: rgba(17, 17, 17, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.4rem;
    padding: 2rem 2.25rem 1.75rem;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
    transform: translateY(12px) scale(0.97);
    transition: transform 0.25s ease;
  }

  .site-alert-overlay.active .site-alert-modal {
    transform: translateY(0) scale(1);
  }

  .site-alert-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .site-alert-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.2rem;
    color: #111827;
    background: linear-gradient(135deg, #f97316, #fb923c);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.35);
  }

  .site-alert-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0;
  }

  .site-alert-message {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
  }

  .site-alert-actions {
    display: flex;
    justify-content: flex-end;
  }

  .site-alert-btn {
    border: none;
    border-radius: 0.75rem;
    padding: 0.7rem 2rem;
    font-weight: 900;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, #f97316, #ea580c, #fb923c, #f97316);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .site-alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.5);
  }

  /* Site prompt modal */
  .site-prompt-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10000;
    padding: 1.5rem;
  }

  .site-prompt-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  body.site-prompt-open {
    overflow: hidden;
  }

  .site-prompt-modal {
    width: min(520px, 92vw);
    padding: 24px;
    border-radius: 1.4rem;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(2, 6, 23, 0.96));
    border: 1px solid rgba(249, 115, 22, 0.35);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    color: #f8fafc;
  }

  .site-prompt-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .site-prompt-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.1rem;
    color: #111827;
    background: linear-gradient(135deg, #f97316, #fb923c);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.35);
  }

  .site-prompt-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
    margin: 0;
  }

  .site-prompt-desc {
    margin: 0 0 1.25rem;
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .site-prompt-fields {
    display: grid;
    gap: 0.9rem;
  }

  .site-prompt-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .site-prompt-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f97316;
    font-weight: 800;
  }

  .site-prompt-input {
    border-radius: 0.85rem;
    padding: 0.75rem 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    font-size: 0.95rem;
  }

  .site-prompt-input:focus {
    outline: none;
    border-color: rgba(249, 115, 22, 0.8);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
  }

  .site-prompt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
  }

  .site-prompt-btn {
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, #f97316, #ea580c, #fb923c, #f97316);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .site-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.45);
  }

  .site-prompt-btn.ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.4);
    animation: none;
    box-shadow: none;
  }

  .nav-indicator {
    position: absolute;
    bottom: -6px;
    height: 2px;

    background: linear-gradient(90deg, #f97316, #fb923c, #f97316);
    background-size: 200% 100%;
    animation: indicatorFlow 2.5s linear infinite;

    border-radius: 2px;

    left: 50%;
    /* ❗ NOT 0 */
    width: 0;
    /* always 0 on start */
    opacity: 0;

    transition:
      left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.25s ease;
  }


  @keyframes indicatorFlow {
    from {
      background-position: 0% 50%;
    }

    to {
      background-position: 200% 50%;
    }
  }


  /* Captcha Overlay */
  .captcha-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(10, 10, 20, 0.85) 0%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: opacity 0.8s ease, visibility 0.8s ease, backdrop-filter 0.8s ease;
  }

  .captcha-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.08) 0%, transparent 40%),
      radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.08) 0%, transparent 40%),
      radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.03) 0%, transparent 60%);
    pointer-events: none;
    /* important: don't intercept the mouse */
  }

  .captcha-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(0px);
  }

  .captcha-container {
    position: relative;
    background: linear-gradient(145deg, rgba(20, 25, 35, 0.95), rgba(10, 12, 18, 0.98));
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 2rem;
    padding: 3rem 4rem;
    text-align: center;
    box-shadow:
      0 0 100px rgba(249, 115, 22, 0.15),
      0 25px 80px rgba(0, 0, 0, 0.8),
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transform: scale(0.8) rotateX(10deg);
    opacity: 0;
    animation: captchaAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    perspective: 1000px;
    pointer-events: auto;
  }

  .captcha-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), transparent 30%, transparent 70%, rgba(249, 115, 22, 0.3));
    border-radius: 2rem;
    z-index: -1;
    opacity: 0;
    animation: borderGlow 3s ease-in-out infinite;
  }


  @keyframes borderGlow {

    0%,
    100% {
      opacity: 0.3;
    }

    50% {
      opacity: 0.7;
    }
  }

  @keyframes captchaAppear {
    to {
      transform: scale(1) rotateX(0deg);
      opacity: 1;
    }
  }

  .captcha-logo {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
  }

  .captcha-logo span {
    color: #f97316;
  }

  .captcha-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 0.25rem;
  }

  .captcha-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .captcha-subtitle .arrow-icon {
    display: inline-block;
    color: #f97316;
    animation: arrowBounce 1s ease-in-out infinite;
  }

  @keyframes arrowBounce {

    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-3px);
    }
  }

  .captcha-rings-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto 1.5rem;
  }

  /* Glowing background effect */
  .captcha-glow {
    position: absolute;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    animation: glowPulse 3s ease-in-out infinite;
  }

  @keyframes glowPulse {

    0%,
    100% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.5;
    }

    50% {
      transform: translate(-50%, -50%) scale(1.2);
      opacity: 0.8;
    }
  }

  /* Particle effects */
  .captcha-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* important */
    overflow: hidden;
    border-radius: 50%;
  }

  .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #f97316;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 6px #f97316;
  }

  .captcha-rings {
    position: relative;
    pointer-events: auto;
    width: 320px;
    height: 320px;
  }

  .captcha-ring {
    position: absolute;
    border-radius: 50%;
    cursor: grab;
    transition: box-shadow 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .captcha-ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(249, 115, 22, 0.3) 25%, transparent 50%, rgba(249, 115, 22, 0.3) 75%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    animation: ringRotate 8s linear infinite paused;
  }

  @keyframes ringRotate {
    to {
      transform: rotate(360deg);
    }
  }

  .captcha-ring:hover::before {
    opacity: 1;
    animation-play-state: running;
  }

  .captcha-ring:hover {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.4), inset 0 0 20px rgba(249, 115, 22, 0.1);
  }

  .captcha-ring:active {
    cursor: grabbing;
  }

  .captcha-ring.dragging {
    transition: none;
  }

  .captcha-ring.correct {
    border-color: #22c55e !important;
    box-shadow:
      0 0 40px rgba(34, 197, 94, 0.5),
      0 0 80px rgba(34, 197, 94, 0.2),
      inset 0 0 30px rgba(34, 197, 94, 0.15);
  }

  .captcha-ring.correct::before {
    background: conic-gradient(from 0deg, transparent 0%, rgba(34, 197, 94, 0.4) 25%, transparent 50%, rgba(34, 197, 94, 0.4) 75%, transparent 100%);
    opacity: 1;
    animation-play-state: running;
  }

  /* Ring sizes and styles */
  .captcha-ring-outer {
    width: 320px;
    height: 320px;
    top: 0;
    left: 0;
    border: 4px solid rgba(249, 115, 22, 0.25);
    background:
      radial-gradient(circle at center, transparent 45%, rgba(249, 115, 22, 0.03) 50%, transparent 55%),
      repeating-conic-gradient(from 0deg, transparent 0deg 8deg, rgba(249, 115, 22, 0.05) 8deg 10deg);
  }

  .captcha-ring-middle {
    width: 230px;
    height: 230px;
    top: 45px;
    left: 45px;
    border: 4px solid rgba(249, 115, 22, 0.3);
    background:
      radial-gradient(circle at center, transparent 40%, rgba(249, 115, 22, 0.05) 45%, transparent 50%),
      repeating-conic-gradient(from 0deg, transparent 0deg 12deg, rgba(249, 115, 22, 0.06) 12deg 15deg);
  }

  .captcha-ring-inner {
    width: 140px;
    height: 140px;
    top: 90px;
    left: 90px;
    border: 4px solid rgba(249, 115, 22, 0.35);
    background:
      radial-gradient(circle at center, transparent 30%, rgba(249, 115, 22, 0.08) 35%, transparent 40%),
      repeating-conic-gradient(from 0deg, transparent 0deg 18deg, rgba(249, 115, 22, 0.08) 18deg 22deg);
  }

  /* Tick marks on rings */
  .captcha-ring-ticks {
    position: absolute;
    inset: 0;
    border-radius: 50%;
  }

  .tick {
    position: absolute;
    width: 2px;
    height: 8px;
    background: rgba(249, 115, 22, 0.3);
    top: 4px;
    left: 50%;
    transform-origin: center calc(50% + 50px);
  }

  .tick.major {
    height: 12px;
    width: 3px;
    background: rgba(249, 115, 22, 0.5);
  }

  /* Arrow indicators */
  .captcha-arrow-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .captcha-arrow {
    position: relative;
  }

  .captcha-arrow-outer {
    top: 8px;
  }

  .captcha-arrow-outer .arrow-shape {
    width: 24px;
    height: 24px;
    background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
    clip-path: polygon(50% 0%, 100% 100%, 75% 100%, 75% 60%, 25% 60%, 25% 100%, 0% 100%);
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.6));
    transition: filter 0.3s, transform 0.3s;
  }

  .captcha-arrow-middle {
    top: 8px;
  }

  .captcha-arrow-middle .arrow-shape {
    width: 20px;
    height: 20px;
    background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
    clip-path: polygon(50% 0%, 100% 100%, 70% 100%, 70% 55%, 30% 55%, 30% 100%, 0% 100%);
    filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.5));
    transition: filter 0.3s, transform 0.3s;
  }

  .captcha-arrow-inner {
    top: 6px;
  }

  .captcha-arrow-inner .arrow-shape {
    width: 16px;
    height: 16px;
    background: linear-gradient(180deg, #fdba74 0%, #fb923c 100%);
    clip-path: polygon(50% 0%, 100% 100%, 65% 100%, 65% 50%, 35% 50%, 35% 100%, 0% 100%);
    filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.4));
    transition: filter 0.3s, transform 0.3s;
  }

  .captcha-ring:hover .arrow-shape {
    filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.9));
    transform: scale(1.1);
  }

  .captcha-ring.correct .arrow-shape {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%) !important;
    filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.8)) !important;
  }

  /* Center lock */
  .captcha-center {
    position: absolute;
    width: 70px;
    height: 70px;
    top: 125px;
    left: 125px;
    background:
      radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 50%),
      linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border: 3px solid rgba(249, 115, 22, 0.3);
    box-shadow:
      0 0 30px rgba(249, 115, 22, 0.2),
      inset 0 2px 10px rgba(0, 0, 0, 0.5),
      inset 0 -2px 10px rgba(255, 255, 255, 0.05);
    transition: all 0.5s ease;
  }

  .captcha-center.unlocked {
    border-color: #22c55e;
    box-shadow:
      0 0 50px rgba(34, 197, 94, 0.4),
      0 0 100px rgba(34, 197, 94, 0.2),
      inset 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: unlockPulse 0.5s ease;
  }

  @keyframes unlockPulse {
    0% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.2);
    }

    100% {
      transform: scale(1);
    }
  }

  /* Target indicator at top */
  .captcha-target {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .captcha-target::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(249, 115, 22, 0.5);
    border-radius: 50%;
    animation: targetPulse 2s ease-in-out infinite;
  }

  .captcha-target::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #f97316;
    border-radius: 50%;
    box-shadow: 0 0 10px #f97316;
  }

  @keyframes targetPulse {

    0%,
    100% {
      transform: scale(1);
      opacity: 1;
    }

    50% {
      transform: scale(1.5);
      opacity: 0.5;
    }
  }

  /* Progress indicator */
  .captcha-progress {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.2);
    border: 2px solid rgba(249, 115, 22, 0.3);
    transition: all 0.3s ease;
  }

  .progress-dot.active {
    background: #22c55e;
    border-color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
    animation: dotPop 0.3s ease;
  }

  @keyframes dotPop {
    0% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.4);
    }

    100% {
      transform: scale(1);
    }
  }

  .captcha-hint {
    font-size: 0.75rem;
    color: #4b5563;
    margin-top: 0.5rem;
  }

  .captcha-success {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
  }

  .captcha-success.show {
    opacity: 1;
    visibility: visible;
  }

  .captcha-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 50px rgba(34, 197, 94, 0.5);
    animation: successAppear 0.5s ease;
  }

  @keyframes successAppear {
    0% {
      transform: scale(0) rotate(-180deg);
    }

    100% {
      transform: scale(1) rotate(0deg);
    }
  }

  .captcha-success-text {
    color: #22c55e;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
  }

  /* Vibration feedback indicator */
  .captcha-ring.snap {
    animation: snapFeedback 0.15s ease;
  }

  @keyframes snapFeedback {

    0%,
    100% {
      transform: rotate(var(--rotation));
    }

    25% {
      transform: rotate(calc(var(--rotation) + 3deg));
    }

    75% {
      transform: rotate(calc(var(--rotation) - 3deg));
    }
  }

  /* Sound wave effect on correct */
  .sound-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 3px solid #22c55e;
    border-radius: 50%;
    opacity: 0;
    /* pointer-events: none; */
  }

  .sound-wave.animate {
    animation: soundWaveExpand 0.6s ease-out;
  }

  @keyframes soundWaveExpand {
    0% {
      width: 100px;
      height: 100px;
      opacity: 0.8;
    }

    100% {
      width: 350px;
      height: 350px;
      opacity: 0;
    }
  }

  /* Animations */
  @keyframes orangeFire {

    0%,
    100% {
      text-shadow: 0 0 5px rgba(255, 140, 0, 0.5), 0 0 10px rgba(255, 140, 0, 0.5), 0 0 15px rgba(255, 140, 0, 0.4), 0 0 20px rgba(249, 115, 22, 0.4);
    }

    50% {
      text-shadow: 0 0 8px rgba(255, 140, 0, 0.5), 0 0 13px rgba(255, 140, 0, 0.5), 0 0 18px rgba(255, 140, 0, 0.4), 0 0 23px rgba(249, 115, 22, 0.4);
    }
  }

  @keyframes pulse {

    0%,
    100% {
      opacity: 1;
    }

    50% {
      opacity: 0.5;
    }
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(-50%);
    }
  }

  .captcha-ring,
  .captcha-arrow,
  .captcha-rings-wrapper {
    pointer-events: auto;
  }

  .fire-text {
    animation: orangeFire 2s ease-in-out infinite;
  }

  .pulse {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  /* ==== Profile in the header next to the gear ==== */

  .header-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .profile-chip {
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(249, 115, 22, 0.9);
    /* orange in your style */
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f9fafb;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.35);
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }


  /* =========================
   SCROLLBAR — CODE13 STYLE
   ========================= */

:root {
  --scroll-track: rgba(255, 255, 255, 0.06);
  --scroll-thumb-a: rgba(255, 178, 0, 0.75);
  --scroll-thumb-b: rgba(249, 115, 22, 0.75);
  --scroll-thumb-hover-a: rgba(255, 178, 0, 0.90);
  --scroll-thumb-hover-b: rgba(249, 115, 22, 0.90);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, 0.75) rgba(255, 255, 255, 0.06);
}

/* WebKit (Chrome/Edge/Safari) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--scroll-thumb-a), var(--scroll-thumb-b));
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.75);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--scroll-thumb-hover-a), var(--scroll-thumb-hover-b));
}

.share-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(10px);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.5);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100000;
}

.share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
