﻿:root {
    --main-color: #ffffff;
    --button-color: #32a852;
    --message-ok: #c2c2c2;
    --message-err: red;
    --top-menu-height: 53px;
    --main-hover-color: #f6f5f8;
    --button-hover: #6fc285;
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1 {
    font-weight: 400;
    padding-bottom: 0px;
    margin-bottom: 0px;
    letter-spacing: -0.03em;
}

h2 {
    font-weight: 300;
}

h2, h3, h4 {
    margin-bottom: 8px;
}

.img-logo {
    width: 30px !important;
    margin-top: 0 !important;
    position: relative;
    top: 10px;
}

.a-logo {
    height: var(--top-menu-height);
}

.a-logo:hover {
    background-color: var(--main-color) !important;
}

.menuDelimeter {
    height: 1px;
    background-color: var(--main-color);
}

.menuDiv {
    list-style: none;
    background-color: var(--main-color);
    z-index:100;
    padding: 0;
    margin: 0;
    height: var(--top-menu-height);
    border-bottom: 1px var(--main-hover-color) solid;
    position: fixed;
    top: 0;
    width: 100%;
}

.menuDiv li {
    line-height: var(--top-menu-height);
    float: right;
}

.menuDiv li:first-child {
    float: left;
}

.menuDiv a {
    padding: 0px 6px;
    height: var(--top-menu-height)
}

.menuDiv img {
    width: 46px;
    margin-top: 4px;
}

.vert {
    top: var(--top-menu-height);
    list-style: none;
    background-color: var(--main-color);
    padding: 0px;
    margin: 0px;
    text-align: center;
    display: block;
    position: fixed;
    z-index: 1000;
    right: 0px;
    width: 100%;
    max-height: 0em;
    overflow: hidden;
}

.menu_expand {
    max-height: 15em !important;
    transition: 0.5s linear;
}

.blur {
    filter: blur(2px);
}

.vert li {
    line-height: 40px;
}

.vert a {
    margin-bottom: 1px;
}

.menuDiv a, .vert a {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    display: block;
}

.menuDiv a:hover, .activeMenu, .vert a:hover {
    background-color: var(--main-hover-color);
}

.validation {
    color: var(--message-err);
}

.validation ul {
    padding-left: 0 !important;
}

.validation li {
    border: 1px solid red;
    list-style: none;
    border-radius: 5px;
    padding: 5px;
    margin: 5px;
    font-size: medium;
}

.message {
    border: 1px solid var(--message-ok);
    border-radius: 5px;
    -webkit-border-radius: 5px;
    margin: 5px;
    padding: 10px;
    font-size: 16px;
    line-height: 1.2;
}

.success_msg {
    margin: -6px 5px -10px 0;
    float: left;
    width: 30px;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* страница всегда минимум на высоту окна */
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 18px;
    color: #374151;
    letter-spacing: -0.015em;
}

.allContent {
    flex: 1 0; /* занимает всё свободное место между хедером и футером */
    box-sizing: border-box;
    overflow-y: auto;
    margin: 8px;
    top: 37px;
    position: relative;
}

.bottom_div {
    padding-top: 30px;
    bottom: 0;
    width: 100%;
    margin: 8px;
}

.ya-loader {
    width: 24px;
    height: 24px;
    border: 2px solid #e5e7eb;
    border-top-color: #374151;
    border-radius: 50%;
    animation: ya-spin 0.7s linear infinite;
    margin: 10px auto;
}

@keyframes ya-spin {
    to { transform: rotate(360deg); }
}

.bottom p {
    font-size: 12px;
    font-weight: 300;
    color: #9ca3af;
    letter-spacing: 0.04em;
}

.bottom a {
    text-align: left;
    display: block;
    border-bottom: none !important;
}

.allContent a, .bottom a, .back a{
    font-size: 16px;
    text-decoration: none;
    border-bottom: 1px dashed var(--button-color);
    padding-bottom: 1px;
    color: var(--button-color);
}

.allContent a:hover, .bottom a:hover{
    border-bottom: 1px solid var(--main-hover-color);
}

.message > a {
    color: var(--button-color) !important;
    border-bottom: 1px dashed white !important;
}

.message > a:hover, .message > a:active {
    color: black !important;
}

.button {
    color: #ffffff !important;
}

input, select, .button {
    padding: 15px !important;
    font-size: 18px !important;
    width: 100%;
    margin-bottom: 5px;
    display: inline-block;
    box-sizing: border-box;
}

.small_button {
    padding: 5px !important;
    font-size: 14px !important;
}

input[type=checkbox] {
    width: 20px !important;
    margin: 14px 0px 0px 0px !important;
    padding: 5px !important;
}

input[type=submit] {
    -webkit-appearance: none;
    -moz-appearance: none;
}

input {
    font-family: var(--font-family);
    font-weight: normal;
}

input[type=submit], .button {
    background-color: var(--button-color);
    color: white;
    border: 0 none;
    cursor: pointer;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    margin-bottom: 10px;
    margin-top: 10px;
    width: auto;
    display: inline-block;
    border-bottom: none !important;
}

input[type=submit]:hover, .button:hover {
    background-color: var(--button-hover);
}

.input-hint {
    margin-top: 2px;
    color: #888;
    font-size: 14px;
    display: block;
}

form {
    margin: 0px;
    padding: 10px 10px 0px 10px;
    border-radius: 5px;
    border: 1px dashed var(--main-hover-color);
    box-sizing: border-box;
    width: 100%;
}

.g-recaptcha {
    margin-top: 10px;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 15px;
    text-align: right;
    word-break: break-all;
}

table tr th {
    text-align: center;
}

table td, table th {
    border: 1px solid #ddd;
    padding: 4px;
}

.wrap {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 110px;
    text-align: left;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table tr:hover {
    background-color: #ddd;
}

table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: var(--main-color);
    font-weight: normal;
}

.td-icon {
    width: 20px !important;
}

.td-nowrap {
    white-space: nowrap
}

.bottomDiv {
    border-top: 1px dashed var(--main-hover-color);
    position: static;
    bottom: 0;
    width: 100%;
    min-height: 40px;
    padding: 10px 0px;
    margin-top: 30px;
}

.bottomDiv a, .bottomDiv span {
    display: table;
}

.plain-text {
    font-size: 16px;
    padding-left: 2px;
}

.bottom-logo {
    width: 30px;
    height: 30px;
    border: 1px solid black;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    padding: 4px;
    margin: 5px 5px 5px 0px;
}

.bottom-div-logo > a {
    border-bottom: none !important;
}

.bottom-text {
    margin-top: 18px;
}

.bottom-div-logo {
    display: flex;
}

.ui-autocomplete-category {
    line-height: normal !important;
    margin: unset !important;
    font-family: var(--font-family) !important;
    font-size: 18px !important;
}

.dv_support {
    font-size: 16px;
}

.dv_support a, .dv_support span {
    display: inline;
}

.faq p {
    margin-top: 0px;
}

.faq div {
    background-color: var(--main-hover-color);
    border-radius: 10px;
    border: 1px solid var(--main-hover-color);
    margin: 10px 0;
    padding: 0 5px;
}

hr {
    opacity: 0.3;
}

.back {
    text-align: right;
    position: relative;
    top: 10px;
}

/* ===================================================
   Landing page
   =================================================== */

.lp-hero {
    text-align: center;
    padding: 40px 20px 36px;
    max-width: 680px;
    margin: 0 auto;
}

/* ===================================================
   Hero chart visualization
   =================================================== */

.chart-wrap {
    max-width: 380px;
    margin: 28px auto 0;
    border: 1px solid #ebebeb;
    border-radius: 14px;
    padding: 14px 16px 6px;
    background: #fff;
}

.chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.chart-caption {
    font-size: 12px;
    color: #aaa;
    margin: 6px 0 0;
    text-align: center;
}

/* Price line draws in, then alerts appear sequentially */
.cprice {
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: cprice-draw 8s ease-in-out infinite;
}

@keyframes cprice-draw {
    0%, 8%  { stroke-dashoffset: 420; }
    55%     { stroke-dashoffset: 0; }
    100%    { stroke-dashoffset: 0; }
}

/* crossing 1 (x=110) ≈ 24% of arc → appears at ~20% of cycle
   crossing 2 (x=200) ≈ 50% of arc → fires at ~32% of cycle
   crossing 3 (x=290) ≈ 76% of arc → fires at ~44% of cycle  */

.calert1 {
    opacity: 0;
    animation: calert1-show 8s ease-out infinite;
}

@keyframes calert1-show {
    0%, 24% { opacity: 0; }
    30%     { opacity: 1; }
    92%     { opacity: 1; }
    100%    { opacity: 0; }
}

.calert2 {
    opacity: 0;
    animation: calert2-show 8s ease-out infinite;
}

@keyframes calert2-show {
    0%, 31% { opacity: 0; }
    37%     { opacity: 1; }
    92%     { opacity: 1; }
    100%    { opacity: 0; }
}

.calert3 {
    opacity: 0;
    animation: calert3-show 8s ease-out infinite;
}

@keyframes calert3-show {
    0%, 36% { opacity: 0; }
    40%     { opacity: 1; }
    92%     { opacity: 1; }
    100%    { opacity: 0; }
}

.lp-badge {
    display: inline-block;
    background: #f0faf4;
    color: var(--button-color);
    border: 1px solid #c3e6cc;
    border-radius: 100px;
    padding: 4px 14px;
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 0;
}

.lp-title {
    font-size: clamp(26px, 5vw, 44px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin: 0 0 16px;
    color: #111;
}

.lp-sub {
    font-size: 17px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 28px;
}

.lp-btn {
    padding: 14px 32px !important;
    border-radius: 8px !important;
    font-size: 17px !important;
}

.lp-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 36px 20px;
    border-top: 1px solid #ebebeb;
}

.lp-section-h {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
    color: #111;
}

.lp-center {
    text-align: center;
}

.lp-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .lp-two-col {
        grid-template-columns: 1fr;
    }
}

.lp-card {
    background: var(--main-hover-color);
    border-radius: 16px;
    padding: 24px;
}

.lp-card-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    color: #111;
}

.lp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lp-list li {
    padding: 5px 0 5px 22px;
    position: relative;
    font-size: 16px;
    line-height: 1.5;
    color: #374151;
}

.lp-list-neg li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: #d94f4f;
    font-size: 13px;
    top: 7px;
}

.lp-list-pos li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--button-color);
    font-size: 13px;
    top: 7px;
}

.lp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 600px) {
    .lp-grid {
        grid-template-columns: 1fr;
    }
}

.lp-feature {
    background: var(--main-hover-color);
    border-radius: 14px;
    padding: 20px;
}

.lp-icon {
    font-size: 26px;
    margin-bottom: 10px;
}

.lp-feature strong {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #111;
}

.lp-feature p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.lp-markets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.lp-markets span {
    background: #f0faf4;
    color: var(--button-color);
    border: 1px solid #c3e6cc;
    border-radius: 100px;
    padding: 4px 14px;
    font-size: 14px;
}

.lp-pricing {
    display: flex;
    justify-content: center;
}

.lp-price-card {
    background: var(--main-hover-color);
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.lp-price-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.lp-price-name {
    font-size: 18px;
    font-weight: 500;
    color: #111;
    letter-spacing: -0.02em;
}

.lp-price-amount {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: #111;
    margin: 8px 0 20px;
}

.lp-price-period {
    font-size: 16px;
    font-weight: 300;
    color: #888;
}

.lp-price-card .lp-list {
    display: inline-block;
    text-align: left;
    margin-bottom: 24px;
}

.lp-price-btn {
    width: 100%;
    box-sizing: border-box;
    display: block !important;
    text-align: center;
}

.lp-faq-item {
    background: var(--main-hover-color);
    border-radius: 10px;
    margin: 8px 0;
    overflow: hidden;
}

.lp-faq-item summary {
    padding: 16px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #111;
    user-select: none;
}

.lp-faq-item summary::-webkit-details-marker {
    display: none;
}

.lp-faq-item summary::after {
    content: '+';
    font-size: 22px;
    color: #aaa;
    flex-shrink: 0;
    margin-left: 12px;
    font-weight: 300;
}

.lp-faq-item[open] summary::after {
    content: '−';
}

.lp-faq-body {
    padding: 0 20px 16px;
}

.lp-faq-body p {
    margin: 0 0 12px;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.lp-faq-img {
    width: 90%;
    display: block;
}

@media (min-width: 768px) {
    .lp-faq-img {
        width: 60%;
    }
}

/* ===================================================
   Telegram popup
   =================================================== */

.tg-popup {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 300px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    z-index: 9999;
    padding: 20px;
}

.tg-popup-content {
    position: relative;
}

.tg-popup-content p {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 14px;
    padding-right: 20px;
}

.tg-close-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    cursor: pointer;
    font-size: 20px;
    color: #aaa;
    line-height: 1;
}

.tg-close-btn:hover {
    color: #555;
}

/* ===================================================
   Common utilities
   =================================================== */

.word-nobreak {
    word-break: keep-all;
}

.user-row {
    cursor: pointer;
}

/* Submit buttons full-width inside forms */
input[type=submit],
button[type=submit] {
    width: 100%;
}

/* ===================================================
   Auth pages (login, register)
   =================================================== */

.divider {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #999;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

.divider span {
    white-space: nowrap;
}

#agreements ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: -10px;
}

#agreements li {
    margin: 0;
}

/* ===================================================
   Order pages
   =================================================== */

.spinner {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-top: -10px;
    transition: transform 0.01s linear;
    display: inline-block;
}

.pricing-container {
    width: 100%;
}

.price-tag {
    border: 2px solid #6DA77B;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
}

.price-tag .col-left {
    flex: none;
    width: 38%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    height: 50px;
}

.price-tag .col-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 50px;
}

.price-tag .col-last {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.price-tag .discount {
    background: var(--button-color);
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 18px;
    display: inline-block;
    margin-bottom: 3px;
}

.price-tag .economy {
    font-size: 14px;
}

.price-tag .economy b {
    font-size: 16px;
}

.price-tag .price {
    font-size: 24px;
    font-weight: bold;
}

.price-tag .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-left: 8px;
}

.price-tag .description {
    font-size: 14px;
    margin: 4px 0;
}

.price-tag.active {
    border-color: #4C9A2A;
    background: #E6F3E6;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #6EB77B;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark.active::after {
    content: "\2713";
    font-size: 24px;
    color: #6EB77B;
}

/* ===================================================
   Notification edit page
   =================================================== */

.padSettings {
    padding-left: 20px !important;
    margin-top: -10px;
}

.fields div {
    padding: 2px 0 10px 0;
}

.input-margin-top {
    margin-top: 10px;
}

#dv_settings.locked > * {
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
}

.fancyInput {
    margin: 0 !important;
}

.ticker-panel {
    max-width: 720px;
}

.ticker-panel details {
    border-top: 1px solid #eee;
    margin-top: 12px;
    padding-top: 8px;
    margin-bottom: 16px;
}

.ticker-panel summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--button-color);
    list-style: none;
}

.ticker-panel summary::marker {
    content: "";
}

.ticker-panel summary::before {
    content: "▸";
    margin-right: 6px;
    font-size: 20px;
}

.ticker-panel details[open] summary::before {
    content: "▾";
}

.ticker-panel ul,
.ticker-panel li {
    list-style: none;
    margin: 0;
    padding: 0 0 0 8px;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 10px;
}

.category-item {
    margin-bottom: 12px;
}

.category-name {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.ticker-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ticker-list li {
    margin: 0 8px 8px 0;
}

.ticker-list a {
    background: #eef3ff;
    color: #1a3d8a;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
    display: inline-block;
    border-bottom: none !important;
}

.ticker-list a:hover {
    background: #dce7ff;
}

.tag-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 0 !important;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background: #e2e8f0;
    border-radius: 8px;
    color: #334155;
    margin: 12px 0 12px 12px;
}

.tag button {
    border: none;
    background: transparent;
    font-weight: bold;
    font-size: 16px;
    margin-left: 6px;
    cursor: pointer;
    color: #475569;
}

.tag button:hover {
    color: #dc2626;
}

/* ===================================================
   Roadmap page
   =================================================== */

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

.roadmap-done-group {
    grid-column: 1 / -1;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
}

.roadmap-done-group > summary {
    padding: 14px 20px;
    font-weight: 500;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.roadmap-done-group > summary::before {
    content: '▸ ';
    font-size: 11px;
}

.roadmap-done-group[open] > summary::before {
    content: '▾ ';
}

.roadmap-done-group > summary:hover {
    background: var(--main-hover-color);
}

.roadmap-done-cards {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 0 16px 16px;
    margin-top: 8px;
}

.roadmap-card {
    background: var(--main-hover-color);
    border-radius: 16px;
    padding: 18px 18px 14px;
}

.roadmap-month {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.roadmap-title {
    font-weight: 600;
    letter-spacing: 0.2px;
}

.roadmap-pill {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--button-color);
    color: #fff;
}

.roadmap-pill.waiting {
    background: #f6ad55;
    animation: pill-pulse 2s ease-in-out infinite;
}

@keyframes pill-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(246, 173, 85, 0.5); }
    50%       { box-shadow: 0 0 0 5px rgba(246, 173, 85, 0); }
}

.roadmap-pill.plan {
    background: #1e3a8a;
}

.roadmap-card ul {
    margin: 10px 0 0 18px;
    padding: 0;
}

.roadmap-card li {
    margin: 8px 0;
    line-height: 1.45;
}