/* Премиум-доступ на странице /cloud. Классы с префиксом cpass-,
   чтобы не зависеть от сборки Tailwind. */

.cpass {
    margin-top: 24px;
    border: 1px solid #dfe3f5;
    border-radius: 18px;
    background: #f7f8ff;
    overflow: hidden;
}

.cpass-offer {
    padding: 22px 24px 24px;
    background: linear-gradient(135deg, #eef1ff 0%, #f7f8ff 55%, #fdf1ea 100%);
}

.cpass-offer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.cpass-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

.cpass-badge-ok {
    background: #16a34a;
}

.cpass-price {
    font-size: 26px;
    font-weight: 800;
    color: #1f2340;
    white-space: nowrap;
}

.cpass-price-per {
    font-size: 15px;
    font-weight: 600;
    color: #6b7086;
}

.cpass-title {
    font-size: 19px;
    font-weight: 700;
    color: #1f2340;
    margin: 0 0 12px;
}

.cpass-features {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

.cpass-features li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    line-height: 1.4;
    color: #3d4257;
}

.cpass-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #4f46e5;
    font-weight: 800;
}

.cpass-ai-hint {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #5b6076;
}

/* Подсказка про запятые-разделители над формой */
.cloud-sep-warning {
    border-color: #d97706 !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, .16);
}

.cloud-sep-hint {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #b45309;
}

.cpass-explain {
    margin: 0 0 18px;
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e3e6f5;
}

.cpass-example {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.cpass-example-col {
    flex: 1 1 220px;
    min-width: 200px;
}

.cpass-example-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8a90a8;
}

.cpass-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cpass-chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    background: #f2f3fa;
    border: 1px solid #e1e4f0;
    color: #4a4f66;
    font-size: 14px;
}

.cpass-chip-out {
    background: #e9e7ff;
    border-color: #cfcaff;
    color: #2f2a7a;
    font-weight: 700;
}

.cpass-chip-out b {
    color: #4f46e5;
}

.cpass-example-arrow {
    font-size: 22px;
    font-weight: 800;
    color: #4f46e5;
}

.cpass-explain-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
}

.cpass-explain-list li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.4;
    color: #3d4257;
}

.cpass-explain-list li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: -1px;
    color: #4f46e5;
    font-weight: 800;
}

.cpass-buy {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.cpass-input {
    flex: 1 1 260px;
    min-width: 220px;
    padding: 11px 14px;
    border: 1px solid #ccd1e6;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    color: #1f2340;
}

.cpass-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}

.cpass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    border: 1px solid #ccd1e6;
    background: #fff;
    color: #1f2340;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow .2s ease, background .2s ease, transform .1s ease;
}

.cpass-btn:hover {
    box-shadow: 0 6px 18px rgba(31, 35, 64, .12);
}

.cpass-btn:active {
    transform: translateY(1px);
}

.cpass-btn-primary {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}

.cpass-btn[disabled] {
    opacity: .6;
    cursor: default;
    box-shadow: none;
}

.cpass-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7086;
}

.cpass-msg {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #b42318;
}

.cpass-msg.is-ok {
    color: #15803d;
}

.cpass-active {
    padding: 14px 24px;
    background: #e9f9ef;
    border-bottom: 1px solid #cdeed9;
}

.cpass-active-head {
    display: flex;
    align-items: center;
    gap: 16px 22px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #2c5340;
}

.cpass-restore {
    margin-top: 10px;
    font-size: 13px;
    color: #3d4257;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cpass-restore code {
    background: #fff;
    border: 1px solid #d6dbe9;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 12px;
    word-break: break-all;
}

.cpass-pro {
    padding: 18px 24px 22px;
}

.cpass-pro.is-locked {
    background: repeating-linear-gradient(135deg, #fbfbfd, #fbfbfd 10px, #f5f6fa 10px, #f5f6fa 20px);
}

.cpass-pro-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 16px;
    font-weight: 700;
    color: #1f2340;
    margin-bottom: 14px;
}

.cpass-lock {
    font-size: 13px;
    font-weight: 600;
    color: #8a5a00;
    background: #fff1cc;
    border-radius: 999px;
    padding: 3px 10px;
}

.cpass-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin-bottom: 16px;
}

.cpass-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #4a4f66;
}

.cpass-field select,
.cpass-field input[type="file"],
.cpass-field textarea {
    padding: 8px 10px;
    border: 1px solid #ccd1e6;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #1f2340;
    font-family: inherit;
    resize: vertical;
}

.cpass-field textarea:disabled {
    background: #f2f3f8;
    color: #8a90a8;
    cursor: not-allowed;
}

.cpass-field em {
    font-style: normal;
    font-weight: 600;
    color: #8a5a00;
}

.cpass-field-wide {
    grid-column: 1 / -1;
}

.cpass-field input[type="range"] {
    width: 100%;
}

.cpass-exports {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cpass-toast {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #eef1ff;
    color: #33385c;
    font-size: 14px;
}

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

    .cpass-explain-list {
        grid-template-columns: 1fr;
    }

    .cpass-grid {
        grid-template-columns: 1fr;
    }

    .cpass-btn {
        width: 100%;
    }

    .cpass-exports .cpass-btn {
        width: 100%;
    }
}
