.desktop_calc button{
    -webkit-tap-highlight-color: transparent;
}
.desktop_calc .grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1.3fr;
    gap: 16px;
}

.card {
    border: 1px solid #ffffff24;
    border-radius: 16px;
    padding: 16px;
}

.card-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Desktop option buttons */
.option-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: var(--base-color-neutral--black-lightest);
    color: #ffffff80;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    margin-bottom: 8px;
}

.option-btn:last-child {
    margin-bottom: 0;
}

.option-btn:hover {
    border-color: #334155;
}

.option-btn.active {
    border-color: rgb(255 255 255 / 20%);
    color: #fff;
}

.option-btn .icon {
    font-size: 20px;
}

.option-btn .text {
    flex: 1;
}

.option-btn .text .title {
    display: block;
}

.option-btn .text .subtitle {
    display: block;
    font-size: 12px;
    opacity: 0.6;
    margin-top: 4px;
}

.option-btn .text .subtitle.free {
    color: #34d399;
    opacity: 1;
}

.option-btn .text .subtitle.paid {
    color: #fbbf24;
    opacity: 1;
}

/* Mobile segmented controls */
.segmented-control {
    display: none;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    padding: 4px;
    border-radius: 14px;
}

.segment-btn {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.segment-btn:hover {
    color: #8888a8;
}

.segment-btn.active {
    background-color: #ffffff12;
    color: #fff;
}

.segment-btn .icon {
    font-size: 18px;
}

.segment-btn .price-tag {
    font-size: 12px;
    margin-top: 2px;
}

.segment-btn .price-tag.free {
    color: #00d4aa;
    opacity: 1;
}

.segment-btn .price-tag.paid {
    color: #ffa500;
    opacity: 1;
}



.ip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ip-grid-mobile {
    display: none;
}

.ip-btn {
    padding: 12px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: var(--base-color-neutral--black-lightest);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.ip-btn:hover {
    border-color: #334155;
}

.ip-btn.active {
    border-color: rgb(255 255 255 / 20%);
    color: #fff;
}

.ip-btn .price {
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.ip-btn .price.free {
    color: #34d399;
}

.ip-btn .price.paid {
    color: #fbbf24;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.value-badge {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    font-size: 16px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
}

.cpu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cpu-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: var(--base-color-neutral--black-lightest);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cpu-btn:hover {
    background: #334155;
    color: #94a3b8;
}

.cpu-btn.active {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.4);
}

.ram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ram-options {
    display: flex;
    gap: 8px;
}

.ram-btn {
    padding: 12px 8px;
    border-radius: 12px;
    border: 2px solid #00000000;
    background: var(--base-color-neutral--black-lightest);
    color: #ffffff82;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ram-btn:hover {
    border-color: #475569;
}

.ram-btn.active {
    background: rgba(52, 211, 153, 0.1);
    border-color: #34d399;
    color: #34d399;
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.1);
}

.ram-fixed {
    padding: 16px;
    background: var(--base-color-neutral--black-lightest);
    border: 1px solid #334155;
    border-radius: 12px;
    color: #94a3b8;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ram-fixed .icon {
    font-size: 24px;
}

.ram-fixed .info .title {
    color: #fff;
    font-weight: 600;
}

.ram-fixed .info .subtitle {
    font-size: 12px;
    color: #ffffff80;
}

.disk-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.disk-input {
    width: 100px;
    padding: 8px 12px;
    background: var(--base-color-neutral--black-lightest);
    border: 1px solid #ffffff4d;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.disk-input:focus {
    outline: none;
    border-color: #34d399;
}

.disk-unit {
    color: #ffffff80;
    font-size: 14px;
}

.disk-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #ffffff1f;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    margin: 12px 0 8px;
}

.disk-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(52, 211, 153, 0.4);
}

.disk-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    cursor: pointer;
    border: none;
}

.disk-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #ffffff80;
}

.disk-type-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.disk-type-btn {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--base-color-neutral--black-lightest);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    border: 2px solid #00000000;
}

.disk-type-btn:hover {
    border-color: #334155;
}

.disk-type-btn.active {
    background: rgba(52, 211, 153, 0.08);
    border-color: #34d399;
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.1);
}

.disk-type-btn .name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffffb5;
}

.disk-type-btn.active .name {
    color: #fff;
}

.disk-type-btn .specs {
    font-size: 12px;
    color: #ffffff7d;
    margin-top: 2px;
}

.disk-type-btn .price {
    color: #34d399;
    font-size: 14px;
    font-weight: 700;
}

.price-card {
    border: 1px solid white;
    border-radius: 16px;
    padding: 20px;
}

.price-breakdown {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #334155;
}

.price-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-row .label {
    color: #ffffff7d;
}

.price-row .value {
    color: #fff;
    font-weight: 500;
}

.price-total {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.price-total .main {
    display: flex;
    flex-direction: column;
}

.price-total .main .label {
    font-size: 12px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.price-total .main .amount {
    display: flex;
    align-items: baseline;
}

.price-total .main .currency {
    font-size: 24px;
    font-weight: 700;
    color: #34d399;
}

.price-total .main .number {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.price-total .main .period {
    font-size: 14px;
    color: #ffffff80;
    margin-left: 4px;
}

.price-total .hourly {
    text-align: right;
    margin-bottom: 10px;
}

.price-total .hourly .label {
    font-size: 12px;
    color: #ffffff80;
}

.price-total .hourly .value {
    font-size: 18px;
    font-weight: 600;
    color: #cbd5e1;
}

.price-total .hourly .value span {
    font-size: 14px;
    color: #ffffff80;
}

.deploy-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.deploy-btn:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

.summary-bar {
    margin-top: 16px;
    background: var(--base-color-neutral--black-lightest);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 14px;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-item .label {
    color: #ffffff96;
}

.summary-item .value {
    color: #fff;
    font-weight: 500;
}

.summary-item .value.highlight {
    color: #34d399;
}

.summary-divider {
    width: 1px;
    height: 16px;
    background: #334155;
}

/* Mobile Price Bar (hidden on desktop) */
.price-bar-mobile {
    display: none;
}

/* Mobile Styles */
@media (max-width: 1023px) {
    .desktop_calc .grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 570px;
        margin: auto;
        padding: 0 20px;
    }
}
@media (max-width: 768px) {

    .card {
        padding: 14px;
        border-radius: 14px;
    }

    .card-label {
        margin-bottom: 10px;
    }

    /* Hide desktop buttons, show segmented controls */
    .option-btn {
        display: none;
    }

    .segmented-control {
        display: flex;
    }



    .ip-grid {
        display: none;
    }

    .ip-grid-mobile {
        display: flex;
        gap: 8px;
        background: rgba(255,255,255,0.03);
        padding: 4px;
        border-radius: 14px;
    }

    .ip-btn-mobile {
        flex: 1;
        padding: 12px 8px;
        border: none;
        background: transparent;
        color: rgba(255, 255, 255, 0.5);
        font-size: 14px;
        font-weight: 600;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .ip-btn-mobile.active {
        background-color: #ffffff12;
        color: #fff;
    }

    .ip-btn-mobile .price-tag {
        font-size: 12px;
    }

    .ip-btn-mobile .price-tag.free {
        color: #00d4aa;
    }

    .ip-btn-mobile .price-tag.paid {
        color: #ffa500;
    }

    .label-row {
        margin-bottom: 10px;
    }

    .value-badge {
        font-size: 14px;
        padding: 4px 12px;
    }

    .cpu-grid {
        gap: 6px;
    }

    .cpu-btn {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .ram-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ram-options {
        flex-direction: column;
    }

    .ram-btn {
        padding: 14px 8px;
        font-size: 13px;
    }

    .ram-fixed {
        padding: 14px;
        font-size: 13px;
    }

    .ram-fixed .icon {
        font-size: 20px;
    }

    .disk-input {
        width: 80px;
        padding: 6px 10px;
        font-size: 13px;
    }

    .disk-unit {
        font-size: 12px;
    }

    .disk-slider {
        height: 6px;
        margin: 10px 0 6px;
    }

    .disk-slider::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }

    .disk-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }

    .disk-type-btn {
        padding: 12px;
    }

    /* Hide desktop price card, show mobile price bar */
    .price-card {
        display: none;
    }

    .price-bar-mobile {
        display: block;
        position: sticky;
        bottom: 0;
        margin-top: 50px;
        backdrop-filter: blur(7px);
        width: 100%;
        background: linear-gradient(180deg, rgba(13, 13, 20, 0) 0%, rgb(24 24 24) 20%);
        padding: 15px 20px 10px;
        z-index: 100;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .price-bar-mobile .price-breakdown {
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .price-bar-mobile .price-row {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .price-bar-mobile .price-total {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }

    .price-bar-mobile .price-main {
        display: flex;
        align-items: baseline;
    }

    .price-bar-mobile .price-currency {
        font-size: 30px;
        font-weight: 600;
        color: #34d399;
    }

    .price-bar-mobile .price-value {
        font-size: 32px;
        font-weight: 800;
        color: #fff;
        letter-spacing: -1px;
    }

    .price-bar-mobile .price-period {
        font-size: 14px;
        color: #64748b;
        margin-left: 4px;
    }

    .price-bar-mobile .price-secondary {
        font-size: 14px;
        color: #94a3b8;
        margin-bottom: 8px;
    }

    .deploy-btn-mobile {
        width: 100%;
        margin-top: 10px;
        display: flex;
        justify-content: center;
        padding: 14px;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        border: none;
        border-radius: 12px;
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    }

    .deploy-btn-mobile:active {
        background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
        transform: translateY(-1px);
    }

    .summary-bar {
        display: none;
    }

    .summary-divider {
        height: 12px;
    }
}

@media (max-width: 480px) {

    .segment-btn .price-tag{
        margin: 0;
        opacity: 0.6;
    }

    .cpu-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

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

    .summary-bar {
        font-size: 10px;
        gap: 8px;
    }
}