:root{
  --bg: #0b0f10;
  --card: #111618;
  --text: #ffffff;
  --textMuted: rgba(255, 255, 255, 0.62);
  --teal: #2356d9;
  --tealSoft: #5d86f3;
  --navActive: #4d82f7;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --radiusXL: 30px;

  --safeTop: env(safe-area-inset-top);
  --safeRight: env(safe-area-inset-right);
  --safeBottom: env(safe-area-inset-bottom);
  --safeLeft: env(safe-area-inset-left);
}

*{ box-sizing: border-box; }
html, body { height: 100%; background: #0b0f10; }

body{
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  background: #0b0f10;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

input,
textarea,
select,
button{
  font: inherit;
  color: inherit;
}

input,
textarea,
select{
  -webkit-appearance: none;
  appearance: none;
}

.app-shell{
  min-height: 100dvh;
  position: relative;
  background-color: #0b0f10;
}

/* Evita fons blanc/groc d'autocomplete del navegador en formularis dark */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus{
  -webkit-text-fill-color: var(--text) !important;
  box-shadow: 0 0 0 1000px rgba(8, 12, 18, 0.88) inset !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(8, 12, 18, 0.88) inset !important;
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}

.app-shell::before{
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(45, 107, 255, 0.18), transparent 62%),
    radial-gradient(900px 700px at 110% 15%, rgba(111, 160, 255, 0.12), transparent 62%),
    linear-gradient(180deg, #0b0f10 0%, #0b0f10 100%);
  z-index: -1;
  pointer-events: none;
}

.home{
  min-height: 100dvh;
  padding: 104px 18px 92px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-alert-btn{
  position: fixed;
  top: 62px;
  left: 18px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 14, 22, 0.88);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.home-alert-btn svg{
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-alert-btn:hover{
  border-color: rgba(140, 176, 255, 0.5);
  background: rgba(12, 19, 28, 0.95);
}

.home-heading-switch{
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: rgba(7, 10, 11, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 5;
}

.home-heading-switch__tabs{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.home-heading-switch__item{
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.home-heading-switch__item:hover{
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.home-heading-switch__item.is-active{
  color: #fff;
  border-color: rgba(100, 146, 255, 0.52);
  background: linear-gradient(180deg, rgba(26, 50, 99, 0.95), rgba(17, 34, 69, 0.95));
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(134, 174, 255, 0.18);
}

.home-heading-switch__plus{
  position: absolute;
  right: 18px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(16, 22, 28, 0.85);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.home-heading-switch__plus:hover{
  border-color: rgba(109, 152, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(76, 122, 231, 0.25) inset;
}

.home-heading-switch__plus[hidden]{
  display: none !important;
}

.thread-modal__plus{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(16, 22, 28, 0.85);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
}

.thread-modal__plus:hover{
  border-color: rgba(109, 152, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(76, 122, 231, 0.25) inset;
}

#homeNewsSection[hidden],
#homeCommentsSection[hidden]{
  display: none !important;
}

.news{
  display: grid;
  gap: 14px;
}

.news__head{
  display: grid;
  gap: 10px;
}

.news__head h2{
  margin: 0;
  font-size: 16px;
  font-family: "Outfit", "Nunito Sans", sans-serif;
}

.news__tabs{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab{
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 18, 0.6);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab.is-active{
  border-color: rgba(35, 86, 217, 0.7);
  box-shadow: inset 0 0 0 1px rgba(35, 86, 217, 0.35);
}

.tab__badge{
  background: rgba(35, 86, 217, 0.9);
  color: #fff;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
}

.news__list{
  display: grid;
  gap: 12px;
}

.comments{
  margin-top: 0;
  display: grid;
  gap: 10px;
}
.comments__intro{
  margin: 0;
  color: var(--textMuted);
  font-size: 13px;
}
.comments__head h2{
  margin: 0;
  font-size: 16px;
  font-family: "Outfit", "Nunito Sans", sans-serif;
}
.comments__head p{
  margin: 4px 0 0;
  color: var(--textMuted);
  font-size: 13px;
}
.comments__title{
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-plus{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(16, 22, 28, 0.8);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}
.comments__tabs{
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.comments__form{
  display: grid;
  gap: 10px;
}
.comments__form textarea{
  width: 100%;
  min-height: 90px;
  background: rgba(10, 14, 18, 0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit;
  resize: vertical;
}
.comments__list{
  display: grid;
  gap: 12px;
}
.comment-card{
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 10px 6px;
}
.thread-card{
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: center;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
}
.thread-card .comment-card__body{
  display: grid;
  gap: 4px;
  align-content: center;
}
.thread-card__title-row{
  display: flex;
  align-items: center;
  gap: 8px;
}
.thread-delete{
  border: none;
  background: transparent;
  color: #ff5b5b;
  font-size: 18px;
  line-height: 1;
}
.thread-card:last-child{
  border-bottom: none;
}
.thread-card__meta{
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 80px;
  text-align: right;
  align-content: center;
}
.thread-card__count{
  background: rgba(40, 116, 255, 0.2);
  color: #a7c7ff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}
.thread-card__new{
  background: rgba(46, 196, 182, 0.2);
  color: #8de7dc;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}
.thread-card__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.thread-card__title{
  font-size: 15px;
  color: #fff;
}
.thread-card__sub{
  color: #9aa7bd;
  font-size: 12px;
  margin-top: 2px;
}
.comment-card__avatar{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.comment-card__avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.comment-card__avatar .avatar-img{
  position: static;
  width: 100%;
  height: 100%;
  transform: none;
}
.comment-card__meta{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--textMuted);
}
.comment-card__meta strong{
  color: #fff;
  font-size: 13px;
}
.comment-card__role{
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(40, 116, 255, 0.18);
  color: #a7c7ff;
  font-size: 11px;
}
.comment-card__time{
  margin-left: auto;
  font-size: 11px;
}
.comment-card__text{
  margin-top: 6px;
  font-size: 14px;
  color: #d7dde6;
}
.comment-card__preview{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.comment-card__actions-row{
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.like-btn{
  background: transparent;
  border: none;
  color: #7f8ca3;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.like-btn__icon{
  font-size: 20px;
  line-height: 1;
  transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
}
.like-btn.is-liked{
  color: #4b88ff;
}
.like-btn.is-liked .like-btn__icon{
  color: #4b88ff;
  text-shadow: 0 0 10px rgba(75, 136, 255, 0.6), 0 0 18px rgba(75, 136, 255, 0.4);
  transform: translateY(-1px) scale(1.05);
}
.like-btn span{
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.reply-btn{
  background: transparent;
  border: none;
  color: #9fb7ff;
  font-size: 12px;
}
.comment-reply{
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.comment-reply textarea{
  width: 100%;
  min-height: 70px;
  background: rgba(10, 14, 18, 0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  resize: vertical;
}
.comment-replies{
  margin-left: 0;
  display: grid;
  gap: 8px;
}
.comment-card--reply{
  background: rgba(10, 14, 18, 0.65);
}

.thread-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}
.thread-modal.is-open{
  display: flex;
}
.thread-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 14, 0.7);
}
.thread-modal__panel{
  position: relative;
  width: min(640px, 92vw);
  max-height: 80vh;
  overflow: auto;
  background: rgba(12, 16, 20, 0.95);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 18px;
  display: grid;
  gap: 14px;
  z-index: 1;
}
.thread-modal__header{
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}
.thread-modal__title{
  font-size: 16px;
  color: #fff;
}
.thread-modal__author{
  font-size: 12px;
  color: var(--textMuted);
}
.thread-modal__date{
  font-size: 11px;
  color: var(--textMuted);
}
.thread-modal__list{
  display: grid;
  gap: 10px;
}
.thread-modal__desc{
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 18, 30, 0.7);
  border: 1px solid rgba(120, 170, 255, 0.25);
  color: #cfe2ff;
  font-size: 14px;
}
.thread-edit{
  margin-left: auto;
  background: rgba(20, 26, 34, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  color: #cfe2ff;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
}
.thread-modal__form{
  display: grid;
  gap: 10px;
}
.thread-modal__form input,
.thread-modal__form textarea{
  width: 100%;
  background: rgba(10, 14, 18, 0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
}
.thread-modal__close{
  position: absolute;
  right: 12px;
  top: 10px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
}

.confirm-modal{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70;
}
.confirm-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 14, 0.7);
}
.confirm-modal__panel{
  position: relative;
  z-index: 1;
  width: min(420px, 90vw);
  background: rgba(12, 16, 20, 0.95);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 16px;
  display: grid;
  gap: 10px;
  text-align: center;
}
.confirm-modal__title{
  color: #fff;
  font-weight: 700;
}
.confirm-modal__text{
  color: var(--textMuted);
  font-size: 13px;
}
.confirm-modal__actions{
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.confirm-modal__actions .ghost-btn,
.confirm-modal__actions .form__submit{
  min-width: 120px;
  height: 40px;
  border-radius: 12px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.confirm-modal__actions .form__submit{
  background: #d94444;
  border-color: #d94444;
  color: #fff;
}
.comment-card__actions{
  align-self: start;
}
.comments__empty{
  color: var(--textMuted);
  font-size: 13px;
}

.news-card{
  background: rgba(15, 20, 24, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.news-card__btn{
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.news-card__image{
  width: 86px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
}

.news-card__image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__placeholder{
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(35, 86, 217, 0.4);
}

.news-card__content{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card__content h3{
  margin: 0;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__category{
  font-size: 10px;
  color: #dbe6ff;
  background: rgba(35, 86, 217, 0.35);
  border: 1px solid rgba(35, 86, 217, 0.55);
  border-radius: 999px;
  padding: 2px 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0;
}

.news-card__category[data-cat="Actualizaciones"]{
  background: rgba(35, 86, 217, 0.38);
  border-color: rgba(35, 86, 217, 0.7);
  color: #e8f0ff;
}

.news-card__category[data-cat="Próximo"]{
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fff3d6;
}

.news-card__content p{
  margin: 0;
  font-size: 12px;
  color: var(--textMuted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__content p span,
.news-modal p span{
  color: inherit;
}

.rt-field{
  display: grid;
  gap: 8px;
}

.rt-toolbar{
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rt-toolbar button{
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 18, 0.6);
  color: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}

.rt-toolbar input[type="color"]{
  width: 32px;
  height: 28px;
  border: 0;
  background: transparent;
  padding: 0;
}

.rt-editor{
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.65);
  color: #fff;
  font-size: 13px;
}

.rt-editor--long{
  min-height: 120px;
}

.news__empty{
  color: var(--textMuted);
  font-size: 12px;
}

.news-modal{
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 10;
}

.news-modal.is-open{
  display: grid;
}

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

.news-modal__panel{
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(92vw, 420px);
  background: linear-gradient(180deg, #121824, #0e131a);
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.news-modal__close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.news-modal__image{
  width: 100%;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.news-modal__image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-modal__category{
  font-size: 11px;
  color: var(--textMuted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-modal h3{
  margin: 0;
}

.news-modal p{
  margin: 0;
  font-size: 13px;
  color: var(--textMuted);
}

.topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  padding: calc(6px + var(--safeTop)) 18px 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: linear-gradient(180deg, rgba(12, 18, 28, 0.96), rgba(12, 18, 28, 0.75));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 6;
}

.topbar__logo-link{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.topbar__user{
  position: absolute;
  right: 18px;
}

.admin-menu{
  position: absolute;
  left: 18px;
}

.topbar > .admin-menu{
  left: 18px;
  transform: none;
}

.admin-menu{
  position: relative;
  display: flex;
  align-items: center;
  z-index: 8;
}

.admin-menu__btn{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 18, 0.65);
  display: grid;
  place-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 6px;
}

.admin-menu__btn span{
  display: block;
  width: 14px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.admin-menu__panel{
  position: absolute;
  top: 38px;
  left: 0;
  min-width: 180px;
  background: #0d1214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px;
  display: none;
  z-index: 10;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.admin-menu__panel a{
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}

.admin-menu__panel a:hover{
  background: rgba(255, 255, 255, 0.06);
}

.admin-menu__panel.is-open{
  display: block;
}

.topbar__logo-link{
  display: inline-flex;
  align-items: center;
  width: min(42vw, 150px);
  height: 28px;
  overflow: hidden;
}

.topbar__logo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.topbar__user{
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__text{
  text-align: right;
  line-height: 1.05;
}

.topbar__hi{
  display: block;
  font-size: 12px;
  color: var(--textMuted);
}

.topbar__name{
  font-size: 14px;
}

.topbar__role{
  display: block;
  font-size: 11px;
  color: var(--tealSoft);
  margin-top: 2px;
}
.topbar__avatar{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f2937, #0b0f14);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}

.topbar__avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.avatar-frame{
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: rgba(8, 12, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  touch-action: none;
}

.avatar-img,
#avatarPreview{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  object-fit: cover;
  transform: translate(-50%, -50%) translate(var(--ax, 0px), var(--ay, 0px)) scale(var(--ascale, 1));
  user-select: none;
  -webkit-user-drag: none;
}

.topbar__avatar .avatar-img{
  width: 120%;
  height: 120%;
}

.range{
  accent-color: var(--teal);
}

.icon-btn{ display: none; }

.home__empty{
  flex: 1;
}

.bottombar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px calc(12px + var(--safeBottom));
  background: linear-gradient(180deg, rgba(11, 15, 16, 0.3), rgba(8, 11, 12, 0.95));
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  z-index: 5;
}

.bottombar__item{
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 11px;
}

.bottombar__icon{
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.bottombar__icon svg{
  width: 22px;
  height: 22px;
}

.bottombar__item.is-active{
  color: #fff;
}

.bottombar__item.is-active .bottombar__icon{
  color: var(--navActive);
  border-color: rgba(77, 130, 247, 0.45);
  background: rgba(77, 130, 247, 0.16);
  box-shadow: 0 0 0 1px rgba(77, 130, 247, 0.24) inset;
}

.bottombar__item.is-active .bottombar__label{
  color: var(--navActive);
}

.profile-page{
  min-height: 100dvh;
  padding: 118px 20px 110px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  box-sizing: border-box;
}

.subbar{
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  height: 28px;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  padding: 0 18px;
  background: rgba(7, 10, 11, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 5;
}

.subbar__title{
  margin: 0;
  text-align: center;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.subbar__spacer{
  height: 1px;
}

.subbar__action{
  width: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #cfe0ff;
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}

.subbar__action:hover{
  color: #e3ecff;
  text-shadow: 0 0 10px rgba(120, 160, 255, 0.6);
}

.subbar__back{
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.subbar__back svg{
  width: 14px;
  height: 14px;
}

.admin-page{
  min-height: 100dvh;
  padding: 118px 18px 110px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-stats{
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.admin-stats--compact .stat-group{
  background: rgba(15, 20, 24, 0.9);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

.stat-group__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--textMuted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-pill{
  background: rgba(66, 122, 255, 0.2);
  border: 1px solid rgba(66, 122, 255, 0.4);
  color: #cfe0ff;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
}

.stat-group__grid{
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.stat-group__grid--two{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-chip{
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.06);
}

.stat-chip span{
  font-size: 10px;
  color: var(--textMuted);
}

.stat-chip strong{
  font-size: 16px;
}

.stat-chip.is-total{
  border-color: rgba(66, 122, 255, 0.35);
}

.stat-chip.is-admin{
  border-color: rgba(255, 214, 64, 0.4);
  background: rgba(255, 214, 64, 0.1);
  color: #ffe6a3;
}

.stat-chip.is-user{
  border-color: rgba(66, 122, 255, 0.35);
  background: rgba(66, 122, 255, 0.1);
  color: #d5e3ff;
}

.stat-chip.is-premium{
  border-color: rgba(72, 196, 167, 0.35);
  background: rgba(72, 196, 167, 0.1);
  color: #c7f3e8;
}

.stat-chip.is-info{
  border-color: rgba(255,255,255,0.12);
}

.stat-group__foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--textMuted);
}

.admin-chart{
  background: rgba(15, 20, 24, 0.9);
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.admin-chart h2{
  margin: 0;
  font-size: 12px;
  color: var(--textMuted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chart{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  height: 150px;
  padding: 6px 4px 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 65%);
  border-radius: 14px;
}

.chart--year{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 120px;
}

.chart__bar{
  display: grid;
  align-items: end;
  justify-items: center;
  gap: 4px;
  height: 100%;
}

.chart__bar span{
  width: 100%;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(66, 122, 255, 0.95), rgba(24, 68, 184, 0.9));
  min-height: 6px;
  box-shadow: 0 8px 18px rgba(32, 92, 230, 0.25);
}

.chart__value{
  font-size: 11px;
  color: #fff;
}

.chart__bar em{
  font-size: 10px;
  color: var(--textMuted);
  font-style: normal;
}

.admin-card{
  background: rgba(15, 20, 24, 0.9);
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 12px;
}

.admin-card h2{
  margin: 0;
  font-size: 14px;
  color: var(--tealSoft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-debug{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  background: rgba(255, 205, 110, 0.12);
  border: 1px solid rgba(255, 205, 110, 0.35);
  color: #f6d48a;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  margin: 8px 0 14px;
}

.admin-debug strong{
  color: #fff;
  font-weight: 700;
}

.news .tab.is-active{
  border-color: rgba(35, 86, 217, 0.7);
  box-shadow: inset 0 0 0 1px rgba(35, 86, 217, 0.35);
}

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

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

.admin-news-grid .rt-field{
  grid-column: span 2;
}

.admin-news-grid .profile-save{
  grid-column: span 2;
}

.admin-search{
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.admin-search__info{
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--textMuted);
}

.admin-pagination{
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-pagination__info{
  font-size: 12px;
  color: var(--textMuted);
}

.transit-page{
  min-height: 100dvh;
  padding: 106px 18px 110px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.transit-search{
  position: relative;
  overflow: hidden;
  background: rgba(11, 16, 23, 0.98);
  border-radius: 24px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 16px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.transit-tools{
  margin-top: 18px;
}

.transit-search h2{
  margin: 0;
  font-size: 13px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  text-shadow: none;
}

.transit-search__head p{
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.transit-search__form{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
}

.transit-search__field{
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 11, 16, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.transit-search__field::before{
  display: none;
}

.transit-search__field svg{
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.8;
  filter: none;
}

.transit-search__field input{
  flex: 1;
  background: transparent;
  border: 0;
  color: #fff;
  outline: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.transit-search__field input::placeholder{
  color: rgba(255, 255, 255, 0.45);
}

.transit-search__clear{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.transit-search__clear:hover{
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.transit-search__btn{
  height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid rgba(82, 124, 255, 0.5);
  background: linear-gradient(180deg, #234edb, #1a3ea9);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.transit-search__field:focus-within{
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.14),
    0 12px 28px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.transit-search__btn:hover{
  filter: brightness(1.05);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.55);
}

.transit-search__btn:active{
  transform: translateY(1px);
}

@media (max-width: 640px){
  .transit-page{
    max-width: 100%;
  }

  .transit-search__form{
    grid-template-columns: 1fr;
  }
  .transit-search__btn{
    width: 100%;
  }
  .transit-search{
    width: calc(100% + 36px);
    margin-left: -18px;
    margin-right: -18px;
    padding: 16px 18px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}

.transit-results{
  background: rgba(10, 14, 18, 0.85);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.seguretat-source{
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

.spray-info{
  display: grid;
  gap: 10px;
}

.spray-info--secondary{
  border-color: rgba(120, 166, 255, 0.2);
}

.spray-info__title{
  margin: 0;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.spray-info__list{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.45;
}

.spray-legal{
  display: grid;
  gap: 8px;
}

.spray-legal p{
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.45;
}

.spray-info__subtitle{
  margin: 6px 0 0;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.spray-toggle-btn{
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 16, 23, 0.86);
  color: #ffffff;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.spray-toggle-btn:hover{
  border-color: rgba(120, 166, 255, 0.45);
  background: rgba(15, 21, 30, 0.94);
}

.spray-search__submit{
  min-height: 46px;
  border-radius: 12px;
}

.spray-assistant-catalog{
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
}

.spray-assistant-catalog .spray-list{
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.spray-list-panel{
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.spray-card{
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(9, 13, 19, 0.84);
  display: grid;
  gap: 10px;
}

.spray-card__name{
  margin: 0;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: 16px;
  color: #fff;
  line-height: 1.2;
}

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

.spray-card__meta span{
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 3px;
}

.spray-card__meta strong{
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}

.spray-card__note{
  margin: 0;
  color: #dfe8ff;
  font-size: 12px;
}

.spray-mark{
  background: rgba(77, 130, 247, 0.26);
  color: #fff;
  border-radius: 6px;
  padding: 0 3px;
}

.spray-admin{
  display: grid;
  gap: 12px;
}

.spray-admin__title{
  margin: 0;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #92b4ff;
}

.spray-admin__form{
  display: grid;
  gap: 10px;
}

.spray-admin__form--inline{
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.spray-admin__actions{
  display: flex;
  justify-content: flex-end;
}

.spray-admin__delete{
  margin-top: 4px;
}

@media (max-width: 680px){
  .spray-card__meta{
    grid-template-columns: 1fr;
  }
  .spray-admin__grid{
    grid-template-columns: 1fr;
  }
}

.transit-results.is-hidden{
  display: none;
}

.transit-create__form{
  display: grid;
  gap: 10px;
}

.transit-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 12;
}

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

.transit-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.7);
  backdrop-filter: blur(6px);
}

.transit-modal__panel{
  position: relative;
  width: min(92vw, 520px);
  max-height: 85vh;
  overflow: auto;
  background: linear-gradient(180deg, #121824, #0e131a);
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  display: grid;
  gap: 12px;
}

.transit-modal__close{
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.transit-results__list{
  display: grid;
  gap: 14px;
}

.transit-card{
  background: rgba(12, 16, 22, 0.9);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 10px;
}

.transit-card__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.transit-card__reglamento{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7aa0ff;
}

.transit-card__title{
  margin: 6px 0 0;
  font-size: 16px;
  color: #fff;
}

.transit-card__meta{
  display: grid;
  gap: 6px;
  text-align: right;
  font-size: 12px;
  color: var(--textMuted);
}

.transit-card__meta span{
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.transit-card__desc{
  margin: 0;
  color: var(--textMuted);
  font-size: 13px;
  line-height: 1.5;
}

.transit-card__severity{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  color: #cfe0ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
}

.transit-card__severity[data-level=\"lleu\"]{
  color: #9fd3ff;
  border-color: rgba(159, 211, 255, 0.35);
}

.transit-card__severity[data-level=\"greu\"]{
  color: #ffd27a;
  border-color: rgba(255, 210, 122, 0.35);
}

.transit-card__severity[data-level=\"molt greu\"]{
  color: #ff9aa2;
  border-color: rgba(255, 154, 162, 0.35);
}
.hl{
  background: transparent;
  color: #86a6ff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(70, 128, 255, 0.8);
  text-underline-offset: 3px;
}

.transit-edit{
  margin-top: 6px;
  display: grid;
  gap: 10px;
}

.transit-delete{
  display: flex;
  justify-content: flex-end;
}

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

.field__input--area{
  resize: vertical;
  min-height: 88px;
}

@media (max-width: 640px){
  .transit-card__head{
    flex-direction: column;
    align-items: flex-start;
  }

  .transit-card__meta{
    grid-auto-flow: column;
    text-align: left;
  }

  .transit-edit__grid{
    grid-template-columns: 1fr;
  }
}

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

.tools-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px 14px;
}

.admin-carousel{
  margin-bottom: 8px;
}

.tool-card{
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  height: 260px;
  background: linear-gradient(180deg, rgba(16, 20, 28, 0.95), rgba(10, 14, 20, 0.92));
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 10px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
  scroll-snap-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.tool-card.is-locked .tool-card__image{
  filter: grayscale(1) contrast(1.05);
}

.tool-card__lock{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  z-index: 2;
}

.tool-card__lock svg{
  width: 36px;
  height: 36px;
}
.tool-card__label{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(8, 12, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  z-index: 2;
}
.tool-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5);
}
.tool-card__icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  color: #d7e3ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.tool-card__icon svg{
  width: 22px;
  height: 22px;
}

.tool-card__text{
  display: grid;
  gap: 0;
  text-align: left;
}

.tool-card__title{
  font-size: 12px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tool-card__desc{
  display: none;
}

.tool-card__image{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.95) contrast(1.05);
}

.tool-card__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.15) 0%, rgba(8, 10, 14, 0.75) 70%);
}

.tool-card__content{
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.tool-card__badge{
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 12, 18, 0.7);
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 2;
}

.tool-card__badge svg{
  width: 18px;
  height: 18px;
}

.tool-card__title{
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.tool-card__desc{
  font-size: 12px;
}

@media (max-width: 640px){
  .tool-card{
    height: 240px;
  }
  .tool-card__label{
    font-size: 11px;
  }
}


.admin-card{
  background: rgba(12, 16, 22, 0.9);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 12px;
}

.admin-card--hero{
  padding: 20px;
  gap: 16px;
}

.admin-card__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-card__badge{
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cfe0ff;
  border: 1px solid rgba(120, 160, 255, 0.4);
  background: rgba(12, 18, 28, 0.85);
}

.admin-card__hint{
  color: var(--textMuted);
  font-size: 12px;
  margin: 0;
}

.admin-media{
  display: grid;
  gap: 12px;
}

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

.admin-media__item{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
}

.admin-media__preview{
  width: 140px;
  height: 94px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.admin-media__form{
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.admin-order{
  display: flex;
  justify-content: flex-end;
}

.media-card.is-dragging,
.admin-order__item.is-dragging{
  opacity: 0.6;
  border-color: rgba(120, 160, 255, 0.6);
}

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

.admin-order__item{
  background: rgba(10, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: grab;
}

.admin-order__handle{
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
}

.admin-order__title{
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.media-card{
  background: rgba(8, 12, 18, 0.75);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: grid;
  gap: 0;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.media-card__preview{
  height: 160px;
  background-size: cover;
  background-position: center;
}

.media-card__preview--mini{
  height: 120px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.media-card__body{
  padding: 14px;
  display: grid;
  gap: 8px;
}

.media-card__title{
  font-size: 14px;
  color: #fff;
}

.media-card__meta{
  font-size: 12px;
  color: var(--textMuted);
}

.media-card__form{
  display: grid;
  gap: 8px;
}

.upload-pill{
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(8, 12, 18, 0.9);
  color: #cfe0ff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.upload-pill__input{
  display: none;
}

@media (max-width: 640px){
  .admin-media__item{
    grid-template-columns: 1fr;
  }

  .admin-media__preview{
    width: 100%;
    height: 140px;
  }
}

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

.admin-user{
  background: rgba(10, 14, 18, 0.85);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.admin-user summary{
  list-style: none;
  cursor: pointer;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-user summary::-webkit-details-marker{
  display: none;
}

.admin-user__summary{
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.admin-user__avatar{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.admin-user__avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-user__info{
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: var(--textMuted);
}

.admin-user__info strong{
  color: #fff;
  font-size: 14px;
}

.admin-user__lastlist{
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

.admin-user__badge{
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(35, 86, 217, 0.18);
  color: var(--tealSoft);
  font-size: 11px;
}

.admin-user__badge.is-admin{
  background: rgba(255, 193, 7, 0.18);
  color: #ffd26a;
}

.admin-user__badge.is-online{
  background: rgba(51, 209, 122, 0.18);
  color: #7af0b0;
}

.admin-user__online{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #33d17a;
  box-shadow: 0 0 0 3px rgba(51, 209, 122, 0.2);
  margin-right: 6px;
}

.admin-user__delete{
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 18, 0.5);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.admin-user__body{
  padding: 0 14px 14px;
  display: grid;
  gap: 10px;
  background: rgba(9, 13, 17, 0.9);
}

.admin-user__meta{
  font-size: 11px;
  color: var(--textMuted);
  display: grid;
  gap: 4px;
}

.admin-user__actions{
  display: flex;
  justify-content: flex-end;
}

.admin-delete{
  margin-top: -4px;
}

@media (min-width: 900px){
  .admin-page{
    max-width: 900px;
    margin: 0 auto;
  }

  .admin-stats{
    grid-template-columns: 1.4fr 1fr;
  }

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

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

.profile-hero{
  background: rgba(15, 20, 24, 0.85);
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.procedure-page{
  min-height: 100dvh;
  padding: 118px 18px 110px;
  display: grid;
  justify-items: center;
}

.procedure-card{
  width: min(980px, 100%);
  background: rgba(15, 20, 24, 0.92);
  border-radius: 28px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 20px;
  box-shadow: var(--shadow);
}

.procedure-head h2{
  margin: 6px 0 4px;
  font-family: "Outfit", sans-serif;
  font-size: 24px;
}

.procedure-eyebrow{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--textMuted);
}

.procedure-lead{
  color: var(--textMuted);
  margin: 0;
  font-size: 13px;
}

.procedure-steps{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.procedure-step{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.55);
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.procedure-step.is-active{
  color: #fff;
  background: rgba(66, 122, 255, 0.18);
  border-color: rgba(66, 122, 255, 0.55);
  box-shadow: 0 12px 26px rgba(32, 92, 230, 0.25);
}

.procedure-step:disabled{
  opacity: 0.4;
  cursor: not-allowed;
}

.procedure-panels{
  display: grid;
  gap: 16px;
}

.procedure-panel{
  display: none;
  padding: 18px;
  border-radius: 20px;
  background: rgba(12, 16, 20, 0.75);
  border: 1px solid rgba(255,255,255,0.08);
  gap: 12px;
}

.procedure-panel.is-active{
  display: grid;
}

.procedure-panel h3{
  margin: 0;
  font-size: 17px;
}

.procedure-text{
  margin: 0;
  color: var(--textMuted);
  font-size: 13px;
}

.procedure-notice{
  margin-top: 10px;
  background: rgba(40, 180, 99, 0.18);
  border: 1px solid rgba(40, 180, 99, 0.4);
  color: #c7f3d9;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.procedure-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-btn{
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-btn:hover{
  border-color: rgba(66, 122, 255, 0.6);
}

.pill-btn--accent{
  background: rgba(66, 122, 255, 0.28);
  border-color: rgba(66, 122, 255, 0.5);
}

.pill-btn.is-selected{
  border-color: rgba(66, 122, 255, 0.9);
  box-shadow: 0 8px 20px rgba(32, 92, 230, 0.3);
}

.procedure-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.procedure-field{
  display: grid;
  gap: 8px;
  color: var(--textMuted);
  font-size: 12px;
}

.procedure-input{
  background: rgba(8, 12, 16, 0.8);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 15px;
}

.procedure-input-row{
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(66, 122, 255, 0.2);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn--label{
  width: auto;
  height: auto;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 14px;
  letter-spacing: 0.02em;
}

.icon-btn:hover{
  border-color: rgba(66, 122, 255, 0.8);
  box-shadow: 0 8px 18px rgba(32, 92, 230, 0.3);
}

.icon-btn svg{
  width: 20px;
  height: 20px;
}

.procedure-result{
  padding: 20px;
  border-radius: 22px;
  background: rgba(10, 14, 18, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  display: grid;
  gap: 14px;
}

.procedure-result--ok{
  background: rgba(40, 180, 99, 0.18);
  border-color: rgba(40, 180, 99, 0.35);
}

.procedure-result--warn{
  background: rgba(255, 204, 102, 0.12);
  border-color: rgba(255, 204, 102, 0.3);
}

.procedure-result--danger{
  background: rgba(255, 77, 79, 0.12);
  border-color: rgba(255, 77, 79, 0.3);
}

.procedure-result[hidden]{
  display: none !important;
}

.procedure-result__head h3{
  margin: 6px 0;
}

.procedure-result__meta{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.procedure-result__meta:empty{
  display: none;
}

.procedure-result__meta div{
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.procedure-result__meta span{
  font-size: 11px;
  color: var(--textMuted);
}

.procedure-result__meta strong{
  font-size: 14px;
}

.procedure-result__route{
  display: grid;
  gap: 8px;
}

@media (min-width: 1024px){
  .procedure-page--drogo{
    padding-top: 112px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .procedure-card--drogo{
    width: min(1120px, 100%);
    padding: 30px;
    gap: 22px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(15, 20, 24, 0.96), rgba(10, 14, 18, 0.94));
  }

  .procedure-card--drogo .procedure-head{
    max-width: 860px;
  }

  .procedure-card--drogo .procedure-head h2{
    font-size: 28px;
    line-height: 1.1;
    margin-top: 8px;
  }

  .procedure-card--drogo .procedure-lead{
    font-size: 14px;
  }

  .procedure-card--drogo .procedure-steps{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .procedure-card--drogo .procedure-step{
    width: 100%;
    text-align: center;
    font-weight: 600;
  }

  .procedure-card--drogo .procedure-panel{
    min-height: 220px;
    padding: 22px;
    border-radius: 22px;
  }

  .procedure-card--drogo .procedure-actions{
    gap: 12px;
  }

  .procedure-card--drogo .pill-btn{
    min-height: 44px;
  }

  .procedure-card--drogo .procedure-result{
    padding: 22px;
    border-radius: 24px;
  }

  .procedure-card--drogo .procedure-list{
    gap: 12px;
  }

  .procedure-card--drogo .procedure-act{
    padding: 14px 16px;
  }
}

.procedure-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: #e5e9f0;
  font-size: 13px;
}

.procedure-act{
  background: rgba(66, 122, 255, 0.12);
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 6px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  touch-action: pan-y;
  position: relative;
  overflow: hidden;
}

.procedure-act::after{
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 32px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.25));
  border-radius: 999px;
}

.procedure-act::before{
  content: "";
}

.procedure-list--penal .procedure-act{
  background: rgba(255, 77, 79, 0.12);
  border-color: rgba(255, 77, 79, 0.3);
}

.procedure-list--admin .procedure-act{
  background: rgba(255, 204, 102, 0.2);
  border-color: rgba(255, 204, 102, 0.45);
}

.procedure-act__label{
  font-weight: 600;
}

.procedure-act__hint{
  font-size: 11px;
  color: var(--textMuted);
}

.procedure-act.is-dragging{
  opacity: 0.8;
}

.procedure-act.is-dismissed{
  opacity: 0;
}

.procedure-act--notice{
  background: rgba(255, 204, 102, 0.18);
  border: 1px solid rgba(255, 204, 102, 0.4);
  color: #ffd38a;
  font-weight: 600;
}

.procedure-list--penal .procedure-act--notice{
  background: rgba(255, 204, 102, 0.2);
  border-color: rgba(255, 204, 102, 0.5);
  color: #ffe2a6;
}

.procedure-act--copy{
  background: rgba(93, 134, 243, 0.16);
  border: 1px solid rgba(93, 134, 243, 0.4);
  color: #dbe6ff;
  font-weight: 600;
}

.result-tag{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.08);
}

.result-tag--ok{
  background: rgba(46, 204, 113, 0.18);
  color: #aef1c5;
}

.result-tag--warn{
  background: rgba(255, 187, 51, 0.18);
  color: #ffd494;
}

.result-tag--danger{
  background: rgba(255, 77, 79, 0.2);
  color: #ffb3b5;
}

.procedure-footer{
  display: flex;
  justify-content: flex-end;
}

.ghost-btn{
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
}

@media (max-width: 720px){
  .procedure-page{
    padding: 106px 14px 110px;
  }

  .procedure-card{
    padding: 16px;
    border-radius: 22px;
    gap: 16px;
  }

  .procedure-head h2{
    font-size: 20px;
  }

  .procedure-steps{
    gap: 8px;
  }

  .procedure-step{
    flex: 1 1 0;
    text-align: center;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12px;
  }

  .procedure-panel{
    padding: 14px;
  }

  .procedure-actions{
    width: 100%;
  }

  .pill-btn{
    flex: 1 1 0;
    justify-content: center;
    padding: 10px 12px;
  }

  .procedure-input-row{
    flex-direction: column;
    align-items: stretch;
  }

  .icon-btn{
    width: 100%;
  }

  .procedure-result{
    padding: 16px;
  }

  .procedure-result__meta{
    grid-template-columns: 1fr;
  }

  .procedure-act{
    padding: 12px;
  }
}

.profile-hero__hint{
  color: var(--textMuted);
  font-size: 12px;
  display: flex;
  gap: 8px;
}

.profile-hero__avatar{
  position: relative;
  display: grid;
  place-items: center;
}

.avatar-frame--large{
  width: 140px;
  height: 140px;
}

.avatar-edit{
  position: absolute;
  right: calc(50% - 70px);
  bottom: 6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(45, 107, 255, 0.9);
  color: #0b0f10;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.avatar-edit svg{
  width: 16px;
  height: 16px;
}

.profile-hero__controls{
  display: grid;
  gap: 10px;
}

.upload--ghost{
  background: rgba(8, 12, 18, 0.6);
}

.ghost-btn--small{
  height: 40px;
}

.profile-form{
  display: grid;
  gap: 14px;
}

.profile-card{
  background: rgba(15, 20, 24, 0.9);
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 12px;
  min-width: 0;
}

.profile-card--personal{
  gap: 10px;
}

.profile-card--personal .input-pill{
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  justify-content: stretch;
  gap: 6px;
  padding: 12px 14px;
  min-height: 76px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(9, 14, 21, 0.88), rgba(7, 11, 17, 0.82));
}

.profile-card--personal .input-pill__label{
  min-width: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.profile-card--personal .input-pill__input{
  text-align: left;
  height: 28px;
  line-height: 1.3;
  font-size: 16px;
  font-weight: 600;
}

.profile-card--compact{
  padding: 12px;
  gap: 8px;
}

.profile-card--compact .input-pill{
  min-height: 32px;
  padding: 4px 10px;
}

.profile-card h3{
  margin: 0;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.input-pill{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(8, 12, 18, 0.65);
  border-radius: 14px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  min-height: 38px;
  min-width: 0;
}

.input-pill--compact{
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
}

.input-pill__label{
  font-size: 10px;
  color: var(--textMuted);
  min-width: 110px;
}

.input-pill__input{
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  outline: none;
  height: 18px;
  line-height: 1.2;
  flex: 1;
  text-align: right;
  width: auto;
  min-width: 6ch;
  max-width: 100%;
}

.input-pill--compact .input-pill__input{
  flex: 0 1 auto;
}

.input-pill select.input-pill__input{
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--textMuted) 50%),
    linear-gradient(135deg, var(--textMuted) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 10px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 26px;
}

.input-pill__input[type="range"]{
  height: 22px;
  appearance: none;
  background: transparent;
}

.input-pill__input[type="range"]::-webkit-slider-runnable-track{
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.input-pill__input[type="range"]::-webkit-slider-thumb{
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: -5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.input-pill__input[type="range"]::-moz-range-track{
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.input-pill__input[type="range"]::-moz-range-thumb{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
  border: 0;
}

.profile-note{
  margin: 0;
  font-size: 12px;
  color: var(--textMuted);
}

.profile-save{
  height: 54px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #1f52d1, #1a46b3);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px){
  .profile-page{
    max-width: 720px;
    margin: 0 auto;
  }

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

  .profile-card{
    min-height: 220px;
  }

  .profile-card--personal{
    min-height: auto;
    align-content: start;
  }

  .profile-card--personal .input-pill{
    min-height: 82px;
  }
}

.profile{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: flex-start;
  padding: 24px;
  z-index: 10;
}

.profile.is-open{
  display: flex;
}

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

.profile__panel{
  position: relative;
  width: min(92vw, 380px);
  background: linear-gradient(180deg, #121824, #0e131a);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.profile__close{
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.profile__title{
  margin: 0;
  text-align: center;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: 20px;
}

.profile__section{
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 14px;
  background: rgba(8, 12, 18, 0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile__section-title{
  margin: 0;
  font-size: 12px;
  color: var(--tealSoft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile__preview{
  width: 100%;
  display: grid;
  place-items: center;
}

.profile__preview img{ border: 0; }

.profile__hint{
  font-size: 12px;
  color: var(--textMuted);
  text-align: center;
}

.ghost-btn{
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 18, 0.35);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.ghost-btn--danger{
  border-color: rgba(239, 68, 68, 0.5);
  color: #fecaca;
}

.upload{
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.8);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.upload__label{
  pointer-events: none;
}

.upload__input{
  display: none;
}

@media (max-width: 640px){
  .profile{
    padding: 20px;
  }
}

@media (min-width: 768px){
  .profile__panel{
    width: min(88vw, 720px);
    padding: 28px 32px;
    max-height: calc(100dvh - 140px);
  }

  .profile__section{
    padding: 16px 18px;
  }

  .profile__preview img{
    width: 140px;
    height: 140px;
  }

  .login__panel{
    width: min(88vw, 420px);
    padding: 32px;
  }
}

@media (min-width: 1024px){
  .profile__panel{
    width: min(70vw, 820px);
  }
}

.splash{
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(45, 107, 255, 0.16), transparent 60%),
    radial-gradient(800px 500px at 110% 20%, rgba(111, 160, 255, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
}

.splash__wrap{
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.splash__logo{
  width: min(70vw, 260px);
  height: auto;
  display: block;
}

.landing-page{
  height: 100dvh;
  min-height: 100dvh;
  padding: 10px 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  justify-content: space-between;
  position: relative;
}

.landing-page::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(45, 107, 255, 0.18), transparent 62%),
    radial-gradient(900px 700px at 110% 15%, rgba(111, 160, 255, 0.12), transparent 62%),
    linear-gradient(180deg, #0b0f10 0%, #0b0f10 100%);
  filter: none;
  opacity: 1;
  z-index: 0;
  animation: none;
}

.landing-page::after{
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  filter: none;
  opacity: 0;
  z-index: 0;
  animation: none;
}

@keyframes hazeShift{
  0% { transform: translate3d(-3%, -2%, 0) scale(1.04); }
  50% { transform: translate3d(3%, 2%, 0) scale(1.14); }
  100% { transform: translate3d(-3%, -2%, 0) scale(1.04); }
}

@keyframes hazeDrift{
  0% { transform: translate3d(4%, -3%, 0) scale(1.08); }
  50% { transform: translate3d(-4%, 3%, 0) scale(1.16); }
  100% { transform: translate3d(4%, -3%, 0) scale(1.08); }
}

.landing-logo{
  width: auto;
  max-width: min(70vw, 320px);
  max-height: 22vh;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  object-fit: contain;
}

.landing-center{
  gap: 6px;
}

.landing-center{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: calc(12px + var(--safeTop));
  gap: 10px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.landing-beta{
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  margin-top: -2px;
}

.lock-badge{
  align-self: center;
  justify-self: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 999px;
}

.lock-icon{
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 16px;
  background: rgba(66, 122, 255, 0.14);
  display: grid;
  place-items: center;
  color: #b4ccff;
  border: 1px solid rgba(66, 122, 255, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 0 18px rgba(66, 122, 255, 0.35);
}

.lock-icon svg{
  width: 36px;
  height: 36px;
}

.lock-center{
  min-height: calc(100dvh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.live-toast{
  position: fixed;
  right: 18px;
  bottom: 90px;
  background: rgba(15, 20, 24, 0.95);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  z-index: 50;
  display: grid;
  gap: 4px;
  min-width: 220px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.live-toast[hidden]{
  display: none !important;
}

.live-toast__title{
  font-size: 11px;
  color: var(--textMuted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.live-toast__body{
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}

.live-toast.is-hide{
  opacity: 0;
  transform: translateY(8px);
}

.invite-page{
  display: grid;
  place-items: center;
  padding: 24px;
}

.invite-card{
  width: min(420px, 100%);
  background: rgba(15, 20, 24, 0.92);
  border-radius: 24px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 14px;
  text-align: center;
  box-shadow: var(--shadow);
}

.invite-card h1{
  margin: 0;
  font-size: 18px;
}

.invite-link{
  display: grid;
  gap: 6px;
  text-align: left;
}

.invite-link span{
  font-size: 11px;
  color: var(--textMuted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.invite-link input{
  background: rgba(8, 12, 16, 0.85);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
}

.landing-cta{
  margin-top: 0;
  padding-bottom: calc(8px + var(--safeBottom));
  position: relative;
  z-index: 1;
}

@media (max-width: 640px){
  .landing-page{
    gap: 8px;
  }

  .landing-logo{
    width: min(76vw, 300px);
  }

  .news-card__content{
    gap: 2px;
  }
}

.art{
  margin: 0;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 32vh;
}

.art img{
  width: min(82vw, 320px);
  max-height: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.gallery__text{
  text-align: center;
  min-height: 96px;
  margin-top: -8px;
  margin-bottom: 12px;
}

.headline{
  margin: 0;
  text-align: center;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: clamp(26px, 7.5vw, 34px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.copy{
  margin: 8px 0 0;
  max-width: 280px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--textMuted);
}

.pager{
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot{
  width: 20px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.dot.is-active{
  background: var(--teal);
}

.dot:focus-visible{
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 4px;
}

.cta{
  margin-top: auto;
  width: 100%;
  height: 60px;
  min-height: 60px;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #0c1112, #090d0e);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.12s ease, filter 0.12s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover{
  background: linear-gradient(180deg, #0f2a2a, #0b1f20);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(45, 107, 255, 0.35);
}

.cta:active{
  transform: translateY(1px) scale(0.99);
  background: linear-gradient(180deg, #0c1e1e, #0a1516);
}

@media (max-width: 640px){
  .profile-page{
    max-width: 100%;
    padding: 118px 18px 110px;
  }

  .wrap{
    padding: 0;
  }

  .device{
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    padding:
      calc(18px + var(--safeTop))
      calc(20px + var(--safeRight))
      calc(18px + var(--safeBottom))
      calc(20px + var(--safeLeft));
  }

  .art img{
    width: min(84vw, 300px);
  }

  .cta{
    height: 60px;
    min-height: 60px;
    margin-bottom: calc(10px + var(--safeBottom));
  }
}

.is-locked{
  overflow: hidden;
}

.login{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}

.login.is-open{
  display: flex;
}

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

.login__panel{
  position: relative;
  width: min(92vw, 380px);
  background: linear-gradient(180deg, #121824, #0e131a);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 85vh;
  overflow: auto;
}

.login__close{
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.login__logo{
  width: min(54vw, 180px);
  height: auto;
  margin: 0 auto;
  display: block;
}

.login__title{
  margin: 0;
  text-align: center;
  font-family: "Outfit", "Nunito Sans", sans-serif;
  font-size: 22px;
}

.login__subtitle{
  margin: 0;
  text-align: center;
  color: var(--textMuted);
  font-size: 13px;
}

.form{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--check{
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.field__check{
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.field__text{
  font-size: 13px;
  color: var(--textMuted);
}

.field__label{
  font-size: 12px;
  color: var(--textMuted);
}

.field__input{
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.8);
  color: var(--text);
  padding: 0 14px;
  font-size: 14px;
}

.field__input:focus{
  outline: none;
  border-color: rgba(122, 167, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(43, 107, 255, 0.2);
}

.form__submit{
  margin-top: 6px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, #0b0f14, #070a0e);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.form__link{
  margin: 4px auto 0;
  background: none;
  border: 0;
  color: var(--textMuted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

.logout{
  margin-top: 6px;
}

.logout__btn{
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.form__error,
.form__success{
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  text-align: center;
}

.form__error{
  background: rgba(225, 29, 72, 0.18);
  color: #fecdd3;
}

.form__success{
  background: rgba(16, 185, 129, 0.18);
  color: #bbf7d0;
}

@media (max-width: 640px){
  .login{
    padding: 24px;
  }

  .login__panel{
    width: min(92vw, 380px);
    border-radius: 28px;
    margin: 0;
    padding:
      24px
      calc(20px + var(--safeRight))
      calc(24px + var(--safeBottom))
      calc(20px + var(--safeLeft));
  }
}

@media (min-width: 900px){
  .device{
    min-height: 720px;
  }
}
.procedure-result__actions{
  display: flex;
  justify-content: flex-end;
}
