/* START рестайлинг - Табы главного экрана */
.c-tab__nav-re {
    color: #fff !important;
    padding: unset !important;
    border-radius: unset !important;
    background: #15141A;
	border-bottom: 1px solid #59585d;
	text-align: center;
}
.c-tab__content-re {
    background: #15141A;
    padding: unset !important;
    border-radius: unset !important;
    font-size: unset !important;
}
.c-tab__link {
	padding: 10px;
}
.c-tab__link--active {
	border-bottom: 4px solid #fff;
}
/* END рестайлинг - Табы главного экрана */

.l-body__static .l-main__right a {
    color: var(--main-color);
}

.l-body .l-header__top .l-header__block .c-button {
    padding: 16px 16px;
}
.c-nav__menu {
	background: #15141A;
}
.c-copyright a {
	padding: 0 10px;
}
.tooltip {
  position: relative;
  display: inline-block;
  cursor: default;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 300px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 10px;
  
  /* Position the tooltip */
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  margin-left: -60px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.lb-header a:hover {
	text-decoration: underline;
}
.feedback-form-wrapper {
    background-color: #15141a;
	color: #fff;
    border: 1px solid;
    border-color: #59585d;
    border-radius: 8px;
}
.l-body .l-header__top .l-header__block .c-button {
    padding-left: 16px;
}
.c-nav__link:hover {
	color: #fff;
}
.l-header__block a:hover {
	color: #fff;
    border-color: #fff;
}
.c-nav__text.c-menu__text {
	color: #fff;
}
.l-header {
    background-color: #15141a;
	color: #fff;
}
.l-header__top {
    background-color: #15141a;
	color: #fff;
}
.l-header__block a {
	padding: 8px 16px;
    border: 1px solid;
    border-color: #59585d;
    border-radius: 8px;
    margin: 8px 5px;
}

.static-page-content {
	color: #fff;
}
.l-body .static-page-content {
    background: unset;
}
.l-body {
    background-color: #15141a;
}
.l-body .login__container {
 color: #fff; 
 background-color: #15141a;
    border: 1px solid;
    border-color: #59585d;
    border-radius: 8px; 
}
.c-button--border {
    background: unset;
}
.l-footer {
    background: none;
}
#login-box-link {
	font-size: 25px;
    padding: 10px;
}
#login-box-link.active, #signup-box-link.active {
	text-decoration: underline;
	color: #e91e63;
}
#signup-box-link {
	font-size: 25px;
    padding: 10px;
}
.l-body .agreement__modal {
    color: #000;
}
.name-date-container {
	text-align: center;
    font-size: 30px;
    border: 1px solid;
    border-radius: 18px;
    padding: 16px;
    border-color: #59585d;
    margin: 8px;
}
.c-tab__nav {
    color: #000;
}

/* PAGE TEMPLATES */
.p-template{
display: flex;
flex-flow: row wrap;
}
.p-template-pb article {
	flex: 700px;
	margin: 8px;
	background: #2a292f;
    color: #fff;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 17px;
}
.p-template-spb article {
margin: 10px;
padding: 5px;
}
.p-template-gb article {
flex: 200px;
margin: 10px;
padding: 5px;
}
.p-template-vb article {
flex: 300px;
margin: 10px;
padding: 5px;
}
.p-template-trig {
width: 100%;
}
.p-template-vb {
margin-top: 30px;
border-top: 1px solid #eee;
padding: 10px;
justify-content: center;
}
.p-template-ab {
margin-top: 30px;
padding: 10px;
justify-content: space-between;
align-items: center;
}
.p-template-pb {
margin-top: 18px;
justify-content: center;
}
.p-template-spb {
margin-top: 30px;
padding: 10px;
justify-content: center;
border-top: 1px solid #eee;
}
.p-template-tb {
margin-top: 30px;
/*padding: 10px;*/
justify-content: center;
/*display: flex;*/
border-top: 1px solid #eee;
}
.p-template-gb {
margin-top: 30px;
padding: 10px;
}
.p-template-bb {
margin-top: 30px;
padding: 10px;
justify-content: center;
}
.p-template-bb2 {
margin-top: 30px;
padding: 10px;
justify-content: center;
}
.p-template-tr {
margin-top: 30px;
padding: 10px;
justify-content: center;
}
.p-template-vb-text {
width: 45%;
padding: 20px 50px 20px 10px;
}
.p-template-ab-text {
width: 50%;
/*padding: 20px 50px;*/
}
.p-template-ab-text-2 {
    width: 35%;
    padding: 20px 20px 20px 50px;
}
.p-template-pb-text {
width: 55%;
padding: 20px 50px 20px 10px;
}
.p-template-ab-links {
width: 15%;
margin: 10px 20px;
display: flex;
align-items: center;
}
.p-template-ab-links a {
display: block;
}
.p-template-ab-links img {
width: 100%;
}
.p-template-ab-links ul {
padding: 0;
margin: 0;
}
.p-template-ab-links ul li {
list-style-type: none;
padding: 25px 5px 25px 5px;
}
.p-template-img {
max-height: 250px;
object-fit: cover;
}
.p-template-bb-img {
width: 40%;
margin: 10px 0;
}
.p-template-ab-img-wrap {
width: 35%;
object-fit: cover;
max-height: 450px;
}
.p-template-pb-img-wrap {
width: 25%;
object-fit: cover;
max-height: 350px;
}
.p-template-ab-img-wrap-2 {
width: 35%;
object-fit: cover;
}
.p-template-ab-img-new-wrap-2 {
width: 45%;
object-fit: cover;
}
.p-template-ab-img img {
max-height: 450px;
width: 100%;
object-fit: cover;
}
.p-template-pb-img img {
max-height: 350px;
object-fit: cover;
}
.p-template-ab-s-img img {
height: 100% !important;
width: 100%;
object-fit: cover;
max-height: 700px;
}
.p-template-img img {
max-height: 250px;
height: 250px;
width: 100%;
object-fit: cover;
}
.p-template-bb-text {
width: 45%;
padding: 20px 50px 20px 10px;
}
.p-template-bb-text2 {
width: 45%;
padding: 25px 50px 20px 20px;
margin: 10px 0;
}
.p-template-vb-video {
width: 45%;
max-height: 400px;
}
.p-template-vb-video video {
width: 100%;
height: auto;
max-height: 100%;
object-fit: cover;
}
.p-template-title {
display: flex;
margin-bottom: 10px;
}
.p-template-g-title {
margin: 10px;
width: 100%;
}
.p-template-header {
display: flex;
}
.p-template-sub {
display: flex;
}
.p-template-p-title {
margin: 10px;
/*width: 35%;*/
}
.p-template-p-description {
margin: 10px;
width: 40%;
}
.p-template-title-text {
min-height: 55px;
margin-bottom: 10px;
}
.p-template-brand-name {
margin-top: 5px;
}
.p-template-price {
margin: 10px 0;
font-weight: 600;
}
.p-template-button {
margin: 20px 0;
}
.p-template-button a {
padding: 10px 15px;
color: #fff;
background: #000;
border-radius: 4px;
}
.p-template-button a:hover {
background: #ef7f19;
}
.p-template-br-btn {
width: 210px;
text-align: center;
}
.mg-trigger-guarantee .mg-trigger {
border: unset;
box-shadow: unset;
}
.content-modal-back-ring ul li {
list-style-type: none !important;
}
.p-template-link {
color: #ef7f19;
}
.p-template-link:hover {
color: #000;
}
.p-template-ul {
margin-bottom: 10px;
}
.p-template-ul li {
padding: 10px;
}
@media (max-width: 1024px) {
.p-template-button a {
    font-size: 14px;
}
}
@media (max-width: 768px) {
.p-template-p-title {
width: 100%;
}
.p-template-p-description {
width: 100%;
}
.p-template-ab {
margin-top: 10px;
justify-content: space-between;
}
.p-template-pb {
margin-top: 10px;
}
.p-template-ab-text {
width: 100%;
}
.p-template-ab-text-2 {
width: 100%;
}
.p-template-pb-text {
width: 100%;
}
.p-template-ab-img-wrap {
width: 100%;
}
.p-template-pb-img-wrap {
width: 100%;
}
.p-template-ab-img-wrap-2 {
width: 100%;
}
.p-template-ab-img-new-wrap-2 {
width: 100%;
}
.p-template-ab-links {
width: 80%;
justify-content: center;
}
}
@media (max-width: 430px) {
.p-template-bb-img {
width: 100%;
}
.p-template-bb-text2 {
width: 100%;
}
.p-template-img {
    height: 220px;
    text-align: center;
}
}

.carousel__slide img {
height: 100% !important;
width: 100%;
object-fit: cover;
}
.p-template-title h2 {
	text-align: center;
}

/* START ACCORDION */
.p-template-pb article:hover {
-webkit-box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2);
-moz-box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2);
box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2);
}
.accordion dl,
.accordion-list {
  border: 1px solid #ddd;
}
.accordion dl:after,
.accordion-list:after {
  content: "";
  display: block;
  height: 1em;
  width: 100%;
  background-color: #2ba659;
}

.accordion {
  position: relative;
}

.accordionTitle,
.accordion__Heading {
  font-size: 1.5em;
  padding: 0.5em 0;
  display: block;
  text-decoration: none !important;
  color: #fff !important;
  transition: background-color 0.5s ease-in-out;
}
.accordionTitle:before,
.accordion__Heading:before {
  content: "+";
  font-size: 1.5em;
  line-height: 1em;
  float: right;
  transition: transform 0.3s ease-in-out;
}
.accordionTitleActive:before,
.accordionTitle.is-expanded:before {
  transform: rotate(-225deg);
}

.accordionItem {
  height: auto;
  overflow: hidden;
  transition: max-height 1s;
}
@media screen and (min-width: 48em) {
  .accordionItem {
    transition: max-height 0.5s;
  }
}

.accordionItem.is-collapsed {
  max-height: 0;
}

.no-js .accordionItem.is-collapsed {
  max-height: auto;
}

.animateIn {
  animation: accordionIn 0.45s normal ease-in-out both 1;
}

.animateOut {
  animation: accordionOut 0.45s alternate ease-in-out both 1;
}

@keyframes accordionIn {
  0% {
    opacity: 0;
    transform: scale(0.9) rotateX(-60deg);
    transform-origin: 50% 0;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes accordionOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.9) rotateX(-60deg);
  }
}
/* END ACCORDION */

c-sub-title {
        font-size: 18px;
        font-weight: 500;
}

/* CART */
.product-cart {
	background: #2a292f;
}
.total-price-block, .order-podlojka {
	background: #2a292f;
}
.c-order__title {
    background: #000000;
}
.c-order__title:before {
    border-left: 20px solid #000000;
}
.c-table td.c-table__img {
	display: none;
}
.c-table td.c-table__count {
	display: none;
}
li.c-order__list--item:nth-child(3) {
width: 100%;
}
/* CART END */

/* PERSONAL */
.p-basic-info {
	max-width: 400px;
    margin-bottom: 15px;
}
.p-subscription-info {
	margin: 15px 0;
}
.order-number .c-history__header--left {
	color: #000;
}
.c-history__table .status-table {
	color: #000;
}
.c-history__table--code, .c-history__table--price {
	display: none;
}
.total-list li.c-history__list--item:nth-child(1) {
	display: none;
}
/* PERSONAL END */
/* PRODUCT PAGE */
.c-images__big {
    background: #2a292f;
}
.c-main-img {
    background: #2a292f;
}
.l-body .c-product__content {
    background: #2a292f;
}
.js-amount-wrap {
	display: none;
}
.p-description > .c-tab > .c-tab__nav, .p-description > .c-tab > .c-tab__content {
    background: #2a292f;
    color: #fff;
}
.prop-name__inner, .prop-spec__inner {
    background: unset;
}
.prop-string .prop-spec {
    color: #fff;
}
.c-images__big {
    height: 200px;
}
@media (min-width: 768px) {
    .p-min-768--1 {
        display: block;
        max-width: 30%;
        -webkit-box-flex: 0;
        -ms-flex: 0 0 30%;
        flex: 0 0 30%;
    }
    .p-min-768--2 {
        display: block;
        max-width: 70%;
        -webkit-box-flex: 0;
        -ms-flex: 0 0 70%;
        flex: 0 0 70%;
    }
}
.small-cart-list a, .small-cart-remove a {
	padding: unset;
    border: unset;
    border-color: unset;
    border-radius: unset;
    margin: unset;
}
.l-body .product-bar a.mg-buy-click-button.mg-plugin-btn {
background: linear-gradient(135deg, var(--main-color), var(--secondary-color));
}
.l-body .product-bar a.mg-buy-click-button.mg-plugin-btn:hover {
background: linear-gradient(135deg, var(--main-color), var(--secondary-color));
opacity: 0.8;
}
/* PRODUCT PAGE END */
/* INDEX PAGE */
.c-copyright a {
	width: 100%;
	text-align: center;
}
.c-copyright__moguta a {
	width: unset;
}
.agreement__btn_open {
	display: contents;
    color: #e91e63;
}
.c-form label:before {
	margin-left: 15px;
}
.agreement {
    text-align: center;
}
.mg-notice {
    color: #000;
  padding: 10px;
}
.mg-namebanner {
    font-size: 18px;
}
@media (max-width: 430px) {
.c-copyright {
flex-wrap: wrap;
}
}

/* NOTICE */
@media (max-width: 430px) {
.mg-notice {
width: 300px!important;
}
}
.mg-namebanner {
text-align: center;
}
.mg-notice .mg-content {
	padding: 10px
}

/* NEON */
.neon-green {
box-shadow: 0px 5px 10px 2px rgb(35 80 34 / 40%);
}
.neon-purple {
box-shadow: 0px 5px 10px 2px rgb(75 34 80 / 40%);
}

/* BLOG */
.mg-news-details {
background: #2a292f;
color: #fff;
}
.mg-news-info {
background-color: hsla(0, 0%, 100%, .08);
border-radius: 8px;
}
.mg-news-full-desc {
padding: 10px 0;
background: unset!important;
color: #fff!important;
}
.mg-main-news-item {
background: #2a292f;
color: #fff!important;
}
.mg-news-main-desc {
color: #fff!important;
}
.mg-news-title a {
    color: var(--main-color);
}
.mg-main-news-block .mg-news-title {
    margin: 10px 0 15px 0;
}
.mg-back {
    color: #1391c7;
}

/* REIGNOLOGY */
/* MY INFO */
.info-blocks-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    padding: 0 10px;
}

.info-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.info-row-top {
    margin-bottom: 20px; /* Отступ между рядами */
}

.info-cell {
    background-color: #040e16;
    padding: 10px;
    flex: 1;
    min-width: 120px;
    max-width: 300px;
    min-height: 250px;
    border-radius: 8px;
    transition: all 0.3s;
    color: #fff;
    cursor: pointer;
}

/* Стили для 4-й ячейки (можно сделать шире) */
.info-row-bottom .info-cell {
    max-width: 1600px; /* Шире, чем остальные */
    width: 100%;
}

.info-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
    min-height: 40px;
}

.info-content {
    padding-top: 10px;
    font-size: 14px;
    text-align: center;
    word-break: break-word;
}

.info-medio {
    width: 80%;
    height: 3px;
    background-color: white;
    margin: 0 auto;
    transition: all 0.3s;
}

/* Стили модального окна */
.info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
	color: #000;
}

.info-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.info-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.info-form-group {
    margin-bottom: 15px;
}

.info-form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
	overflow-y: scroll;
}

.info-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.info-btn {
    border: none;
    cursor: pointer;
}

.info-btn-cancel {
    background-color: #f5f5f5;
}

/* Курсор при наведении на колонку */
.info-cell {
    cursor: pointer;
    transition: all 0.3s;
}

.info-cell:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.form-group { margin-bottom: 15px; }
.form-control, .subheader-title, .subheader-content { width: 100%; padding: 8px 16px; background-color: hsla(0, 0%, 100%, .08); box-sizing: border-box; }
.subheader-title { border-top-left-radius: 8px; border-top-right-radius: 8px; }
.subheader-content { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
.subheader-content { min-height: 80px; }
.btn { padding: 8px 16px; border: none; cursor: pointer; }
.goal-block:hover { box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2); }
.subheader-content-1 { color: red; }
.subheader-content-2 { color: orange; }
.subheader-content-3 { color: green; }
.progress-btn { border: none; border-radius: 50%; cursor: pointer; font-weight: bold; transition: background 0.2s; }
.progress-btn.active { color: #fff; }
.progress-scale, .progress-scale-view, .progress-scale-modal { margin-bottom: 8px; }
.progress-btn-view { pointer-events: none; }
.progress-btn-modal { border: none; }
.modal { color: #000; display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; justify-content: center; align-items: center; }
.modal[style*="display: flex"] { display: flex !important; }
.modal-content { background: white; padding: 20px; border-radius: 8px; width: 90%; max-width: 700px; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    z-index: 2;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close:hover { color: #d33; }
.modal-footer { display: flex; justify-content: flex-end; margin-top: 20px; gap: 10px;}
.modal-subheaders-scroll {
    max-height: 40vh;
    overflow-y: auto;
    margin-bottom: 12px;
}
.modal-subheaders-scroll .form-group { margin-bottom: 10px; }
.modal-subheader-title {
    resize: none !important;
}
.modal-subheader-content {
    resize: vertical !important;
    min-height: 60px;
    max-height: 250px;
}
#modal-column-title { resize: none !important; }
.modal-progress-title { color: #000; }
.modal-title { color: #000; }
.focus-title { margin-top:0!important; }
.form-control { border: 1px solid; border-radius: 8px; }
.hyphenate {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
}
/* MYINFO */
[contenteditable="true"]:focus {
    background-color: #f0f8ff;
    outline: 2px solid #4682b4;
}
.info-blocks-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 0 10px;
width: 100%;
}

.info-block {
  border-radius: 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.info-cell {
  background-color: hsla(0, 0%, 100%, .08);
  padding: 12px 15px;
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px;
  max-width: 300px;
  min-height: 250px;
  border-radius: 8px;
  transition: all 1s;
  color: #fff;
}
.medio {
  width: 110px;
  height: 3px;
  background-color: white;
  transition: all 1s;
}

.info-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  text-align: center;
}

.info-title-1 {
 color: green;   
}

.info-title-2 {
 color: red;   
}

.info-title-3 {
 color: orange;   
}

.info-content {
  padding-top:10px;
  font-size: 15px;
  text-align: center;
  word-break: normal;
  height: 100%;
}

.info-title[contenteditable="true"],
.info-content[contenteditable="true"] {
    padding: 5px 10px;
    border-radius: 4px;
    outline: none;
}

.info-title[contenteditable="true"]:focus,
.info-content[contenteditable="true"]:focus {
    background-color: #f0f0f0;
    box-shadow: 0 0 0 2px #ddd;
}
.info-cell-1, .info-cell-2, .info-cell-3 {
max-height: 1000px;
overflow: hidden;
}
.info-cell-4 {
max-height: 500px;
overflow: hidden;
}

/* GOALS */
.t-goal-blocks-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 15px 0;
  width: 100%;
}
.goal-block {
  background: #2a292f;
  border-radius: 8px;
  padding: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
	word-wrap: break-word;
}
.t-goal-block {
background-color: hsla(0, 0%, 100%, .08);
  border-radius: 8px;
  padding: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
	word-wrap: break-word;
}

.block-title {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  outline: none;
}

.block-title[contenteditable="true"]:focus {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.goals-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.goal-cell {
    background-color: hsla(0, 0%, 100%, .08);
    padding: 12px 15px;
    flex: 1 1 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    max-width: 300px;
    min-height: 170px;
    border-radius: 8px;
    transition: all 1s;
    color: #fff;
}
.goal-section-pb {
    flex: auto;
}
.goal-container-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 30px;
}
.period-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  text-align: center;
}

.goal-text {
  padding-top:10px;
  font-size: 16px;
  text-align: center;
  word-break: normal;
  height: 100%;
}


.index-focus-title {
  font-size: 20px;
  font-weight: 600;
}

/* TOOLTIP */
.p-template-title {
    flex-wrap: wrap;
    position: relative;
    overflow: hidden; /* Предотвращаем появление скролла */
}

.tooltip-container {
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

.tooltip-trigger {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #555;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 14px;
    line-height: 1;
}

.tooltip-content {
    visibility: hidden;
    opacity: 0;
    width: min(280px, calc(100vw - 32px)); /* Адаптивная ширина */
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 100;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    box-sizing: border-box;
    word-wrap: break-word;
}

.tooltip-content:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Мобильная версия */
@media (max-width: 430px) {
    .tooltip-container {
        display: none;
    }
}
@media (max-width: 768px) {
    .tooltip-content {
        width: min(280px, calc(100vw - 32px)); /* Фиксируем максимальную ширину */
        left: 50%;
        transform: translateX(calc(-50% + 12px)); /* Корректировка позиции */
        bottom: auto;
        top: calc(100% + 10px);
    }
    
    .tooltip-content:after {
        top: -10px;
        left: 20px;
        border-color: transparent transparent #333 transparent;
    }
    
    .tooltip-container {
        margin-left: 0;
    }
}

.tooltip-trigger:hover + .tooltip-content,
.tooltip-trigger:focus + .tooltip-content,
.tooltip-container:focus-within .tooltip-content,
.tooltip-trigger.active + .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* INDEX BOOK */
.book-cover {
border: unset !important;
min-width: 400px;
min-height: 805px;
background: radial-gradient(circle at center, #1a1a2a, #0a0a10) !important;
border: 2px solid #2a2a3a !important;
border-left: 10px solid #E91E63 !important;
border-radius: 5px 15px 15px 5px !important;
box-shadow: 0 0 20px rgba(233, 30, 99, 0.3), 10px 0 30px rgba(0, 0, 0, 0.5);
padding: 40px;
position: relative;
transition: all 0.3s;
}
@media (max-width: 430px) {
.book-cover {
min-width: 395px;
}
}
@media (max-width: 375px) {
.book-cover {
min-width: 340px;
}
}
@media (max-width: 320px) {
.book-cover {
min-width: 285px;
}
}
.book-cover:hover {
box-shadow: 0 0 30px rgba(233, 30, 99, 0.5), 15px 0 40px rgba(0, 0, 0, 0.6);
}
.page-edge {
position: absolute;
right: -3px;
top: 10px;
bottom: 10px;
width: 3px;
background: repeating-linear-gradient(
to bottom,
#1a1a2a,
#1a1a2a 2px,
#2a2a3a 2px,
#2a2a3a 4px
);
border-radius: 0 3px 3px 0;
}
.c-ps-sub-title {
font-size:10px;
}

/* SPHERE INDEX PAGE */
.l-body .login__container {
    max-width: unset;
	justify-content: center;
}
.l-body .login__container {
    border: unset;
}
/* Заголовок */
.c-title {
    font-size: 50px!important;
    color: #E91E63;
    text-align: center;
    margin-bottom: 5px;
}

.c-sub-title {
    font-size: 25px;
    color: #fff;
    text-align: center;
    margin-bottom: 15px;
}

.index-want-txt {
	font-size: 50px;
}

.l-row.login__container {
	margin-top: 5%;
}

/* Ссылки вход / регистрация */
.auth-links {
    text-align: center;
    margin-bottom: 10px;
}

.auth-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: #E91E63;
}

.c-button.register-btn,.c-button.enter-btn {
    background: #E91E63;
    color: #fff;
    border: none;
    padding: 10px 25px;
    margin: 0 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
	opacity: 0.9;
}
.c-button.register-btn:hover,.c-button.enter-btn:hover {
    opacity: 1;
}
.c-button.forgot-btn {
	background: unset;
	color: #fff;
	text-decoration: none;
	height: 15px!important;
	font-size: 16px;
    font-weight: 500;
}

/* Аккордеон формы без JS */
.auth-form-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-bottom: 30px;
}

.auth-form-container:target {
    max-height: 500px; /* Подстроить под высоту формы */
}

/* Блок "Я хочу" / карточки */
.sphere-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
	margin-top: 20px;
	min-height: 180px;
}

.card {
    display: block;
    background: #1a1a2a;
    border: 2px solid #2a2a3a;
    border-radius: 10px;
    padding: 20px;
    flex: 1 1 200px;
    max-width: 250px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(233,30,99,0.5);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 25px;
}

.card ul {
    list-style-type: disc;
    margin-left: 0;
    font-size: 14px;
	padding-left: 30px;
}

/* Адаптив */
@media (max-width: 768px) {
    .sphere-cards {
        flex-direction: column;
        align-items: center;
    }
}
.auth-form-container.open {
    max-height: 500px;
}
/* Карточки сфер: по умолчанию видно только заголовок */
.sphere-cards .card h3 {
    margin-bottom: 0;
}

.sphere-cards .card ul {
    display: none;
}

/* При наведении: заголовок прячется, текст показывается */
.sphere-cards .card:hover h3 {
    display: none;
}

.sphere-cards .card:hover ul {
    display: block;
}
/* Центрируем заголовок внутри карточки */
.sphere-cards .card {
    display: flex;
    flex-direction: column;
    justify-content: center; /* вертикальное центрирование */
    align-items: center;     /* горизонтальное центрирование */
    min-height: 200px;       /* твоя высота */
    position: relative;
}

/* Список скрыт по умолчанию */
.sphere-cards .card ul {
    display: none;
}

/* При наведении: показываем список */
.sphere-cards .card:hover ul {
    display: block;
}

/* При наведении: скрываем заголовок */
.sphere-cards .card:hover h3 {
    display: none;
}

/* TOOLS PAGE */
.tools-link-wrap a {
	color: #E91E63;
}
.tools-link-wrap a:hover {
	text-decoration: underline;
}

/* NAVIGATOR */
.nav-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
	margin-top: 10px;
}
.nav-cell {
    background-color: hsla(0, 0%, 100%, .08);
    padding: 12px 15px;
	flex: 1 1 120px;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    max-width: 300px;
    border-radius: 8px;
    transition: all 1s;
    color: #fff;
}

.c-button--link {
    height: 43px!important;
}
@media (max-width: 1024px) {
.c-button--link {
    height: 40px!important;
}
.c-button {
        height: 40px!important;
        font-size: 16px!important;
        width: fit-content;
    }
}


.checkmark-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid gray;
    border-radius: 4px;
    cursor: pointer;
    background-color: transparent;
	margin-top: 6px;
}

.checkmark-toggle.checked {
    background-color: green;
    border-color: green;
}

.checkmark-toggle.checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 3px;
    color: white;
    font-size: 16px;
    font-weight: bold;
}
#edit-goal-text {
	overflow-y: scroll;
}