/* --- THEME VARIABLES --- */
:root {
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.3);
    --dark-blue: #0f172a;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
}

.vps-section {
    background-color: #f8fafc;
    font-family: 'Inter', system-ui, sans-serif;
    padding: 80px 0;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0 0px 0; /* More breathing room (100px top) */
    position: relative;
    z-index: 10;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    height: 2px;          /* Increased from 1px to 2px */
    background: #cbd5e1;  /* Visible gray */
    max-width: 250px;     /* Longer lines */
    border-radius: 10px;  /* Rounded edges */
}

.section-divider span {
    padding: 0 30px;      /* More space around words */
    background-color: transparent !important;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.95rem;   /* Larger font size */
    letter-spacing: 2px;
    white-space: nowrap;
}

.cyan-text {
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.2); /* Optional Glow */
}
/* --- CARD DESIGN --- */
.config-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    min-height: 220px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.config-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--cyan);
}

/* Header */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    gap: 20px;
}

.feature-title {
    font-size: 1rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price Badge */
.price-badge {
    background: #f1f5f9;
    color: #94a3b8;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.price-badge.active {
    background: #ecfeff;
    color: var(--cyan);
    border-color: #cffafe;
}

/* --- SLIDER STYLING --- */
.slider-wrapper {
    position: relative;
    margin-bottom: 15px;
    padding: 0 5px;
}

input[type=range].pro-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background: #f1f5f9;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    background-image: linear-gradient(var(--cyan), var(--cyan));
    background-size: 0% 100%;
    background-repeat: no-repeat;
}

input[type=range].pro-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background: #fff;
    border: 6px solid var(--cyan);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: -1px;
}

input[type=range].pro-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px var(--cyan-glow);
}

/* Bubble */
.value-bubble {
    position: absolute;
    top: -50px;
    left: 0;
    transform: translateX(-50%);
    background: var(--dark-blue);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.value-bubble.visible {
    opacity: 1;
}

.value-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--dark-blue) transparent transparent transparent;
}

/* Meta Labels */
.slider-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- CUSTOM ICON DROPDOWN STYLING --- */
.custom-dd-header {
    padding: 10px 15px 5px 15px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #94a3b8; /* Muted Gray */
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #fff;
    cursor: default;
    pointer-events: none; /* Make sure they aren't clickable */
}
/* --- PREMIUM BACK BUTTON --- */
.dd-back-btn {
    padding: 14px 20px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    
    /* Sticky top so it stays visible if list is long */
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Icon Styling */
.dd-back-btn i { 
    margin-right: 12px; 
    font-size: 0.9rem;
    color: var(--cyan);
    transition: transform 0.3s ease;
}

/* Hover Effects */
.dd-back-btn:hover {
    background-color: #ecfeff; /* Light Cyan Background */
    color: var(--cyan);        /* Text turns Cyan */
    padding-left: 15px;        /* Slight movement effect */
}

.dd-back-btn:hover i {
    transform: translateX(-4px); /* Arrow moves left */
}
.custom-dd-container {
    position: relative;
    width: 100%;
    outline: none;
}

.custom-dd-trigger {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.custom-dd-container:hover .custom-dd-trigger {
    border-color: var(--cyan);
    box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}

.custom-dd-container.active .custom-dd-trigger {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px var(--cyan-glow);
}

.custom-dd-container.active .dd-arrow {
    transform: rotate(180deg);
}

.dd-arrow {
    color: var(--cyan);
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.custom-dd-options {
    /* 1. RELATIVE makes it push the card open instead of floating */
    position: relative; 
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    
    /* Style adjustments for the expanded list */
    border: 1px solid #e2e8f0;
    border-top: none; /* Merges with the top box */
    border-radius: 0 0 12px 12px; /* Round only the bottom */
    margin-top: -2px; /* Pull it up slightly to connect with trigger */
    z-index: 10;
    
    /* Default State: Hidden */
    display: none; 
    opacity: 1;
    visibility: visible;
    transform: none;
}

.custom-dd-container.active .custom-dd-options {
    display: block;
    animation: expandDown 0.2s ease-out;
}

@keyframes expandDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. Optional: Square the bottom corners of the trigger when open */
.custom-dd-container.active .custom-dd-trigger {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent; /* Seamless merge */
}

.custom-dd-option {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.custom-dd-option:last-child {
    border-bottom: none;
}

.custom-dd-option:hover {
    background-color: #ecfeff;
    color: var(--cyan);
}

/* --- SUMMARY BOX --- */
.summary-card {
    background: var(--dark-blue);
    color: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    position: sticky;
    top: 30px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.5);
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 1rem;
}

.spec-label {
    color: #94a3b8;
    font-weight: 500;
}

.spec-val {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.sum-price-tag {
    font-size: 0.85em;
    margin-left: 6px;
}

.sum-paid,
.sum-free {
    color: #06b6d4;
    font-weight: 700;
}

.total-area {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.big-price {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    margin-bottom: 25px;
    display: block;
}

.btn-deploy {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: var(--cyan);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    font-size: 1.1rem;
}

.btn-deploy:hover {
    background: #fff;
    color: var(--cyan);
    transform: translateY(-2px);
}

.os-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-right: 10px;
    flex-shrink: 0;
}

.flag-icon-de {
    display: inline-block;
    width: 24px;
    height: 16px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1IDMiPjxyZWN0IHdpZHRoPSI1IiBoZWlnaHQ9IjMiIGZpbGw9IiNGRkNFMDAiLz48cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSIyIiBmaWxsPSIjRkQwMDAwIi8+PHJlY3Qgd2lkdGg9IjUiIGhlaWdodD0iMSIgZmlsbD0iIzAwMCIvPjwvc3ZnPg==');
    background-size: cover;
    background-position: center;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 8px; /* Spacing adjustment */
    box-shadow: 0 0 2px rgba(0,0,0,0.2); /* Slight border for white backgrounds */
}
.icon-debian {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cpath fill='%23A80030' d='M98.6 22.3c-1.3 6.1-5.6 6.3-9.5 3.9a32 32 0 0 0-7.3-3.6c-5.7-1.9-12.1-2.4-18.1-1.3-15.5 2.8-28.7 14.2-33.3 29.4-4.8 16.1.4 34.6 13.1 46.1 12.3 11 30.8 12.5 44.8 4.2 8.7-5.2 14.5-13.8 17.1-23.5 1.5-6.6.9-13.7-1.7-19.9-3.2-6.5-8.4-12.1-15.3-14.7-6.2-2.3-13.6-1.5-19.2 2.1-5.7 3.8-8.8 10.8-7.9 17.5 1.3 7.8 7.9 13.9 15.8 14.1 6.5.3 12.7-3.9 14.6-10.1.7-2.6.8-5.4.1-8-1.5-4.5-6.5-6.7-10.8-5-3.6 1.5-5.3 5.9-3.9 9.5.8 2 2.7 3.4 4.8 3.5 1.7 0 3.3-1.1 3.9-2.7.5-1.5-.2-3.1-1.6-3.8-1-.5-2.2-.2-2.9.7-.5.7-.6 1.6-.2 2.3.1.2.2.4.4.5.3.2.7.2 1 .1 1-.4 1.2-1.8.4-2.5-.2-.1-.4-.2-.6-.2-.3 0-.6.2-.7.5-.1.3 0 .7.3.8.3.1.7 0 .8-.3 0-.1 0-.3-.1-.4-.1-.1-.2-.1-.3-.1zm2.3-5.2c1.7.5 3.2 1.7 3.9 3.4 1 2.2.3 4.8-1.5 6.3-2 1.6-4.9 1.6-6.9-.1-1.9-1.6-2.6-4.3-1.6-6.6.9-2.3 3.4-3.8 5.8-3.3l.3.3z'/%3E%3C/svg%3E");
}

.icon-ubuntu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle fill='%23E95420' cx='16' cy='16' r='16'/%3E%3Cpath fill='%23FFF' d='M22.2 16a6.2 6.2 0 1 1-12.4 0 6.2 6.2 0 0 1 12.4 0z'/%3E%3Cpath fill='%23E95420' d='M16.9 13.6a2.6 2.6 0 1 0 0 4.9 2.6 2.6 0 0 0 0-4.9z'/%3E%3C/svg%3E");
}

.icon-windows {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 88'%3E%3Cpath fill='%230078D7' d='M0 12.4l35.7-4.8v34.2H0V12.4zm35.7 35.5v34.3L0 77.3V47.9h35.7zm5.8-39.2L88 0v41.8H41.5V8.7zm0 80.6l46.5-6.6V47.9H41.5v41.4z'/%3E%3C/svg%3E");
}
/* FORCE CYAN HOVER ON DROPDOWN ITEMS */
.custom-dd-option:hover,
.custom-dd-option:focus,
.custom-dd-option.selected {
    background-color: #ecfeff !important; /* Light Cyan Background */
    color: #06b6d4 !important;            /* Dark Cyan Text */
}