/* ============================
              Layout           
   ============================ 
*/

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  grid-template-rows: 1fr auto;
  padding-bottom: 25px;
}

.auth-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 24px;
  padding-bottom: 90px; /* Увеличено для футера */
  flex: 1 0 auto;
}

/* Card */
.auth-card {
  width: 100%;
  max-width: 520px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 26px;
}

.auth-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  overflow: hidden;
}
.brand-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.auth-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.auth-title h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.2px;
}
.auth-title .brand {
  color: var(--muted);
  font-size: 13px;
}

/* MSG CUSTOM*/
.msg {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.35;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
}

.msg--ok {
  border-color: rgba(70, 255, 160, 0.35);
  background: rgba(70, 255, 160, 0.1);
}

.msg--warn {
  border-color: rgba(255, 200, 70, 0.35);
  background: rgba(255, 200, 70, 0.1);
}

.msg--error {
  border-color: rgba(255, 90, 90, 0.35);
  background: rgba(255, 90, 90, 0.1);
}

.shake {
  animation: shake 0.28s;
}
@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  50% {
    transform: translateX(6px);
  }
  75% {
    transform: translateX(-4px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Fields */
.field {
  margin-top: 14px;
}

.label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.input {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
}
.input:focus {
  border-color: rgba(255, 127, 39, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 127, 39, 0.12);
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 10px;
}

.link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.btn {
  width: 100%;
  border-radius: 6px;
  padding: 12px 12px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  margin-top: 14px;
}

.btn-primary {
  background: rgba(255, 127, 39, 0.65);
  color: white;
}
.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 16px 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: '';
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

/* Below Card */
.below {
  text-align: center;
  margin-top: 18px;
}

.below .hint {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
}

.below .btn-create {
  width: auto;
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  cursor: pointer;
}

.below .btn-create:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

/* 
========================================  
               FOOTER 
======================================== 
*/

.auth-footer {
  position: fixed;
  flex-shrink: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;

  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);

  font-size: 14px;
  color: rgba(231, 236, 255, 0.78);
  z-index: 50;

  /* НЕОНОВАЯ РАМКА */
  border: 1px solid rgba(34, 240, 230, 0.45);
  overflow: hidden; /* важно */

  /* НЕОНОВОЕ СВЕЧЕНИЕ */
  box-shadow:
    0 0 6px rgba(34, 240, 230, 0.45),
    0 0 14px rgba(34, 240, 230, 0.25),
    inset 0 0 6px rgba(34, 240, 230, 0.15);
}

.auth-footer::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 0;
  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.2s ease,
    height 0.2s ease;
}

.auth-footer::before {
  content: 'DEVELOPER MODE • DEVELOPER MODE • DEVELOPER MODE • ';
  position: absolute;
  left: 0;
  bottom: 0;

  width: max-content;
  height: 100%;

  display: flex;
  align-items: center;

  padding-left: 100%;
  white-space: nowrap;

  font-weight: 600;
  letter-spacing: 0.25em;
  font-size: 13px;
  text-transform: uppercase;

  color: var(--neon-orange);
  text-shadow:
    0 0 6px rgba(255, 159, 26, 0.9),
    0 0 14px rgba(255, 159, 26, 0.6),
    0 0 28px rgba(255, 159, 26, 0.4);

  opacity: 0;
  pointer-events: none;
}

@keyframes devModeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.footer-row {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  margin: 0;
  max-width: none;
}

.footer-copy {
  white-space: nowrap;
  flex: 0 0 auto;
}

.footer-text {
  font-size: 14px;
}

.footer-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  white-space: nowrap;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: rgba(231, 236, 255, 0.78);
  text-decoration: none;
  line-height: 1;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-logo {
  width: 32px;
  height: 32px;
}

/* ===== Report Modal ===== */

.report-btn {
  color: rgba(255, 90, 90, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.report-icon {
  width: 30px;
  height: 30px;
  display: inline-block;
  flex: 0 0 18px;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25));
}

/* hover/active */
.report-btn:hover .report-icon {
  transform: translateY(-1px);
}

.report-btn:focus {
  outline: 2px solid rgba(70, 200, 255, 0.12);
  outline-offset: 2px;
}

.cyb-report-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.cyb-report-modal.is-open {
  display: block;
}

.cyb-report-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.cyb-report-modal__card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, calc(100vw - 28px));
  max-height: 90vh;
  overflow-y: auto;
  background: #0b0f1c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.cyb-report-modal__title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 16px;
  color: rgba(231, 236, 255, 0.95);
}

.cyb-report-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cyb-report-modal__form .field {
  display: flex;
  flex-direction: column;
}

.cyb-report-modal__form .label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(231, 236, 255, 0.88);
}

.cyb-report-modal__form .input,
.cyb-report-modal__form textarea {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(231, 236, 255, 0.9);
  font-size: 13px;
  line-height: 1.4;
}

.cyb-report-modal__form .input:focus,
.cyb-report-modal__form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(70, 200, 255, 0.15);
}

.cyb-report-modal__form textarea {
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
}

.cyb-report-modal__form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2346c8ff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  cursor: pointer;
}

.cyb-report-modal__form select option {
  background-color: #0b0f1c;
  color: rgba(231, 236, 255, 0.9);
}

.cyb-report-modal__actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cyb-report-modal__actions button {
  flex: 1;
  max-width: 150px;
}

/* ============================
   🍓 Falling strawberries bg
   ============================ 
*/

.bg-strawberries {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: auto;
}

.auth-shell {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.auth-card,
.below,
.auth-footer,
.auth-card *,
.below *,
.auth-footer * {
  pointer-events: auto;
}

.strawberry {
  position: absolute;
  top: -10vh;
  left: 0;
  font-size: 24px;
  opacity: 0.9;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  pointer-events: auto;
  user-select: none;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.25));
}

@keyframes fallStrawberry {
  0% {
    transform: translateY(-15vh) translateX(0) rotate(0deg);
  }
  100% {
    transform: translateY(115vh) translateX(var(--drift)) rotate(var(--rot));
  }
}

.strawberry.special {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(255, 127, 39, 0.55))
    drop-shadow(0 14px 16px rgba(0, 0, 0, 0.35));
  outline: none;
}

.strawberry.special::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 127, 39, 0.35);
  opacity: 0.55;
  pointer-events: none;
}

.auth-card,
.login-card {
  position: relative;
  z-index: 5;
}

/* ============================
          🍓 HISTORY
   ============================ 
*/
.strawberry-history .strawberry-text {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.strawberry-grid {
  width: 100%;
  max-width: 520px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.strawberry-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #111;
}

/* =================================
   🍓 Lightbox (full screen photo)
   ================================= 
*/

.strawberry-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  z-index: 99999;
  touch-action: pan-y;
}

.strawberry-lightbox.is-open {
  display: flex;
}

.strawberry-lightbox__img {
  max-width: min(96vw, 1100px);
  max-height: 86vh;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
  object-fit: contain;

  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  user-select: none;

  /* важно для touch */
  touch-action: none; /* управляем жестами сами */
  transform-origin: center center;

  animation: strawberryZoomIn 0.18s ease;
}

@keyframes strawberryZoomIn {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.strawberry-lightbox__img.is-ready {
  opacity: 1;
  transform: scale(1); /* ^?^ */
}

/* когда zoom > 1, курсор */
.strawberry-lightbox.is-zoomed .strawberry-lightbox__img {
  cursor: grab;
}
.strawberry-lightbox.is-zoomed .strawberry-lightbox__img:active {
  cursor: grabbing;
}

.strawberry-lightbox__close {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(231, 236, 255, 0.95);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}

.strawberry-lightbox__close:hover {
  border-color: rgba(255, 59, 107, 0.55);
}

.strawberry-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(231, 236, 255, 0.95);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 22px;
  user-select: none;
}

.strawberry-lightbox__nav:hover {
  border-color: rgba(255, 59, 107, 0.55);
}

.strawberry-lightbox__nav.prev {
  left: 14px;
}
.strawberry-lightbox__nav.next {
  right: 14px;
}

/* ===== Lightbox HUD ===== */
.strawberry-lightbox__hud {
  position: fixed;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 100000;
}

.strawberry-lightbox__counter {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(231, 236, 255, 0.92);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.strawberry-lightbox__caption {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  max-width: min(92vw, 900px);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(231, 236, 255, 0.92);
  font-size: 13px;
  text-align: center;
  z-index: 100000;
}

/* pinch zoom: контейнер для трансформаций */
.strawberry-lightbox__stage {
  position: relative;
  max-width: min(96vw, 1100px);
  max-height: 86vh;
  display: grid;
  place-items: center;
}

/* ============================
   🍓 Modal (injected by JS)
   ============================ 
*/

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(6px);
  z-index: 9999;
}

.modal-content {
  background: #262837;
  padding: 30px;
  border-radius: 16px;
  width: min(380px, calc(100vw - 24px));
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  animation: pop 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: modal-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

@keyframes modal-pop {
  0% {
    transform: scale(0.75) translateY(20px);
    opacity: 0;
  }
  60% {
    transform: scale(1.03);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.convariant {
  position: relative;
  perspective: 600px;
  width: 98px;
  height: 98px;
  margin: 0 auto 14px;
  animation: cv-appear 0.6s ease forwards;
  opacity: 0;
}

@keyframes cv-appear {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.convariant .emoji {
  position: absolute;
  inset: 0;
  font-size: 100px;
  display: flex;
  align-items: center;
  justify-content: center;

  animation: emoji-strawberry 2.2s ease-in-out infinite;
  will-change: transform, filter;
}

@keyframes emoji-strawberry {
  0%,
  100% {
    transform: translateY(0) rotateZ(0deg) scale(1);
  }
  25% {
    transform: translateY(-6px) rotateZ(-3deg) scale(1.04);
  }
  50% {
    transform: translateY(0) rotateZ(-4deg) scale(1.045);
  }
  75% {
    transform: translateY(-3px) rotateZ(-2deg) scale(1.02);
  }
}

/* Вспышка */
.emoji.flash {
  animation: strawberry-flash 0.35s ease-out;
}

@keyframes strawberry-flash {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 0, 80, 0));
  }
  40% {
    transform: scale(1.25);
    filter: drop-shadow(0 0 20px rgba(255, 0, 80, 0.75));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 0, 80, 0));
  }
}

.modal--strawberry .convariant .emoji {
  text-shadow:
    0 0 12px rgba(255, 59, 107, 0.9),
    0 0 28px rgba(255, 59, 107, 0.5),
    0 0 48px rgba(255, 59, 107, 0.25);
}

.modal--strawberry .convariant::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 59, 107, 0.35),
    rgba(255, 59, 107, 0.15) 55%,
    transparent 70%
  );
  animation: strawberry-aura 2.8s ease-in-out infinite;
  filter: blur(6px);
  pointer-events: none;
}

/* Вспышка клубнички */
.emoji.flash {
  animation: strawberry-flash 0.35s ease-out;
}

@keyframes strawberry-flash {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 0, 80, 0));
  }
  40% {
    transform: scale(1.25);
    filter: drop-shadow(0 0 20px rgba(255, 0, 80, 0.75));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 0, 80, 0));
  }
}

/* Анимация кнопки "Круто!" */
.modal-content .btn-okay-animate {
  animation: ok-bounce 0.45s cubic-bezier(0.17, 0.67, 0.38, 1.32);
}

@keyframes ok-bounce {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

/* Плавающая клубничка */
.emoji.float {
  animation: strawberry-float 5s ease-in-out infinite;
}

@keyframes strawberry-float {
  0% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-10px) rotate(3deg);
  }
  100% {
    transform: translateY(0) rotate(0);
  }
}

/* 3D эффект */
.convariant:hover .emoji {
  transition: transform 0.15s ease-out;
}

.title {
  margin: 0px 0 10px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.subtitle {
  margin: 0 0 16px;
  color: #c8cde6;
  font-size: 14px;
  text-align: center;
  line-height: 1.35;
}

#promptInput {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #1f1f2b;
  border: 1px solid #444;
  outline: none;
  font-size: 15px;
  color: #e9e9e9;
}

.input-error {
  border-color: #ff3b5c !important;
  box-shadow: 0 0 10px rgba(255, 0, 80, 0.45);
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-4px);
  }
  100% {
    transform: translateX(0);
  }
}

.modal--strawberry #promptInput:focus {
  border-color: #ff3b6b;
  box-shadow: 0 0 10px rgba(255, 59, 107, 0.45);
}

.buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.modal .buttons button {
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: 0.2s;
}

#confirmBtn {
  background: #ff3b6b;
  color: #fff;
}

#confirmBtn:hover {
  background: #ff5a82;
}

.cancel {
  background: #3a3d52;
  color: #ccc;
}

.cancel:hover {
  background: #4d516c;
}

/* small polish for congrats variant */
.modal--congrats .subtitle b {
  color: #ffffff;
}

/* 🌟 Неоновая вспышка вокруг модалки */
.modal.flash {
  animation: modal-flash 0.5s ease-out;
}

@keyframes modal-flash {
  0% {
    box-shadow: 0 0 0px 0 rgba(255, 0, 80, 0);
  }
  40% {
    box-shadow: 0 0 32px 8px rgba(255, 0, 100, 0.45);
  }
  100% {
    box-shadow: 0 0 0px 0 rgba(255, 0, 80, 0);
  }
}

/* 🌸 Кольцевая волна */
.strawberry-ring-wave {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  border: 2px solid rgba(255, 80, 120, 0.45);
  animation: ring-wave 0.8s ease-out forwards;
  z-index: 999999;
}

@keyframes ring-wave {
  0% {
    transform: scale(0.1);
    opacity: 0.9;
  }
  70% {
    opacity: 0.4;
  }
  100% {
    transform: scale(3.6);
    opacity: 0;
  }
}

/* 🍓 Конфетти-воронка */
.strawberry-confetti {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  user-select: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

/* 🔮 Фоновая мягкая пульсация */
.body-pulse {
  animation: body-pulse 1.8s ease-in-out;
}

@keyframes body-pulse {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.06);
  }
  100% {
    filter: brightness(1);
  }
}

.big-strawberry {
  position: fixed;
  font-size: 46px;
  pointer-events: none;
  z-index: 999999;
  opacity: 1;
  transform-origin: center;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45));
  will-change: transform, opacity;
}

/* Кнопка "вверх" для мобильных */
#scrollTopBtn {
  position: fixed;
  bottom: 82px; /* над футером! */
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 80, 120, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ===== Profile ===== */

/* === Fullscreen profile layout === */
/* ===== Account layout ===== */
.account-page {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 24px 18px;
  padding-bottom: 90px; /* Отступ от контента до футера */
  background:
    radial-gradient(1200px 700px at 30% 10%, rgba(180, 120, 255, 0.1), transparent 60%),
    radial-gradient(900px 600px at 70% 20%, rgba(255, 127, 39, 0.1), transparent 55%),
    var(--bg, #0a0f1f);
}

.account-wrap {
  width: 100%;
  margin: 0 auto;
  display: flex;
  gap: 18px;
  justify-content: center;
}

.account-sidebar {
  width: 270px;
  flex: 0 0 270px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  backdrop-filter: blur(10px);
}

.account-main {
  flex: 1;
  max-width: 640px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  width: 100%;
  padding: 18px;
  backdrop-filter: blur(10px);
}

.account-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.account-brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.account-brand a {
  display: inline-flex;
}
.account-brand a img {
  cursor: pointer;
}

.account-nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.account-nav button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon {
  font-size: 32px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.account-nav button:hover {
  background: rgba(255, 255, 255, 0.06);
}
.account-nav button.active {
  position: relative;
  background: rgba(255, 127, 39, 0.18);
  border-color: rgba(255, 127, 39, 0.3);
}

.account-nav button.active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 99px;
  background: rgba(255, 127, 39, 0.8);
}

.kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px 18px;
  margin-top: 12px;
  align-items: center;
}

.kv .k {
  color: var(--muted);
  font-size: 13px;
  align-self: center;
  line-height: 1.2;
}
.kv .v {
  display: flex; /* value-ячейка становится flex */
  align-items: center; /* вертикально по центру */
  min-height: 34px; /* чтобы строки были одинаковой высоты */
  font-size: 14px;
  overflow-wrap: anywhere;
}

.mono-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.copy-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  padding: 6px 8px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    transform 0.12s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.copy-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  opacity: 0.9;
}

.copy-btn.copy-btn--icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  flex: 0 0 auto;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 10px 22px rgba(0, 0, 0, 0.25);
}

.copy-btn:active {
  transform: translateY(0px) scale(0.98);
}

.copy-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.copy-btn.is-copied {
  background: rgba(70, 255, 160, 0.16);
  box-shadow: 0 0 0 1px rgba(70, 255, 160, 0.22) inset;
}

/* чуть красивее сама “капсула” с ID */
.mono-pill.id-pill {
  display: inline-flex; /* ✅ чтобы кнопка была ровно рядом */
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
}

/* ✅ полностью прячем клубничный фон на страницах account */
body.no-strawberries .bg-strawberries,
body.no-strawberries .strawberry-confetti,
body.no-strawberries .big-strawberry,
body.no-strawberries .strawberry-ring-wave {
  display: none !important;
}

/* ==========================
   Account polish (readability)
   ========================== */

.account-main {
  padding: 20px;
}

.account-main > div:first-child {
  gap: 10px !important;
}

/* Заголовок справа: делаем чуть заметнее */
#metaLine {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

/* ==========================
   Profile: HERO + CARDS
   ========================== */

.profile-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(700px 260px at 0% 0%, rgba(255, 127, 39, 0.14), transparent 55%),
    radial-gradient(700px 260px at 100% 0%, rgba(180, 120, 255, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.12);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.profile-hero__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.profile-avatar span {
  font-weight: 950;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.profile-hero__meta {
  min-width: 0;
}

.profile-hero__title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-name {
  margin: 0;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-hero__subtitle {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-hero__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ===== User status chips ===== */

.status {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* Новичок */
.status--newbie {
  color: #ffd36a;
  border-color: rgba(255, 211, 106, 0.45);
  background: rgba(255, 211, 106, 0.12);
}

/* Активный */
.status--active {
  color: #6bff9c;
  border-color: rgba(107, 255, 156, 0.45);
  background: rgba(107, 255, 156, 0.12);
}

/* Участник */
.status--member {
  color: #7fb7ff;
  border-color: rgba(127, 183, 255, 0.45);
  background: rgba(127, 183, 255, 0.12);
}

/* основной статус */
.status--regular {
  color: #7fb7ff;
  border-color: rgba(127, 183, 255, 0.45);
  background: rgba(127, 183, 255, 0.12);
}

.status--veteran {
  color: #caa6ff;
  border-color: rgba(202, 166, 255, 0.45);
  background: rgba(202, 166, 255, 0.12);
}

.status--mod {
  color: #5de2ff;
  border-color: rgba(93, 226, 255, 0.5);
  background: rgba(93, 226, 255, 0.12);
}

/* контейнер бейджей */
.badges {
  display: inline-flex;
  gap: 8px;
  margin-left: 10px;
  flex-wrap: wrap;
}

/* бейджи */
.badge {
  font-weight: 700;
  opacity: 0.95;
}

.badge--ok {
  color: #6bff9c;
  border-color: rgba(107, 255, 156, 0.45);
  background: rgba(107, 255, 156, 0.1);
}

.badge--warn {
  color: #ffd36a;
  border-color: rgba(255, 211, 106, 0.45);
  background: rgba(255, 211, 106, 0.1);
}

.badge--info {
  color: #7fb7ff;
  border-color: rgba(127, 183, 255, 0.45);
  background: rgba(127, 183, 255, 0.1);
}

.badge--dev {
  color: #ff7aff;
  border-color: rgba(255, 122, 255, 0.45);
  background: rgba(255, 122, 255, 0.1);
}

.badge--premium {
  color: #ffcc5d;
  border-color: rgba(255, 204, 93, 0.5);
  background: rgba(255, 204, 93, 0.12);
}

.badge--beta {
  color: #a6ffef;
  border-color: rgba(166, 255, 239, 0.45);
  background: rgba(166, 255, 239, 0.1);
}

.badge--admin {
  color: #ff7f27;
  border-color: rgba(255, 127, 39, 0.55);
  background: rgba(255, 127, 39, 0.14);
}

.badge--mod {
  color: #5de2ff;
  border-color: rgba(93, 226, 255, 0.5);
  background: rgba(93, 226, 255, 0.1);
}

/* Админ */
.status--admin {
  color: #ff7f27;
  border-color: rgba(255, 127, 39, 0.55);
  background: rgba(255, 127, 39, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 127, 39, 0.15) inset;
}

/* Заблокирован */
.status--blocked {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.5);
  background: rgba(255, 107, 107, 0.14);
}

/* cards */
.card-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.info-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.12);
  transition:
    transform 0.14s ease,
    border-color 0.14s ease,
    background 0.14s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.info-card__label {
  font-size: 12px;
  opacity: 0.75;
}

.info-card__value {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.2px;
  overflow-wrap: anywhere;
}

.info-card__hint {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.65;
  line-height: 1.35;
}

/* Responsive for profile */
@media (max-width: 860px) {
  .profile-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .profile-hero__right {
    justify-content: flex-start;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* SECURITY */

.sec-list {
  display: grid;
  gap: 10px;
}

.sec-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
  color: inherit;
  text-align: left;
}

.sec-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.sec-left {
  display: grid;
  gap: 4px;
}
.sec-title {
  font-weight: 850;
  font-size: 13px;
  opacity: 0.95;
  color: #ff9f1a;
  text-decoration: none;
}
.sec-title:hover {
  color: #e68900;
  background-color: rgba(245, 158, 11, 0.08);
}
.sec-title:active {
  color: #b45309; /* active (amber-700) */
}
.sec-sub {
  font-size: 12px;
  opacity: 0.7;
  color: var(--text);
}

.sec-right {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  color: #ff9f1a;
  opacity: 0.75;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.sec-item:hover .sec-right {
  color: #e68900;
  opacity: 1;
}

.sec-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  opacity: 0.95;
  white-space: nowrap;
}

.sec-badge--ok {
  border-color: rgba(140, 255, 190, 0.35);
  background: rgba(140, 255, 190, 0.1);
}

.sec-badge--warn {
  border-color: rgba(255, 220, 140, 0.35);
  background: rgba(255, 220, 140, 0.1);
}

.sec-panel {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.sec-panel-inner {
  padding: 12px 14px;
}

.sec-status {
  opacity: 0.75;
  font-size: 12px;
  margin-bottom: 8px;
}

.sec-form-row {
  display: grid;
  gap: 10px;
}

.sec-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.sec-hint {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.9;
}

.sec-hint--ok {
  color: rgba(140, 255, 190, 0.9);
}
.sec-hint--warn {
  color: rgba(255, 220, 140, 0.95);
}
.sec-hint--error {
  color: rgba(255, 140, 140, 0.95);
}

.sec-note {
  opacity: 0.75;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 2px 0;
}

/* SESSIONS */

.sessions-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.sessions-table-wrap {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.1);
}

.sessions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sessions-table th,
.sessions-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.sessions-table thead th {
  opacity: 0.75;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.sessions-table tr.is-current {
  background: rgba(255, 255, 255, 0.03);
}

.dev-sub {
  opacity: 0.7;
  margin-top: 2px;
}

.mono {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.12);
  color: inherit;
  cursor: pointer;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}
.icon-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Device-строка всегда слева */
.sessions-table .dev {
  width: 100%;
  text-align: left;
}

.sessions-table .dev-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
}

/* Sessions Table Styles  */

.sessions-table .dev-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sessions-table .dev-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: 0 !important;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: 0.9;
}

.sessions-table .dev-ico svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.sessions-table .dev-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.sessions-table .dev-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  row-gap: 6px;
  min-width: 0;
}

.sessions-table .dev-name {
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  font-size: 11px;
  opacity: 0.85;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sessions-table .pill {
  padding: 3px 8px;
  line-height: 1.2;
  flex: 0 0 auto;
  margin-left: auto !important;
  white-space: nowrap;
}

.sessions-table .dev-sub {
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cyb-info-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.cyb-info-modal.is-open {
  display: block;
}
.cyb-info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.cyb-info-modal__card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 28px));
  background: #0b0f1c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}
.cyb-info-modal__title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
}
.cyb-info-modal__text {
  opacity: 0.85;
  line-height: 1.45;
  font-size: 13px;
}
.cyb-info-modal__actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.pass-hints {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.pass-hints__title {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.pass-hints__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.pass-hints__list li {
  font-size: 13px;
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pass-hints__list li .icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.pass-hints__list li.ok {
  opacity: 1;
  color: #6ee7b7; /* можно заменить на твой var */
}

.pass-hints__list li.ok .icon {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.15);
}

.pass-hints__list li.ok .icon::before {
  content: '✓';
}

/* ===== eye toggle ===== */
.pass-wrap {
  position: relative;
}

.pass-wrap .input {
  padding-right: 46px;
}

.pass-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.65;
  display: grid;
  place-items: center;
}
.pass-eye:hover {
  opacity: 1;
}

/* icon (можно потом заменить на SVG) */
.pass-eye::before {
  content: '👁️';
  font-size: 16px;
}
.pass-eye.is-open::before {
  content: '🙈';
}

/* ============================
   Network Status Notification
   ============================ */

.network-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: slideDown 0.3s ease-out;
  font-size: 14px;
  font-weight: 500;
  max-width: 90%;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.network-notification.offline {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.network-notification.online {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideDown 0.3s ease-out;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-content svg {
  flex-shrink: 0;
}

/* ============================
      Top Notifications
   ============================
*/

.top-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  min-width: 300px;
  max-width: 600px;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.3s ease-out;
  font-family: inherit;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.top-notification__content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-notification__icon {
  flex-shrink: 0;
  font-size: 20px;
}

.top-notification__message {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}

.top-notification--success {
  background: #10b981;
  color: white;
}

.top-notification--error {
  background: #ef4444;
  color: white;
}

.top-notification--warn {
  background: #f59e0b;
  color: white;
}

.top-notification--info {
  background: #3b82f6;
  color: white;
}

/* 
========================================  
               MOBILE ADAPTIVE
======================================== 
*/

@media (max-width: 860px) {
  .auth-shell {
    padding-bottom: 200px;
  }

  .account-page {
    padding-bottom: 200px;
  }

  .auth-footer {
    height: auto;
    padding: 8px 0;
  }

  .footer-row {
    flex-direction: column;
    gap: 8px;
  }

  .footer-copy {
    align-items: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: center;
  }

  /* mobile: sidebar becomes top nav */
  .account-wrap {
    flex-direction: column;
    align-items: center;
  }
  .account-sidebar {
    width: 100%;
    flex: 0 0 auto;
  }
  .account-nav button {
    font-size: 14px;
    padding: 8px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-icon {
    font-size: 24px;
  }
  .kv {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  #scrollTopBtn {
    display: none !important;
  }
}

@media (min-width: 721px) {
  .sessions-table .pill {
    margin-left: auto !important;
  }
}

@media (max-width: 720px) {
  .sessions-table-wrap {
    overflow: visible;
  }

  .sessions-table thead {
    display: none;
  }

  .sessions-table,
  .sessions-table tbody,
  .sessions-table tr,
  .sessions-table td {
    display: block;
    width: 100%;
  }

  .sessions-table tr {
    position: relative;
    margin: 10px 0;
    padding: 12px 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.14);
  }

  .sessions-table td {
    border: 0 !important;
    padding: 7px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .sessions-table td::before {
    content: attr(data-label);
    opacity: 0.65;
    font-size: 12px;
    flex: 0 0 auto;
    padding-right: 10px;
  }

  /* Device блок красивее */
  .sessions-table td[data-label='Device'] {
    padding-top: 0;
  }

  .sessions-table td[data-label='Device']::before {
    content: ''; /* у Device не нужен label */
    padding-right: 0;
  }

  .sessions-table .dev-top {
    font-weight: 800;
    line-height: 1.2;
  }

  .sessions-table .dev-sub {
    opacity: 0.75;
    font-size: 12px;
    margin-top: 2px;
  }

  /* Action как кнопка справа сверху (как в Zoom) */
  .sessions-table td.td-action {
    padding: 0;
  }
  .sessions-table td.td-action::before {
    content: '';
  }
  .sessions-table td.td-action .icon-btn {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  /* mobile: pill не пытается уползти в край (там кнопка) */
  .sessions-table .pill {
    margin-left: 0 !important; /* убираем auto */
    order: 3; /* если перенесётся — будет ниже */
  }

  /* даём место под кнопку action справа сверху */
  .sessions-table td[data-label='Device'] {
    padding-right: 56px; /* чтобы pill/текст не залезали под icon-btn */
  }

  /* делаем “Device” строкой, а не как остальные td (иначе flex space-between мешает) */
  .sessions-table td[data-label='Device'] {
    display: block;
  }
}

/* Активация F12 только для десктопов */

@media (max-height: 700px) and (min-width: 1024px) {
  .auth-footer::before {
    opacity: 1;
    animation: devModeScroll 14s linear infinite;
  }

  .auth-footer::after {
    height: 6px;

    background: linear-gradient(
      180deg,
      transparent,
      rgba(34, 240, 230, 0.6),
      rgba(34, 240, 230, 0.95)
    );

    box-shadow:
      0 0 12px rgba(34, 240, 230, 0.9),
      0 0 28px rgba(34, 240, 230, 0.6),
      0 0 46px rgba(34, 240, 230, 0.4);

    opacity: 1;
  }
}

/* 
==================================
       Profile: Lightbox grid
==================================
*/

@media (max-width: 560px) {
  .strawberry-lightbox__nav {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
}

/* кликабельность сетки */
.strawberry-grid img {
  cursor: zoom-in;
}

@media (max-width: 420px) {
  .strawberry-grid {
    grid-template-columns: 1fr; /* фотки в 1 колонку */
  }
}

/* 
========================================
              Report modal
========================================
*/

@media (max-width: 520px) {
  .cyb-report-modal__card {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 40px);
    padding: 16px;
  }

  .cyb-report-modal__title {
    font-size: 18px;
  }

  .cyb-report-modal__actions {
    flex-direction: column;
  }

  .cyb-report-modal__actions button {
    max-width: none;
  }

  .network-notification {
    top: 10px;
    font-size: 13px;
    padding: 10px 16px;
  }
}

/* ============================================
   ДОПОЛНИТЕЛЬНАЯ АДАПТИВНОСТЬ ДЛЯ AUTH
   ============================================ */

@media (max-width: 768px) {
  .auth-center {
    padding: 24px 12px 80px; /* Увеличен отступ для футера */
  }

  .auth-card {
    padding: 20px;
  }

  .auth-title h1 {
    font-size: 22px;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .brand-logo img {
    width: 56px;
    height: 56px;
  }

  .footer-row {
    padding: 0 16px;
  }

  .footer-text {
    font-size: 13px;
  }

  .footer-links a {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .auth-center {
    padding: 16px 8px 70px; /* Увеличен отступ для футера */
  }

  .auth-card {
    padding: 16px;
    max-width: 100%;
  }

  .auth-head {
    gap: 10px;
    margin-bottom: 14px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-logo img {
    width: 48px;
    height: 48px;
  }

  .auth-title h1 {
    font-size: 20px;
  }

  .auth-title .brand {
    font-size: 12px;
  }

  .input {
    padding: 10px;
    font-size: 14px;
  }

  .btn {
    padding: 10px;
    font-size: 14px;
  }

  .msg {
    font-size: 12px;
    padding: 8px 10px;
  }

  .label {
    font-size: 12px;
  }

  .link {
    font-size: 12px;
  }

  .below .hint {
    font-size: 12px;
  }

  .below .btn-create {
    font-size: 13px;
    padding: 8px 12px;
  }

  .auth-footer {
    font-size: 12px;
  }

  .footer-row {
    padding: 0 12px;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
  }

  .footer-text {
    font-size: 11px;
  }

  .footer-links {
    margin-left: 0;
  }

  .footer-links a {
    font-size: 11px;
  }
}

/* ============================================
   ДОПОЛНИТЕЛЬНАЯ АДАПТИВНОСТЬ ДЛЯ ФУТЕРА
   ============================================ */

/* Планшеты: увеличиваем отступ от контента до футера */
@media (min-width: 481px) and (max-width: 1024px) {
  .account-page {
    padding-bottom: 250px; /* Отступ для футера + 30px */
  }

  .auth-center {
    padding-bottom: 250px; /* Отступ для футера + 30px */
  }
}

/* Экраны 360px-480px: увеличиваем отступ */
@media (max-width: 480px) {
  .account-page {
    padding-bottom: 250px; /* Отступ для высокого футера (колоночный layout) + 30px */
  }

  .auth-center {
    padding-bottom: 250px; /* Отступ для высокого футера (колоночный layout) + 30px */
  }

  .account-nav button {
    font-size: 13px;
    padding: 7px 8px;
  }
  .nav-icon {
    font-size: 20px;
  }
}

/* Очень узкие экраны (360px и меньше): максимальный отступ */
@media (max-width: 360px) {
  .account-page {
    padding-bottom: 250px; /* Максимальный отступ для узких экранов (футер очень высокий) */
  }

  .auth-center {
    padding-bottom: 250px; /* Максимальный отступ для узких экранов (футер очень высокий) */
  }

  .account-nav button {
    font-size: 12px;
    padding: 6px 7px;
  }
  .nav-icon {
    font-size: 18px;
  }

  .auth-footer {
    font-size: 11px;
  }

  .footer-text {
    font-size: 10px;
  }

  .footer-links a {
    font-size: 10px;
  }
}
/* ============================
   Loading Spinner & Messages
   ============================ */

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 16px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(102, 126, 234, 0.8);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-spinner p {
  margin: 0;
  opacity: 0.7;
  font-size: 14px;
}

.error-message {
  padding: 16px;
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid rgba(255, 90, 90, 0.35);
  border-radius: 12px;
  color: rgba(255, 90, 90, 0.9);
  text-align: center;
}
/* Verified Badge Styles */
.verified-badge {
  display: inline-flex;
  align-items: center;
  animation: verifiedPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.verified-icon {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.6));
  animation: verifiedRotate 3s ease-in-out infinite;
}

.verified-icon-inline {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.6));
  animation: verifiedPulse 2s ease-in-out infinite;
  vertical-align: middle;
}

.chip.badge.badge--verified {
  padding: 4px 8px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

@keyframes verifiedPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes verifiedRotate {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(-10deg); }
  20% { transform: rotate(10deg); }
  30% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}
