/* ==============================================================================
   Turbyte Sanal Veri Merkezi (VDC) - Premium Native Configurator
   Aesthetic: Native Turbyte Corporate Design System
   Colors: #1d64f2 (Blue), #07111f (Ink), #edf1f7 (Borders), #ffffff (Cards)
   ============================================================================== */

.vdc-config-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) 410px;
    gap: 32px;
    align-items: start;
    margin: 36px 0 54px;
}

/* Product Switcher (Multiple pools configured in admin) */
.vdc-product-tabs {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.vdc-prod-tab {
    flex: 1;
    min-width: 220px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    text-decoration: none;
    color: #07111f;
    transition: all .2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vdc-prod-tab:hover {
    border-color: rgba(29, 100, 242, .45);
    box-shadow: 0 6px 18px rgba(29, 100, 242, .09);
    transform: translateY(-1px);
}

.vdc-prod-tab.is-active {
    border-color: var(--blue, #1d64f2);
    background: linear-gradient(180deg, rgba(29, 100, 242, .04), #ffffff), #ffffff;
    box-shadow: 0 10px 24px rgba(29, 100, 242, .14);
}

.vdc-prod-tab strong {
    font-size: 16px;
    font-weight: 600;
    color: #07111f;
}

.vdc-prod-tab.is-active strong {
    color: var(--blue, #1d64f2);
}

.vdc-prod-tab small {
    font-size: 12px;
    color: #657490;
}

/* Left Column: Sliders Main Card */
.vdc-config-main {
    background: #ffffff;
    border: 1px solid #dde7f3;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 12px 34px rgba(7, 23, 51, .045);
}

.vdc-config-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid #edf1f7;
}

.vdc-config-title-row h3 {
    margin: 0 0 4px;
    color: #07111f;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.vdc-config-title-row p {
    margin: 0;
    color: #5e6c86;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

/* Billing Cycle Tabs */
.vdc-cycle-tabs {
    display: inline-flex;
    background: #f0f3f8;
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
    flex-wrap: wrap;
    border: 1px solid #edf1f7;
}

.vdc-cycle-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #475569;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .18s ease;
    user-select: none;
}

.vdc-cycle-tab:hover {
    color: #07111f;
    background: rgba(255, 255, 255, .7);
}

.vdc-cycle-tab.is-active {
    background: #ffffff;
    color: var(--blue, #1d64f2);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(7, 23, 51, .08);
}

.vdc-cycle-tab small {
    display: inline-block;
    padding: 2px 6px;
    background: #10b981;
    color: #ffffff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.vdc-cycle-tab.is-active small {
    background: #e6f9f2;
    color: #059669;
}

/* Sliders Grid */
.vdc-slider-block {
    display: grid;
    gap: 20px;
}

.vdc-slider-row {
    background: #fbfcff;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    padding: 20px 22px;
    transition: all .2s ease;
}

.vdc-slider-row:hover {
    border-color: rgba(29, 100, 242, .32);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(7, 23, 51, .04);
}

.vdc-slider-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.vdc-spec-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #eaf2ff;
    color: var(--blue, #1d64f2);
    flex-shrink: 0;
    transition: transform .18s ease;
}

.vdc-slider-row:hover .vdc-spec-icon {
    transform: scale(1.06);
}

.vdc-spec-icon svg {
    width: 22px;
    height: 22px;
}

.vdc-spec-info {
    flex: 1;
    min-width: 0;
}

.vdc-spec-info strong {
    display: block;
    color: #07111f;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 2px;
}

.vdc-spec-info span {
    display: block;
    color: #657490;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}

/* Stepper Controls */
.vdc-spec-val {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.vdc-stepper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0f4f9;
    border: 1px solid #dde7f3;
    border-radius: 6px;
    padding: 3px;
}

.vdc-step-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: #ffffff;
    border-radius: 4px;
    color: #07111f;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    display: grid;
    place-items: center;
    line-height: 1;
    user-select: none;
}

.vdc-step-btn:hover {
    background: var(--blue, #1d64f2);
    color: #ffffff;
}

.vdc-step-btn:active {
    transform: scale(.92);
}

.vdc-val-badge {
    min-width: 86px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--blue, #1d64f2);
    padding: 0 8px;
    letter-spacing: -.01em;
}

.vdc-unit-rate {
    font-size: 11px;
    color: #7d8aa2;
    text-align: right;
    display: block;
}

/* Custom Range Slider */
.vdc-range-container {
    position: relative;
    margin: 10px 0 10px;
}

.vdc-range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #edf1f7;
    outline: none;
    cursor: pointer;
    transition: background .15s ease;
}

.vdc-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--blue, #1d64f2);
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(29, 100, 242, .45);
    cursor: grab;
    transition: transform .15s ease, box-shadow .15s ease;
}

.vdc-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.18);
    box-shadow: 0 4px 14px rgba(29, 100, 242, .55);
}

.vdc-range-input::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.25);
    box-shadow: 0 0 0 6px rgba(29, 100, 242, .18);
}

.vdc-range-input::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--blue, #1d64f2);
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(29, 100, 242, .45);
    cursor: grab;
}

.vdc-range-bounds {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 5px;
}

/* Preset Chips */
.vdc-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.vdc-chip {
    padding: 5px 12px;
    background: #f0f3f8;
    border: 1px solid #edf1f7;
    border-radius: 6px;
    color: #475569;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s ease;
}

.vdc-chip:hover {
    background: #e2e8f0;
    color: #07111f;
}

.vdc-chip.is-active {
    background: #eaf3ff;
    border-color: rgba(29, 100, 242, .45);
    color: var(--blue, #1d64f2);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(29, 100, 242, .12);
}

/* VM Capacity Estimation Banner */
.vdc-capacity-banner {
    margin-top: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0f6ff 0%, #f7faff 100%);
    border: 1px solid #d4e3fc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.vdc-cap-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--blue, #1d64f2);
    color: #ffffff;
    flex-shrink: 0;
}

.vdc-cap-icon svg {
    width: 20px;
    height: 20px;
}

.vdc-cap-info strong {
    display: block;
    font-size: 13px;
    color: #07111f;
    margin-bottom: 2px;
}

.vdc-cap-info p {
    margin: 0;
    font-size: 12px;
    color: #475569;
    line-height: 1.45;
}

.vdc-cap-info p strong {
    display: inline;
    color: var(--blue, #1d64f2);
}

/* Right Column: Sticky Summary Box */
.vdc-config-summary {
    position: sticky;
    top: 96px;
}

.vdc-summary-box {
    background: #ffffff;
    border: 1px solid #dde7f3;
    border-radius: 8px;
    padding: 26px;
    box-shadow: 0 16px 46px rgba(7, 23, 51, .07);
}

.vdc-summary-head {
    padding-bottom: 18px;
    border-bottom: 1px solid #edf1f7;
    margin-bottom: 18px;
}

.vdc-summary-head .vps-plan-name {
    min-height: auto;
    padding: 0;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
}

.vdc-summary-head .vps-plan-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #eaf3ff;
    color: var(--blue, #1d64f2);
}

.vdc-badge-instant {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eafbf3;
    color: #059669;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.vdc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.vdc-summary-head .vps-plan-name h3 {
    margin: 0 0 2px;
    font-size: 18px;
    font-weight: 600;
    color: #07111f;
}

.vdc-summary-head .vps-plan-name p {
    margin: 0;
    font-size: 12px;
    color: var(--blue, #1d64f2);
    font-weight: 500;
}

/* Spec Rows in Summary */
.vdc-summary-specs {
    display: grid;
    gap: 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf1f7;
    margin-bottom: 18px;
}

.vdc-summary-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    gap: 10px;
}

.vdc-summary-spec-row span {
    color: #657490;
    font-weight: 400;
}

.vdc-summary-spec-row strong {
    color: #07111f;
    font-weight: 600;
    text-align: right;
}

/* Price Section in Summary */
.vdc-summary-price {
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #edf1f7;
}

.vdc-price-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.vdc-old-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vdc-old-wrap del {
    color: #7d8aa2;
    font-size: 14px;
    font-weight: 400;
}

.vdc-discount-tag {
    display: inline-block;
    padding: 2px 6px;
    background: #e6f9f2;
    color: #059669;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.vdc-main-price {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.vdc-main-price strong {
    color: var(--blue, #1d64f2);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
}

.vdc-main-price span {
    color: #07111f;
    font-size: 13px;
    font-weight: 400;
    padding-bottom: 3px;
}

.vdc-vat-note {
    font-size: 11px;
    color: #7d8aa2;
}

/* Total Card Breakdown */
.vdc-total-card {
    background: #f8fafc;
    border: 1px solid #edf1f7;
    border-radius: 6px;
    padding: 12px 14px;
    display: grid;
    gap: 6px;
    font-size: 12px;
}

.vdc-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
}

.vdc-total-row strong {
    color: #07111f;
    font-weight: 600;
}

.vdc-tax-row {
    color: #64748b;
    font-size: 11px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #e2e8f0;
}

.vdc-grand-row {
    padding-top: 2px;
    font-size: 13px;
}

.vdc-grand-row span {
    color: #07111f;
    font-weight: 600;
}

.vdc-grand-row strong {
    color: var(--blue, #1d64f2);
    font-size: 16px;
    font-weight: 700;
}

/* Full Width CTA Button matching .vps-plan-config */
.vdc-btn-full {
    width: 100% !important;
    min-height: 52px !important;
    height: 52px !important;
    margin: 0 !important;
    cursor: pointer;
    border: 1px solid var(--blue, #1d64f2);
    border-radius: 8px;
    background: linear-gradient(180deg, #1d64f2 0%, #0956ff 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 14px 28px rgba(29, 100, 242, .24);
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.vdc-btn-full svg {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}

.vdc-btn-full:hover {
    background: var(--blue-2, #0956ff);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(29, 100, 242, .34);
}

.vdc-btn-full:hover svg {
    transform: translateX(3px);
}

.vdc-summary-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 11px;
    color: #7d8aa2;
}

.vdc-summary-badges span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vdc-summary-badges svg {
    width: 13px;
    height: 13px;
    color: #10b981;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
    .vdc-config-wrapper {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .vdc-config-summary {
        position: static;
    }
}

@media (max-width: 580px) {
    .vdc-config-main {
        padding: 20px 16px;
    }
    .vdc-slider-row {
        padding: 16px 14px;
    }
    .vdc-slider-meta {
        flex-wrap: wrap;
    }
    .vdc-spec-val {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
    }
    .vdc-summary-box {
        padding: 20px 16px;
    }
}
