/* Layout and Base spacing */
.content {
    padding: 1.5rem;
}
.justify-between {
    justify-content: space-between;
}
.align-center {
    align-items: center;
}
.flex-grow {
    flex-grow: 1;
}
.heading-text {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 0.75rem 0.5rem;
    color: #2d3748;
}
.dark .heading-text {
    color: #e2e8f0;
}

/* Service Selection (VPS vs Proxy) */
.services-choice {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.service {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    cursor: pointer;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.dark .service {
    background: #1e293b;
    border-color: #2d3748;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.service p {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dark .service p {
    color: #cbd5e0;
}
.service:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    border-color: #1c3faa;
}
.dark .service:hover {
    border-color: #3b82f6;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}
.service.selected {
    background: linear-gradient(135deg, #1c3faa 0%, #355cc9 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 8px 20px rgba(28, 63, 170, 0.3) !important;
}
.dark .service.selected {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4) !important;
}
.service.selected p {
    color: #ffffff !important;
}

/* Packages Container */
.packages-container {
    display: flex;
    justify-content: start;
    width: 100%;
}
.package-group {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}
.package-container {
    flex: 1 1 340px;
    max-width: 100%;
    margin-bottom: 0.5rem;
}

/* Individual Package Card */
.package {
    height: 100%;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    min-height: 220px;
}
.dark .package {
    background: #1e293b;
    border-color: #2d3748;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.package:hover {
    transform: translateY(-4px);
    border-color: #1c3faa;
    box-shadow: 0 12px 24px rgba(28, 63, 170, 0.1);
}
.dark .package:hover {
    border-color: #3b82f6;
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.18);
}
.package.selected {
    border: 2px solid #1c3faa !important;
    background: #f8fafc !important;
    box-shadow: 0 12px 28px rgba(28, 63, 170, 0.15) !important;
}
.dark .package.selected {
    border: 2px solid #3b82f6 !important;
    background: #172033 !important;
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.25) !important;
}

.package-title {
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: #1a202c;
    padding: 0.25rem 0;
}
.dark .package-title {
    color: #f7fafc;
}
.package-title i {
    color: #1c3faa;
}
.dark .package-title i {
    color: #3b82f6;
}
.package-description {
    flex-grow: 1;
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.5;
    padding: 0.5rem 0;
    min-height: 60px;
}
.dark .package-description {
    color: #cbd5e0;
}
.package-price {
    margin-top: 0.75rem;
}
.package-price-container {
    text-align: right;
    padding: 0.25rem 0;
}
.price-text {
    font-weight: 800;
    font-size: 1.6rem;
    color: #1c3faa;
}
.dark .price-text {
    color: #60a5fa;
}
.package-price span {
    font-size: 0.85rem;
    color: #718096;
}
.dark .package-price span {
    color: #a0aec0;
}

/* Sliding In animation */
@keyframes slideIn {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.details {
    animation-duration: 0.3s;
    animation-fill-mode: forwards;
}
.slide-in {
    display: block;
    animation-name: slideIn;
}

/* Configurations Layout */
.configurations {
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.basic-config {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
    width: 100%;
}
.config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    gap: 1rem;
}
.dark .config-item {
    background: #1e293b;
    border-color: #2d3748;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.config-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: #4a5568;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 60px;
}
.dark .config-text {
    color: #cbd5e0;
}
.config-text i {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: #1c3faa;
}
.dark .config-text i {
    color: #3b82f6;
}

/* Range Inputs styling */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
}
.dark input[type="range"] {
    background: #2d3748;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1c3faa;
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.15s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.dark input[type="range"]::-webkit-slider-thumb {
    background: #3b82f6;
}
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}
input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: #1c3faa;
    cursor: pointer;
    transition: transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.dark input[type="range"]::-moz-range-thumb {
    background: #3b82f6;
}
input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.25);
}
input[type="range"]:disabled {
    background: #e2e8f0;
    opacity: 0.6;
}
.dark input[type="range"]:disabled {
    background: #2d3748;
}
input[type="range"]:disabled::-webkit-slider-thumb {
    background: #cbd5e0;
    cursor: not-allowed;
}

.cpu-value, .ram-value, .disk-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1c3faa;
}
.dark .cpu-value, .dark .ram-value, .dark .disk-value {
    color: #60a5fa;
}

/* Location search bar */
.search {
    position: relative;
    display: flex;
    align-items: center;
}
#location-search {
    padding-right: 2.25rem;
    border-radius: 6px !important;
    border: 1px solid #cbd5e0;
    transition: all 0.2s ease-in-out;
}
.dark #location-search {
    border-color: #4a5568;
    background: #1e293b;
    color: #e2e8f0;
}
#location-search:focus {
    border-color: #1c3faa;
    box-shadow: 0 0 0 3px rgba(28, 63, 170, 0.15);
}
.dark #location-search:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
#clear-search {
    position: absolute;
    right: 0.75rem;
    color: #a0aec0;
    transition: color 0.15s ease-in-out;
}
#clear-search:hover {
    color: #e53e3e;
}

/* Location Selection styling */
.location-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 0;
}

.location-item, .res-location-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px !important;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.dark .location-item, .dark .res-location-item {
    background: #1e293b;
    border-color: #2d3748;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.location-item:hover, .res-location-item:hover {
    border-color: #1c3faa;
    background: #f8fafc;
    transform: translateY(-1px);
}
.dark .location-item:hover, .dark .res-location-item:hover {
    border-color: #3b82f6;
    background: #232f42;
}
.location-item.selected, .res-location-item.selected {
    border-color: #3182ce !important;
    background: rgba(49, 130, 206, 0.08) !important;
    color: #2b6cb0 !important;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(49, 130, 206, 0.2);
}
.dark .location-item.selected, .dark .res-location-item.selected {
    border-color: #63b3ed !important;
    background: rgba(99, 179, 237, 0.15) !important;
    color: #90cdf4 !important;
    box-shadow: inset 0 0 0 1px rgba(99, 179, 237, 0.2);
}
.location-item .fi, .res-location-item .fi {
    font-size: 1.15rem;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-right: 0.5rem;
}

/* Operating System Selection */
.os-select {
    margin-top: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px !important;
    background: #ffffff;
}
.dark .os-select {
    background: #1e293b;
    border-color: #2d3748;
}
.os-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    width: 100%;
}
.os-dropdown {
    flex-basis: auto;
}
.os-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px !important;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.dark .os-item {
    background: #1e293b;
    border-color: #2d3748;
}
.os-item p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}
.os-item:hover {
    border-color: #1c3faa;
    background: #f8fafc;
}
.dark .os-item:hover {
    border-color: #3b82f6;
    background: #232f42;
}
.os-dropdown.selected .os-item {
    border-color: #1c3faa !important;
    background: rgba(28, 63, 170, 0.08) !important;
    color: #1c3faa !important;
    font-weight: 600;
}
.dark .os-dropdown.selected .os-item {
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.15) !important;
    color: #3b82f6 !important;
}
.os-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: #4a5568;
}
.dark .os-icon {
    color: #cbd5e0;
}
.os-dropdown.selected .os-icon {
    color: #1c3faa;
}
.dark .os-dropdown.selected .os-icon {
    color: #3b82f6;
}

/* Order Summary (Sidebar Card) */
.order-container {
    width: 100%;
}
.order-wrapper {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}
.order-left {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
}
.order-summary {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 1rem;
    width: 360px;
    max-width: 100%;
    flex-shrink: 0;
    height: fit-content;
    transition: margin-top 0.3s ease;
}
.dark .order-summary {
    background: #1e293b;
    border-color: #2d3748;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.heading-text-order-summary {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px !important;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.order-detail-item {
    border-bottom: 1px solid #edf2f7;
    padding: 0.85rem 0.25rem;
}
.dark .order-detail-item {
    border-color: #2d3748;
}
.order-detail-item:last-child {
    border-bottom: none;
}
.order-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.25rem;
}
.order-warning {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    width: 100%;
}
.order-amount {
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0.25rem;
    margin: 1rem 0;
}
.dark .order-amount {
    border-color: #2d3748;
}
.order-amount .flex .btn-secondary,
#ip-input.flex .btn-secondary,
.config-btn-minus,
.config-btn-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0 !important;
    border-radius: 6px !important;
    font-size: 0.85rem;
}
.order-amount .flex input,
#ip-input.flex input {
    height: 34px;
    width: 60px !important;
    text-align: center;
    font-weight: 600;
    border-radius: 6px !important;
    border: 1px solid #cbd5e0;
}
.dark .order-amount .flex input,
.dark #ip-input.flex input {
    border-color: #4a5568;
    background: #1a202c;
    color: #e2e8f0;
}

.order-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
}
.dark .order-total {
    color: #e2e8f0;
}
#total-money {
    color: #e53e3e;
    font-size: 1.75rem;
    font-weight: 800;
}
.dark #total-money {
    color: #f87171;
}

.order-button {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.85rem !important;
    border-radius: 8px !important;
    width: 100% !important;
    transition: all 0.2s ease-in-out;
    margin-top: 0.75rem;
}
.order-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28, 63, 170, 0.2);
}

/* Hot Badge styling */
.badge-overlay{
    position: absolute;
    left: 0%;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 100;
    transition: width 0.4s ease, height 0.4s ease;
}

.top-right {
    position: absolute;
    top: 0;
    right: 0;
    -ms-transform: translateX(30%) translateY(0%) rotate(45deg);
    -webkit-transform: translateX(30%) translateY(0%) rotate(45deg);
    transform: translateX(30%) translateY(0%) rotate(45deg);
    -ms-transform-origin: top left;
    -webkit-transform-origin: top left;
    transform-origin: top left;
}

.badge {
    margin: 0;
    padding: 0;
    color: white;
    padding: 4px 8px;
    font-size: 0.75rem;
    text-align: center;
    line-height: normal;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge::before, .badge::after {
    content: '';
    position: absolute;
    top: 0;
    margin: 0 -1px;
    width: 100%;
    height: 100%;
    background: inherit;
    min-width: 55px;
}

.badge::before {
    right: 100%;
}

.badge::after {
    left: 100%;
}

/* Custom styles for ISP & IP quantity configs inside proxy config */
#protocol-select, #isp-select {
    border-radius: 6px !important;
    font-size: 0.95rem;
    padding: 0.5rem 2rem 0.5rem 1rem;
}
.dark #protocol-select, .dark #isp-select {
    background: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
}

/* Spinner adjustment */
.loading-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    color: #1c3faa;
}
.dark .loading-icon {
    color: #3b82f6;
}

/* Media Queries */
@media only screen and (max-width: 1280px) {
    .order-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .order-summary {
        width: 100% !important;
        min-width: 100% !important;
    }
    #warning {
        max-width: none;
    }
}
@media only screen and (min-width: 1280px) {
    .order-summary {
        min-width: 360px;
    }
    #warning {
        max-width: 500px;
    }
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

@media only screen and (max-width: 768px) {
    .basic-config {
        grid-template-columns: 1fr;
    }
    .config-item {
        padding: 0.85rem 0.75rem !important;
        gap: 0.75rem !important;
    }
}
@media only screen and (max-width: 480px) {
    .config-item {
        padding: 0.75rem 0.5rem !important;
        gap: 0.5rem !important;
    }
    .config-text {
        min-width: 45px !important;
        font-size: 0.85rem !important;
    }
    .cpu-value, .ram-value, .disk-value {
        font-size: 1rem !important;
    }
}

/* ==========================================================================
   Stepper Progress Bar & Wizard Styles
   ========================================================================== */

.stepper-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.dark .stepper-container {
    background: #1e293b;
    border-color: #2d3748;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    width: 100%;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    flex: 1;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dark .step-icon {
    background-color: #2d3748;
    color: #cbd5e0;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
    color: #718096;
    transition: all 0.3s ease;
    text-align: center;
}

.dark .step-label {
    color: #a0aec0;
}

/* Step Line */
.step-line {
    flex-grow: 1;
    height: 3px;
    background-color: #e2e8f0;
    margin: 18px 10px 0 10px;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.dark .step-line {
    background-color: #2d3748;
}

/* Step Active State */
.step.active .step-icon {
    background-color: #1c3faa;
    color: #ffffff;
    border-color: #1c3faa;
    box-shadow: 0 0 0 4px rgba(28, 63, 170, 0.2);
}

.dark .step.active .step-icon {
    background-color: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.35);
}

.step.active .step-label {
    color: #1c3faa;
    font-weight: 700;
}

.dark .step.active .step-label {
    color: #3b82f6;
    font-weight: 700;
}

/* Step Completed State */
.step.completed .step-icon {
    background-color: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.dark .step.completed .step-icon {
    background-color: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.step.completed .step-label {
    color: #10b981;
}

.dark .step.completed .step-label {
    color: #10b981;
}

.step-line.completed {
    background-color: #10b981;
}

/* Step Disabled State */
.step.disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Step Content Transitions */
.step-content-box {
    display: none;
    opacity: 0;
}

.step-content-box.active {
    display: block;
    opacity: 1;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content-box.slide-in {
    display: block !important;
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Prevent long OS option strings from wrapping in dropdowns */
.os-option {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

/* Responsive Stepper Styles */
@media only screen and (max-width: 640px) {
    .step-label {
        font-size: 0.75rem;
        margin-top: 6px;
    }
    .step-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .step-line {
        margin-top: 16px;
        margin-left: 6px;
        margin-right: 6px;
    }
}

@media only screen and (max-width: 480px) {
    .step-label {
        display: none;
    }
    .step.active .step-label {
        display: block;
        position: absolute;
        top: 36px;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        font-size: 0.75rem;
        z-index: 10;
    }
    .stepper {
        padding-bottom: 24px;
    }
    .step-line {
        margin-top: 16px;
        margin-left: 4px;
        margin-right: 4px;
    }
}

/* ==========================================================================
   Display Mode Selector & Classic Mode Overrides
   ========================================================================== */

.mode-selector-container {
    transition: all 0.3s ease;
}

.mode-buttons button {
    transition: all 0.25s ease;
}

/* Classic Mode Overrides */
.order-left.classic-mode .stepper-container {
    display: none !important;
}

.order-left.classic-mode .step-buttons {
    display: none !important;
}

.order-left.classic-mode .step-content-box {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    margin-bottom: 1.5rem !important;
}

.order-left.classic-mode #step-5 {
    display: none !important; /* Hide step 5 text container in classic view */
}

/* Force order summary to display on mobile when in classic mode */
.order-left.classic-mode ~ .order-summary {
    display: flex !important;
}

/* ==========================================================================
   Stunning Custom Service Selection Cards (VPS vs Proxy)
   ========================================================================== */

.service {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1.25rem 1.5rem !important;
    cursor: pointer;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    gap: 1.25rem;
}

.dark .service {
    background: #1e293b;
    border-color: #2d3748;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.service .service-icon {
    font-size: 1.6rem;
    color: #1c3faa;
    background: rgba(28, 63, 170, 0.08);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0 !important;
}

.dark .service .service-icon {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.15);
}

.service-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.service-title {
    margin: 0 !important;
    font-weight: 700;
    font-size: 1.15rem;
    color: #1a202c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.dark .service-title {
    color: #f7fafc;
}

.service-desc {
    font-size: 0.825rem;
    color: #718096;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.dark .service-desc {
    color: #cbd5e0;
}

/* Hover effect */
.service:hover .service-icon {
    transform: scale(1.05);
    background: rgba(28, 63, 170, 0.14);
}

.dark .service:hover .service-icon {
    background: rgba(59, 130, 246, 0.25);
}

/* Selected state modifications */
.service.selected {
    background: linear-gradient(135deg, #1c3faa 0%, #355cc9 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 8px 20px rgba(28, 63, 170, 0.35) !important;
}

.dark .service.selected {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.45) !important;
}

.service.selected .service-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.service.selected .service-title {
    color: #ffffff !important;
}

.service.selected .service-desc {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Responsive service selector list stacking */
@media only screen and (max-width: 640px) {
    .services-choice {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ==========================================================================
   Config Number Input Fields Styling
   ========================================================================== */

.config-number-input {
    height: 34px;
    font-weight: 600;
    border-radius: 6px !important;
    border: 1px solid #cbd5e0;
    padding: 0.25rem !important;
    transition: all 0.2s ease-in-out;
}

.dark .config-number-input {
    border-color: #4a5568;
    background: #1a202c;
    color: #e2e8f0;
}

.config-number-input:focus {
    border-color: #1c3faa;
    box-shadow: 0 0 0 3px rgba(28, 63, 170, 0.15);
    outline: none;
}

.dark .config-number-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.config-number-input:disabled {
    background: #e2e8f0;
    border-color: #cbd5e0;
    color: #a0aec0;
    cursor: not-allowed;
}

}

.config-btn-minus, .config-btn-plus {
    width: 34px;
    height: 34px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px !important;
    font-size: 0.85rem;
    transition: all 0.2s ease-in-out;
}

.config-btn-minus:disabled, .config-btn-plus:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   Bandwidth Badges Styles (Upload & Download tags stacked vertically)
   ========================================================================== */

.bandwidth-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.bandwidth-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 0.25rem;
    white-space: nowrap;
}

.bandwidth-badge.upload {
    background-color: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.dark .bandwidth-badge.upload {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.bandwidth-badge.download {
    background-color: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.dark .bandwidth-badge.download {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}