/* Base layout */
* {
    font-family: Inter, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    margin: 0;
    padding: 5rem;
    height: 100%;
    background: linear-gradient(135deg, #aed8f5 0%, #ffffff 100%);
}

h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 38px;
}

h3 {
    color: #000;
    font-size: 24px;
    font-weight: 500;
    line-height: 20px;
}

.description {
    border-bottom: 1px solid #0000;
    color: #838383;
    display: block;
    font-size: 16px;
    line-height: 20px;
    padding-bottom: 26px;
}

/* Alternative backgrounds */
body.gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.price-compare-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 64px;
    margin-top: 32px;
}

/* Cards and buttons */

.price-compare-entry__search {
    border-radius: 12px;
    padding: 16px; /* важно: без padding border не будет виден */
    background: /* внутренний слой (стекло) */ linear-gradient(
            to top right,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 1)
    ) padding-box,
        /* градиентная рамка */ linear-gradient(
            45deg,
            #ffffff,
            rgba(121, 69, 227, 0.2)
    ) border-box;
    border: 3px solid transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.15);
}


.price-compare-entry__upload {
    background: linear-gradient(
            to bottom left,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 1)
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 12px;
    border: 3px solid rgb(255, 255, 255);

    box-shadow: inset 0 0 20px rgb(255, 255, 255),
    0 8px 24px rgb(255, 255, 255);
}

.card {
    height: 500px;
    border-radius: 32px;
    padding: 32px;
    margin-bottom: 16px;
}

.btn__search {
    border-radius: 0 12px 12px 0;
}

.btn, .home-hero__btn {
    background-color: #7945e3;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: 24px;
    margin-left: -10px;
    border: none;
    width: 140px;
    padding: 0 30px 0 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    cursor: pointer;
    transition: all .2s ease-out;
}

.btn:disabled, .home-hero__btn:disabled {
    background: #ccc;
}

.home-hero__btn {
    width: 250px;
    height: 50px;
    padding: 4px 32px;
    margin-top: 32px;
    border-radius: 12px;
}

.input-lg {
    width: 70%;
    height: 30px;
}

.input-md {
    width: 40%;
}

.thumb {
    max-height: 40px;
}

/* Simple layout helpers */
.row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.col {
    flex: 1 1 320px;
}

/* Video block on home */
.col__video {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}
.col__video video {
    display: block;
    max-width: 100%;
}

.ml-10 {
    margin-left: 10px;
}

.mb-12 {
    margin-bottom: 12px;
}

.my-10 {
    margin: 10px 0;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border-bottom: 1px solid #eee;
    padding: 8px;
    text-align: left;
}

/* Compare result highlighting */
.best {
    /*background: #c6e766;*/
}

.matched {
    background: #c6e76655;
}

.unique {
    background: #e5f6fe;
}

.undefined {
    background: #ffd6d6;
}

.input__bg {
    display: flex;
    justify-content: space-between;
    background: #7945e3;
    border-radius: 12px;
}

.input {
    padding: 12px 24px;
    background-color: #fff;
    border: 2px solid #7945e3;
    border-radius: 12px;
    box-sizing: border-box;
    color: #707070;
    font-size: 16px;
    height: 56px;
    letter-spacing: -.25px;
    line-height: 10px;
    outline: none;
    width: calc(100% - 140px);
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 20px;
    border-radius: 12px;

    background: #7945e3;
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-weight: 500;

    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.15);

    transition: transform .15s ease, box-shadow .15s ease;
}

.upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.6),
    0 12px 28px rgba(0, 0, 0, 0.2);
}

.upload-btn:active {
    transform: translateY(0);
}

/* Custom file upload */
.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
}

.btn-file {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #7945e3;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    padding: 18px 46px 18px 46px;
    transition: all .2s ease-out;
    cursor: pointer;
}

.file-upload-info {
    font-size: 0.9rem;
}

.file-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 16px;
    align-items: end; /* ключевое — прижимаем элементы вниз */
    list-style: none;
    padding-left: 0;
    margin: 6px 0 0;
    width: 100%;
}

/* Drag-and-drop zone */
.drop-zone {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 230px;
    border: 2px dashed #7945e3;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #5b5b5b;
    background: rgba(255, 255, 255, 0.6);
    transition: background .15s ease, border-color .15s ease;
    cursor: pointer;
}

/* Preloader */
.preloader-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.preloader {
    width: 40px;
    height: 40px;
    border: 4px solid #e2d8ff;
    border-top-color: #7945e3;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.spinner-text {
    margin-top: 10px;
    color: #4a4a4a;
    font-size: 14px;
}

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

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}
.tab-btn {
    background: #fff;
    color: #7945e3;
    border: 2px solid #7945e3;
    border-radius: 12px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
}
.tab-btn--active {
    background: #7945e3;
    color: #fff;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.drop-zone--over {
    background: rgba(121, 69, 227, 0.08);
    border-color: #7945e3;
}

/* Filters (custom selects) */
.filters {
    display: flex;
    align-items: flex-end;
    gap: 32px;
    margin: 10px 0 32px 0;
    flex-wrap: wrap;
    width: 100%;
}

.select {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.select__label {
    color: #4a4a4a;
}

.select__input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px 36px 10px 12px;
    border: 2px solid #7945e3;
    border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237945e3' d='M6 8a1 1 0 0 1-.707-.293l-5-5A1 1 0 0 1 1.707.293L6 4.586 10.293.293a1 1 0 1 1 1.414 1.414l-5 5A1 1 0 0 1 6 8z'/%3E%3C/svg%3E") no-repeat right 12px center;
    font-size: 14px;
    color: #333;
    min-width: 220px;
}

.select__input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(121,69,227,0.2);
}

.ml-10 { margin-left: 10px; }

.loading-price-list {
    margin-top: 32px;
}

.price-compare-entry__btn {
    width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    height: 56px;
    cursor: pointer;
}

.price-compare-entry__upload {
    display: flex;
    flex-direction: column;
    border-radius: 32px;
    background: /* внутренний слой (стекло) */ linear-gradient(
            to top right,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 1)
    ) padding-box,
        /* градиентная рамка */ linear-gradient(
            -45deg,
            #ffffff,
            rgba(121, 69, 227, 0.2)
    ) border-box;
    border: 3px solid transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-result {
    display: flex;
    flex-direction: column;
    border-radius: 32px;
    background: /* внутренний слой (стекло) */ linear-gradient(
            to top right,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 1)
    ) padding-box,
        /* градиентная рамка */ linear-gradient(
            -45deg,
            #ffffff,
            rgba(121, 69, 227, 0.2)
    ) border-box;
    border: 3px solid transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 2rem;
}

.header {
    margin-bottom: 32px;
}

.header__item, .price-compare-entry__header, .price-compare-entry__header {
    margin-bottom: 16px;
}

.price-compare-entry__descr {
    padding-bottom: 0;
}

.price-compare-entry__descr__last {
    margin-bottom: 32px;
}

.card-result__header {
    margin-bottom: 16px;
}

.card-result__description {
    margin-bottom: 64px;
}

.card-result__download-price {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 32px;
    margin-top: 32px;
}

.card-result__btn {
    width: 300px;
    height: 40px;
    border-radius: 12px;
}

.result__input {
    padding: 12px 24px 12px 24px;
    border: 2px solid #7945e3;
    border-radius: 12px;
    box-sizing: border-box;
    color: #707070;
    font-size: 16px;
    height: 40px;
    letter-spacing: -.25px;
    line-height: 10px;
    outline: none;
}

.analytics-download__btn,
.analytics-reset__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    background: rgba(121, 69, 227, 0.66);
    background-size: 24px;
    margin-left: -10px;
    border: none;
    border-radius: 12px;
    padding: 0 30px 0 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    transition: all .2s ease-out;
}

.tab-pane .section {
    margin-top: 32px;
}

.tab-pane .kpi {
    margin-bottom: 32px;
    margin-top: 32px;
}

.analytics-page .tabs {
    margin-bottom: 32px;
}

.analytics-dashboard {
    background: #fff;
}

.actions .btn {
    width: 50%;
    height: 40px;
    border-radius: 12px;
    margin-top: 16px;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
}

#user-phone {
    height: 40px;
}

.not-found__header {
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 40px;
    text-align: center;
}

.not-found__description {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    width: 60%;
    margin: 0 auto 24px auto;
}

.not-found__btns {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.not-found__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    margin: 0;
    width: 50%;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    border-radius: 12px;
    text-decoration: none;
}

.modal__header {
    margin: 0 0 12px 0;
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    letter-spacing: 0;
    color: #000;
}

.modal__label {
    margin-bottom: 16px;
}

.modal__description {
    margin: 0 0 20px 0;
    max-width: 480px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    letter-spacing: 0;
    color: #6B7280;
}

.phone-confirm__label {
    display: block;
    margin: 0 0 6px 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    letter-spacing: 0;
    color: #000;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000
}

.modal {
    background: #fff;
    border-radius: 12px;
    min-width: 300px;
    max-width: 420px;
    padding: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25)
}

.modal .row {
    display: block
}

.modal .actions {
    margin-top: 12px;
    display: flex;
    gap: 32px;
    justify-content: space-between
}

.phone-confirm__input {
    width: 100%;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    letter-spacing: 0;
    color: #111111;
}

/* Typing cursor for hero */
.typed-cursor {
    display: inline-block;
    margin-left: 2px;
    color: #7945e3;
    opacity: 1;
    animation: typed-blink 1.05s step-end infinite;
}

@keyframes typed-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.15; }
}

@media (prefers-reduced-motion: reduce) {
    .typed-cursor { display: none; animation: none; }
}

.home-card__block {
    background: linear-gradient(
            to bottom left,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 1)
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 12px;
    border: 3px solid rgb(255, 255, 255);

    box-shadow: inset 0 0 20px rgb(255, 255, 255),
    0 8px 24px rgb(255, 255, 255);
}



.home-card-block__header {
    margin-bottom: 32px;
}

.home-card-block__list {
    list-style: none;
}

.home-card-block__item {
    position: relative;
}

.home-card-block__item span {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 100px;
    background: none;
    border: 3px solid rgb(120, 68, 225);
}

.home-card-block__item {
    padding-left: 36px;
    margin-bottom: 8px;
}

.home-card-block__item:last-child {
    margin-bottom: 0;
}

.col__first {
    margin-bottom: 64px;
}

/* Uploaded files list: keep to one line with graceful truncation */
.file-upload-info {
    max-width: 100%;
    overflow: hidden;
    margin-top: 16px;
    margin-bottom: 16px;
}
.file-upload-info .file-list {
    list-style: none;
    height: 20px;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-upload-info .file-list li {
    display: inline;
    color: #555;
}
.file-upload-info .file-list li + li::before {
    content: ", ";
}
