.pricing-wrap {
    max-width: 1100px;
    margin: 40px auto 60px auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 30px;
    box-shadow: 0 10px 28px rgba(16, 41, 57, 0.12);
}

.pricing-wrap h1 {
    margin: 0 0 8px 0;
    color: #102939;
    font-size: 2rem;
}

.pricing-subtitle {
    margin: 0 0 24px 0;
    color: #64748b;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.price-card {
    position: relative;
    border: 1px solid #dbe5ee;
    border-radius: 14px;
    background: #f8fbff;
    padding: 16px 16px 12px 16px;
}

.price-card h2 {
    margin: 0 0 8px 0;
    color: #102939;
    font-size: 1.25rem;
}

.price-value {
    font-size: 1.6rem;
    line-height: 1.1;
    font-weight: 700;
    color: #205172;
    margin-bottom: 10px;
}

.price-value span {
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
}

.price-value .price-amount {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    font-weight: inherit;
}

.price-card ul {
    margin: 0;
    padding-left: 18px;
    color: #334155;
}

.price-card li {
    margin-bottom: 4px;
}

.price-card.featured {
    border-color: #287887;
    background: linear-gradient(180deg, #f4fbfd 0%, #ffffff 100%);
}

.badge-feature {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #287887;
    color: #fff;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.compact-card {
    background: #ffffff;
}

.custom-hint {
    margin: -2px 0 10px 0;
    font-size: 0.86rem;
    color: #64748b;
}

.slider-pack {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slider-group {
    border: 1px solid #d8e6f1;
    border-radius: 10px;
    padding: 10px 11px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(16, 41, 57, 0.05);
}

.slider-group label {
    display: inline-block;
    font-size: 0.84rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0;
}

.slider-group input[type="range"] {
    width: 100%;
    accent-color: #287887;
}

.slider-group input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #95cfdb 0%, #287887 100%);
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin-top: -5px;
    border-radius: 50%;
    background: #0f4c5c;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(16, 41, 57, 0.35);
}

.slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.slider-head strong {
    font-size: 0.84rem;
    color: #0f4c5c;
}

.slider-meta {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.slider-meta span {
    font-size: 0.78rem;
    color: #475569;
    background: #ffffff;
    border: 1px solid #dbe5ee;
    border-radius: 999px;
    padding: 3px 8px;
}

.summary-label {
    font-size: 0.9rem;
    color: #64748b;
}

.summary-price {
    font-size: 2rem;
    font-weight: 700;
    color: #205172;
}

.summary-note {
    color: #64748b;
    font-size: 0.92rem;
    text-align: right;
}

.pricing-legal-box {
    margin-top: 16px;
    border: 1px solid #dbe5ee;
    background: #f8fbff;
    border-radius: 12px;
    padding: 12px;
}

.pricing-legal-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pricing-legal-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pricing-legal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    color: #205172;
    background: #ffffff;
    border: 1px solid #cfe0ee;
    border-radius: 999px;
    padding: 6px 11px;
    transition: 0.2s ease;
}

.pricing-legal-link:hover {
    color: #102939;
    border-color: #287887;
    background: #f0fafc;
}

.custom-preview {
    margin: 0 0 10px 0;
    color: #334155;
    font-size: 0.82rem;
}

.custom-line {
    margin-bottom: 5px;
    line-height: 1.35;
}

.open-custom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #287887 0%, #102939 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    font-size: 0.92rem;
}

.open-custom-btn:hover {
    filter: brightness(1.05);
}

.compact-note {
    margin-top: 8px;
    font-size: 0.8rem;
    text-align: left;
}

.custom-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 12000;
    padding: 16px;
    align-items: center;
    justify-content: center;
}

.custom-modal.show {
    display: flex;
}

.custom-modal-dialog {
    width: min(780px, 96vw);
    max-height: 92vh;
    overflow: auto;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid #cfe0ee;
    box-shadow: 0 24px 60px rgba(16, 41, 57, 0.26);
}

.custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #d6e4ef;
    background: linear-gradient(135deg, #287887 0%, #174057 100%);
    position: sticky;
    top: 0;
    z-index: 2;
}

.custom-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.custom-modal-close {
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
}

.custom-modal-body {
    padding: 14px 18px;
}

.custom-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-top: 1px solid #d6e4ef;
    background: #ffffff;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.custom-modal-price {
    color: #0f2f43;
    font-size: 1rem;
}

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

    .slider-pack {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pricing-wrap {
        margin: 20px auto 40px auto;
        padding: 20px 16px;
    }

    .pricing-wrap h1 {
        font-size: 1.65rem;
    }

    .price-value,
    .summary-price {
        font-size: 1.75rem;
    }

    .pricing-legal-box {
        padding: 10px;
    }

    .pricing-legal-link {
        width: 100%;
        justify-content: flex-start;
        border-radius: 10px;
    }
}
