*{
    margin: 0px;
    padding: 0px;
    display: flexbox;   
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}
html, body {
  height: 100%;
  overflow: hidden;    /* нельзя скроллить сайт, пока модалка открыта */
}

body {
  min-height: 100vh;
  width: 100vw;
  background: linear-gradient(145deg, 
    rgba(15, 15, 18, 0.98) 0%,     /* Очень темный */
    rgba(28, 28, 29, 0.95) 20%,    /* Ваш #1c1c1d */
    rgba(45, 45, 48, 0.9) 40%,     /* Темно-серый */
    rgba(50, 50, 53, 0.85) 60%,    /* Серый */
    rgba(35, 35, 40, 0.9) 80%,     /* Темно-серый */
    rgba(20, 20, 25, 0.97) 100%);
    background-attachment: fixed;
  color: #f5f7ffdd;
  
}

@media (max-width: 768px) {
  html, body {
    height: 100%; /* Убираем vh у html */
    overflow-x: hidden;
  }

  body {
    /* На мобилках градиент лучше делать через псевдоэлемент или просто убрать fixed */
    min-height: 100dvh !important;
    background-attachment: scroll !important; /* FIXED — ГЛАВНЫЙ ВРАГ ПОДБОРОДКА */
    background-size: cover;
    width: 100% !important;
  }
}

body::-webkit-scrollbar {
  display: none;
}

/* модалка */

#login-overlay, #register-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(black, rgb(63, 63, 63));
  display: flex;     /* логин сразу показан */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#register-overlay {
  display: none;     /* регистрация скрыта изначально */
}

@media (max-width: 480px) {
  #register-overlay {display: flex; flex-direction: column;}
}

.modal {
  background: #111111;
  color: #dddddd;
  border: 2px solid #2e2e2e71;
  box-shadow: 0px 4px 40px #2e2e2ed2;
  padding: 34px 40px;
  border-radius: 16px;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

input {
  font-size: 19px;
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid #4646466c;
  border-radius: 8px;
  background: #2e2e2e6c;
  color: #f1f5f9;
  box-sizing: border-box;
  font-family: 'Unbound';
}
input:focus,
input:active {
  outline: none;
}
input:focus{
  border: 1px solid #a7a7a76c;
  box-shadow: 2px 2px 40px #46464680;
}

button {
  width: 85%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: radial-gradient(circle at top left, rgba(39, 39, 39, 0.685),rgba(27, 27, 27, 0.568),rgba(39, 39, 39, 0.685) );
  color: #f1f5f9; font-family: 'Unbound';
  cursor: pointer;
}

button[type="submit"] {
  display: block;
  margin: 0 auto;
  margin-top: 12px;
}
button[type="submit"]:hover{
  background: radial-gradient(circle at top left, rgba(39, 39, 39, 0.685),
  rgba(61, 61, 61, 0.568),
  rgba(39, 39, 39, 0.685) );
}
button[type="button"] {
  background: #212122;
  margin: 15px 0px; 
}
button[type="button"]:hover{
  background: radial-gradient(circle at top left, rgba(39, 39, 39, 0.685),
  rgba(61, 61, 61, 0.568),
  rgba(39, 39, 39, 0.685) );
}


/* модальное окно регистрации */

@font-face {
  font-family: 'Akony';
  src: url('/fonts/AKONY.ttf') format('truetype');
}
@font-face {
  font-family: 'Unbound';
  src: url(/fonts/Unbounded-Regular.ttf);
}
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
img{
  user-select: none;
  -webkit-user-drag: none;
}
header{
  display: flex; justify-content: end;
}


h2{
  text-align: center; letter-spacing: 2px;
  font-size: 25px; font-family: 'Akony';
  margin: 24px 0px; margin-bottom: 30px;
}

.content{
  margin-top: 100px; 
  width: 90%; max-width: 1450px;
  padding-bottom: 100px;
  justify-self: center;
}
.content h2{
  font-size: 30px;
  letter-spacing: 2px;
  margin-bottom: 1%;
  color: #dddddd;
}

#content-box{
  justify-self: center;
  border: 2px solid #5050506c;
  box-shadow: 0px 0px 100px #2e2e2ed2;
  border-radius: 30px;
  background-color: #212122;
  max-width: 1300px; width: 90%;
  padding-bottom: 50px; 
}
#history-box{
  justify-self: center;
  border: 2px solid #5050506c;
  box-shadow: 0px 0px 100px #2e2e2ed2;
  border-radius: 30px;
  background-color: #212122;
  max-width: 1300px; width: 90%;
  padding-bottom: 50px; 
}

.txt{
  display: flex; justify-content: space-evenly;
  margin: 10px 60px;
  transition: all 0.3s ease; gap: 4 0px;
  font-size: 22px; font-family: 'Unbound';
}
.txt p{
  margin: 45px 0px 0px 0px;
}

#name{
  letter-spacing: 1.5px; color: #e0e0e0;
  font-size: 19px; font-family: 'Unbound'; 
  margin: 0px 20px;
}
.prof-photo{
  display: flex; align-items: center; width: max-content;
  justify-self: end;
  margin: 25px 140px; margin-left: 150px; padding-left: 15px;
  border: 1px solid #3f3f3fb6; border-radius: 50px;
  background-color: #33333363;
  box-shadow: 1px 1px 24px #5c5c5cbb;
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .prof-photo {
    position: relative;
    height: 70%;
    padding: 6px 10px !important;
    right: 10%;
    box-shadow: 1px 1px 15px #5c5c5cbb;
  }
  .prof-photo #name {
    font-size: 70%;
  }
  .prof-photo img {
    width: 35px !important;
  }

  .tooltip-notif {display: none;}
  .tooltip-prof {display: none;}
  .tooltip {display: none;}

  .exit-button {position: relative; left: 59%; margin-top: -1px !important;}

  #exit {width: 43px !important; height: 43px !important; margin-top: 13px; margin-right: 45px;}

  #exit img {width: 25px !important; margin-left: -8px; margin-top: -7px;}
}
.exit-button {margin-top: 23px; margin-right: -140px;}


.prof-photo:hover{
  border: 1px solid #727272b6;
}
.prof-photo:hover + .tooltip-prof{
  opacity: 1;
}
.prof-photo img{
  width: 50px;
}

#exit{
  background: none;
  width: max-content; height: max-content;
  border: 1px solid #3d3d3db6; border-radius: 50%;
  background-color: #30303075;
  transition: all 0.2s ease;
}
#exit:hover{
  border: 1px solid #72727275;
  scale: 1.04;
}
#exit:hover + .tooltip{
  opacity: 1;
}

#exit:active{
  scale: 0.96;
}
#exit img{
  padding: 4px 0px 2px 8px;
  width: 32px;
}

.notific {
  margin-top: -3px;
  margin-right: 15px;
  width: 48px; 
  transition: all 0.3s ease;
  cursor: pointer;
}

.notific:hover {
  scale: 1.1;
  animation: bell-swing 1.5s ease-in-out infinite;
}

#notification:hover + .tooltip-notif{
  opacity: 1;
}
#notification{
  position: relative;
  height: max-content;
  margin-top: 36px; 
}

@media (max-width:768px) {
  #notification {
    margin-top: 4.5% !important;
    left: -1%;
  }
  #notification img {width: 37px;}
  .notif-popup-container {
    position: relative;
    top: 80% !important;
    left: -6% !important;
    text-align: center;
  }
}

.notif-popup-container {
  position: absolute;
  top: 5px;
  right: 770px;
  color: #dbdbdb;
  background-color: #333333;
  padding: 15px;
  border-radius: 20px;
  border: 1px solid #5050506c;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 1100;
  box-shadow: 0px 0px 100px #434343de;
  font-family: 'Unbound', sans-serif;
  width: 300px;
}

.notif-item {
  padding: 10px;
  border-bottom: 1px solid #444;
  font-size: 14px;
}
.notif-item:last-child { border-bottom: none; }

/* Твоя анимация колокольчика */
.notific:hover {
  animation: bell-swing 1.5s ease-in-out infinite;
}

.notif-popup-container.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.notification-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

#notification::before {
  position: absolute;
  top: 10px;
  right: -6px;
  border: 6px solid transparent;
  z-index: 1001;
}


@keyframes bell-swing {
  0%, 20%, 80%, 100% {
    transform: rotate(0deg);
  }
  40% {
    transform: rotate(-10deg);
  }
  60% {
    transform: rotate(10deg);
  }
}

.tooltip-base {
  user-select: none; 
  z-index: 1000;
  border: 1px solid #4d4d4d2f; 
  border-radius: 50px;
  background: linear-gradient(145deg, #33333363, #5050509f, #33333363); 
  box-shadow: 1px 1px 24px #5c5c5cbb;
  position: absolute; 
  padding: 13px 20px;
  top: 90px; 
  right: 150px; 
  opacity: 0;
  visibility: hidden;
  font-size: 18px; 
  font-family: 'Unbound', sans-serif;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

#notification:hover + .tooltip-base,
#profile-btn:hover + .tooltip-base {
  opacity: 1;
  visibility: visible;
  z-index: 1001;
}

.tooltip-prof{
  user-select: none; z-index: -100;
  border: 1px solid #4d4d4d2f; border-radius: 50px;
  background: linear-gradient(145deg, #33333363, #5050509f, #33333363); box-shadow: 1px 1px 24px #5c5c5cbb;
  position: absolute; margin: 15px; padding: 13px;
  top: 90px; right: 150px; opacity: 0;
  font-size: 18px; font-family: 'Unbound';
  transition: all 0.2s ease-in-out;
}

.tooltip{
  user-select: none; z-index: -100;
  border: 1px solid #4d4d4d2f; border-radius: 50px;
  background: linear-gradient(145deg, #33333363, #5050509f, #33333363); box-shadow: 1px 1px 24px #5c5c5cbb;
  position: absolute; margin: 15px; padding: 13px;
  top: 90px; right: 150px; opacity: 0;
  font-size: 18px; font-family: 'Unbound';
  transition: all 0.2s ease-in-out;
}

.tooltip-notif{
  user-select: none; z-index: -100;
  border: 1px solid #4d4d4d2f; border-radius: 50px;
  background: linear-gradient(145deg, #33333363, #5050509f, #33333363); box-shadow: 1px 1px 24px #5c5c5cbb;
  position: absolute; margin: 15px; padding: 13px;
  top: 90px; right: 150px; opacity: 0;
  font-size: 18px; font-family: 'Unbound';
  transition: all 0.2s ease-in-out;
}

@keyframes pulse-shadow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(145, 145, 145, 0.5), inset 0 0 0 0 rgba(255,255,255,0.1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0), inset 0 0 5px rgba(255,255,255,0.3);
  }
}
.uveda{
  display: none;
  border-radius: 50%;
  width: max-content; padding: 3px 8px; z-index: -100;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  background: radial-gradient(circle at top left, rgb(39, 39, 39),
  rgb(61, 61, 61),
  rgb(39, 39, 39));
  user-select: none; transform: translateY(-20px);
  animation: pulse-shadow 1.8s ease-in-out infinite;}
/* свитчер подписок */

.switcher{
  display: flex; gap: 14px;
  width: max-content; 
  margin-top: 30px;
  margin: 0 auto;
  justify-self: center;
  border-radius: 140px;
  overflow: hidden;
}

.switcher button {
  transition: all 0.25s ease;
  font-size: 15px;
  flex: 1;
  padding: 14px 30px;
  border: 0;
  background: transparent;
  color: #c3c3c4;
  cursor: pointer;
}

.switcher button.active-btn {
  font-size: 17px;
  background: radial-gradient(circle at top left, rgba(49, 49, 49, 0.685),
  rgba(61, 61, 61, 0.568),
  rgba(48, 48, 48, 0.685) );
  color: rgb(216, 216, 216);
}


.panel {
  display: none;
  margin-top: 16px;
}

.panel.show {
  display: block;
}


/* сами подписки */

.stroke{
  display: flex; justify-content: space-evenly; align-items: center;
  margin: 24px 60px; transition: all 0.3s ease; gap: 80px;
  font-size: 19px; font-family: 'Unbound';
  border: 1px solid #5f5f5fb6; border-radius: 50px;
  background-color: #333333; 
}

.stroke:hover{
  border: 1px solid #a0a0a0b6;
}
.stroke p{
  margin: 20px 0px;
  color: rgba(175, 173, 173, 0.92);
} 
#subs{
    background: linear-gradient(50deg,
    rgb(190, 186, 186) 0%,    
    rgba(179, 176, 176, 0.9) 20%,   
    rgba(129, 129, 129, 0.9) 40%,    
    rgba(143, 140, 140, 0.9) 60%,    
    rgba(190, 186, 186, 0.9) 80%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; 
    animation: gradient 2.5s ease infinite;
}

/* ваывавыаыв */

.stroke {
  position: relative;
  padding: 12px;
  padding-right: 50px;
}

.activity-btn {
  position: absolute;
  right: 35px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 1px solid #797979d8;
  border-radius: 6px;
  background: radial-gradient(circle at top left, rgba(49, 49, 49, 0.685),
  rgba(53, 53, 53, 0.568),
  rgba(71, 71, 71, 0.685));
  color: #f5f7ffdd;
  color: transparent;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.2s;
}
.activity-btn:hover{
  border: 1px solid #9b9b9bd8;
}

.activity-btn.active {
  background: radial-gradient(circle at top left, rgb(136, 136, 136),
  rgb(189, 189, 189),
  rgb(173, 173, 173));
  border-color: #dadada; border-radius: 10px;
}

.activity-message {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at top left, rgb(66, 66, 66),
  rgb(75, 75, 75),
  rgb(71, 71, 71) );
  color: #f5f7ffdd;
  padding: 5px 8px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
}

.activity-message.show {
  opacity: 1;
}


#prism{
  user-select: none; z-index: -1000;
  -webkit-user-drag: none;
  text-align: center; color: white;
  font-size: 66px; font-family: 'Akony';
  rotate: 270deg; letter-spacing: 10px;
  position: absolute;
  left: -270px;           /* 20px от левого края */
  top: 41.6%;             /* По центру по вертикали */
  transform: translateY(-50%);

  background: linear-gradient(50deg,
    rgb(190, 186, 186) 0%,     /* Очень темный */
    rgba(179, 176, 176, 0.9) 10%,    /* Ваш #1c1c1d */
    rgba(129, 129, 129, 0.9) 40%,     /* Темно-серый */
    rgba(143, 140, 140, 0.9) 60%,    /* Серый */
    rgb(190, 186, 186) 0%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; 
    animation: gradient 2.5s ease infinite;
}
#prism2{
  user-select: none; z-index: -1000;
  -webkit-user-drag: none;
  text-align: center; color: white;
  font-size: 66px; font-family: 'Akony';
  rotate: 90deg; letter-spacing: 10px;
  position: absolute;
  right: -270px;           /* 20px от левого края */
  top: 41.6%;             /* По центру по вертикали */
  transform: translateY(-50%);

  background: linear-gradient(50deg,
    rgb(190, 186, 186) 0%,     /* Очень темный */
    rgba(179, 176, 176, 0.9) 10%,    /* Ваш #1c1c1d */
    rgba(129, 129, 129, 0.9) 40%,     /* Темно-серый */
    rgba(143, 140, 140, 0.9) 60%,    /* Серый */
    rgb(190, 186, 186) 0%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; 
    animation: gradient 2.5s ease infinite;
}


footer{
  bottom: 0; margin-top: -3%;
  text-align: center; font-size: 20px;
  letter-spacing: 2px; justify-self: center;
  font-family: 'unbounded', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  user-select: none; color: #8f8e8ece;
}

footer a {text-decoration: none; color: #d3d1d1ce;}

footer p {font-size: 70%;}

/* anaлитика */

.analytics-trigger {
  margin: 25px auto; margin-bottom: -10px;
  display: block; font-size: 15px;
  padding: 13px 35px;
  width: max-content;
  background: radial-gradient(circle at top left, rgba(49, 49, 49, 0.685),
  rgba(75, 75, 75, 0.568),
  rgba(71, 71, 71, 0.685) );
  border-radius: 30px;
  color: #f5f7ffdd;
  cursor: pointer; transition: all 0.25s ease;
}
#analytics-btn:hover{
  box-shadow: 1px 1px 9px #5c5c5c94;
}

.analytics-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.analytics-content {
  background: #191919;
  padding: 24px;
  border-radius: 16px;
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  font-family: "unbounded", Verdana, Geneva, Tahoma, sans-serif;
}
.analytics-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

#analytics-chart {
  width: 100% !important;
  max-width: 800px;
}

.view-btn {
  flex: 1;
  padding: 12px;
  background: #4e5258 ;
  color: #cbd5e1;
  border: 1px solid #383c41;
  border-radius: 8px;
  cursor: pointer;
}

.view-btn.active {
  background: #212122;
  color: white;
}

.close-btn {
  width: 100%;
  padding: 12px;
  background: #2a2a2b;
  color: white;
  border: none;
  border-radius: 8px;
  margin-top: 16px;
  cursor: pointer;
}



@media screen and (max-width: 940px) {
body{
  background-color: rgba(138, 138, 138, 0.9);
}
header{
  justify-content: space-around;
}
  
  .modal{
    width: 70%;
  }
  .modal h2{
    font-size: 20px;
  }
  .modal input{
    font-size: 18px;
  }

#name{
  font-size: 13px;
  letter-spacing: 0px;
}
.tooltip{
  opacity: 0;
  z-index: -100;
}

.prof-photo{
  border: none;
  padding: 0px; padding-left: 6px;
  margin: 0px; margin: 10px;
}


  #prism, #prism2{
    opacity: 0;
  }

  .content {
    width: 95%;
    margin: 5% auto; margin-top: 100px;
    padding-bottom: 50px;
  }

  .content h2 {
    font-size: 17.5px; /* Было 24px */
    margin-bottom: 5%;
    text-align: center;
  }

  #content-box {
    max-width: none;
    padding: 20px;
    border-radius: 20px;
    border: none;
    box-shadow: none;
    margin: 10px auto;
  }
  #history-box{
    max-width: none;
    padding: 20px;
    border-radius: 20px;
    
    border: none;
    box-shadow: none;
    margin: 10px auto;
  }

.switcher button {
  font-size: 13px;
}
.switcher button.active-btn{
  font-size: 15px;
}

.analytics-trigger{
  margin-bottom: 20px; margin-top: 0px;
  font-size: 14px;
}
  

  .txt {
    margin: 0 25px 0px;
    align-items: flex-start; text-align: center;
    font-size: 10px;
    gap: 10px;
  }

  .txt p {
    margin: 0;
  }

  .stroke {
    gap: 2px; 
    padding: 16px;
    padding-right: 32px !important; 
    margin: 9px -9px;
    border-radius: 40px;
    text-align: center;
    height: 25px;
  }

  .stroke img {
    width: 50px; 
    height: auto;
    align-self: center;
    margin: 0px;
  }

  .stroke p {
    margin: -3px 10px !important;
    font-size: 10px;
  }

  .delete-btn {margin-left: -20px !important; font-size: 16px !important; margin-right: 0px !important;}
  .add-usage-btn {font-size: 10px !important; margin-right: -20px;}
  .controls {right: -7px !important;}

  footer a {font-size: 15px;}
  footer p {font-size: 10px;}
}

/* для редакта */
.inline-edit-input {
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    width: 100%;
    font-size: inherit;
    font-family: inherit;
    border-radius: 4px;
}
.delete-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 24px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.controls { display: flex; align-items: center; position: absolute; right: 10px; gap: 1px;}


/* для кликера использований */
.add-usage-btn {
    position: relative;
    overflow: visible;
    cursor: pointer;

    background: none;
    color: rgba(175, 173, 173, 0.92);
    font-size: 15px;
    font-weight: 900;
}

.usage-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: #000;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 1000;
    pointer-events: none;
    animation: floatUp 2s ease-out forwards;
    white-space: nowrap;
}

@keyframes floatUp {
    0% { opacity: 0; transform: translate(-50%, 10px); }
    20% { opacity: 1; transform: translate(-50%, -10px); }
    100% { opacity: 0; transform: translate(-50%, -40px); }
}

/* аналитика (хз не буду в старые теги вникать, если чо поверх тупо наложу)*/
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.stat-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: #f59e0b;
}

.stat-card h3 {
  margin: 0;
  color: #f59e0b; /* Твой акцентный цвет */
  font-size: 24px;
}

.stat-card p {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-card.highlight {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

/* спинер загрузки */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* инструкция для реги */
.instruct {
  color: #ffffffad;
  font-family: "unbounded", Verdana, Geneva, Tahoma, sans-serif;
  font-size: 70%;
  text-align: center;
  margin-top: -3px;
}

.instruct a {text-decoration: none; color: #ffffff;}