/**
 * Server Listing V4 Styles
 * Sticky sidebar layout
 */

html {
    scroll-behavior: smooth;
}

/* ===========================================
   DANCING EMOJIS LOADER
   =========================================== */
.emoji-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e8ecf0 100%);
    border-radius: 16px;
    margin-bottom: 20px;
}

.emoji-loader.hidden {
    display: none;
}

/* Exit animation - emojis pop out */
.emoji-loader.exiting {
    animation: loaderFadeOut 0.5s ease-out forwards;
}

.emoji-loader.exiting .dance-emoji {
    animation: emojiPopOut 0.5s ease-out forwards;
}

.emoji-loader.exiting .dance-emoji:nth-child(1) { animation-delay: 0s; }
.emoji-loader.exiting .dance-emoji:nth-child(2) { animation-delay: 0.05s; }
.emoji-loader.exiting .dance-emoji:nth-child(3) { animation-delay: 0.1s; }
.emoji-loader.exiting .dance-emoji:nth-child(4) { animation-delay: 0.15s; }
.emoji-loader.exiting .dance-emoji:nth-child(5) { animation-delay: 0.2s; }
.emoji-loader.exiting .dance-emoji:nth-child(6) { animation-delay: 0.25s; }
.emoji-loader.exiting .dance-emoji:nth-child(7) { animation-delay: 0.3s; }

.emoji-loader.exiting .loader-text {
    animation: textFadeOut 0.3s ease-out forwards;
}

@keyframes emojiPopOut {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) translateY(-20px);
        opacity: 0.8;
    }
    100% {
        transform: scale(2) translateY(-40px);
        opacity: 0;
    }
}

@keyframes loaderFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes textFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Content fade in */
.servers-v4-container.fade-in {
    animation: contentFadeIn 0.4s ease-out forwards;
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.dancing-emojis {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.dance-emoji {
    width: 48px;
    height: 48px;
    animation: dance 1s ease-in-out infinite;
}

.dance-emoji:nth-child(1) { animation-delay: 0s; }
.dance-emoji:nth-child(2) { animation-delay: 0.1s; }
.dance-emoji:nth-child(3) { animation-delay: 0.2s; }
.dance-emoji:nth-child(4) { animation-delay: 0.3s; }
.dance-emoji:nth-child(5) { animation-delay: 0.4s; }
.dance-emoji:nth-child(6) { animation-delay: 0.5s; }
.dance-emoji:nth-child(7) { animation-delay: 0.6s; }

@keyframes dance {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(-5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.loader-text {
    font-family: 'ProximaNova-Semibold', sans-serif;
    font-size: 16px;
    color: #283441;
    margin: 0;
}

@media (max-width: 768px) {
    .dancing-emojis {
        gap: 10px;
    }

    .dance-emoji {
        width: 36px;
        height: 36px;
    }

    .loader-text {
        font-size: 14px;
    }

    /* Center plan-nav tabs on mobile */
    .plan-nav {
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: 12px !important;
    }
}

/* ===========================================
   SIDEBAR LAYOUT
   =========================================== */

.servers-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.server-sidebar {
    flex: 0 0 220px;
    width: 220px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.server-main {
    flex: 1;
    min-width: 0;
}

/* Sidebar Server Finder */
.server-sidebar .server-finder {
    background: #f4f7fa;
    border: 1px solid #dbe1e8;
    border-radius: 8px;
    padding: 6px 8px 8px 8px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    float: none;
}

.server-sidebar .server-finder strong {
    display: block;
    height: auto;
    line-height: 1.3;
    margin-bottom: 6px;
    padding: 4px 0;
    font-size: 13px;
    color: #202a34;
    font-family: 'ProximaNova-Semibold', sans-serif;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-bottom: 1px solid #dbe1e8;
    float: none;
    background: none;
    border-radius: 0;
}

/* Filter pill toggles */
.filter-pill {
    display: block;
    text-align: center;
    padding: 7px 6px 5px 6px;
    margin-bottom: 6px;
    border-radius: 20px;
    font-family: 'ProximaNova-Semibold', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.3;
    user-select: none;
    background: white;
    border: 1px solid #dbe1e8;
    color: #767f8c;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: visible;
}

.filter-pill.soldout:hover {
    border-color: #495057;
    background: rgba(73, 80, 87, 0.1);
    color: #495057;
}

.filter-pill.soldout-loc:hover {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.filter-pill.other-loc:hover {
    border-color: #0770d2;
    background: rgba(7, 112, 210, 0.1);
    color: #0770d2;
}

.filter-pill.active {
    background: #0770d2;
    color: white;
    border-color: #0770d2;
    box-shadow: 0 2px 6px rgba(7, 112, 210, 0.3);
}

.filter-pill.active:hover {
    background: #065bab;
    border-color: #065bab;
}

/* Sold out pill - dark slate when active */
.filter-pill.soldout.active {
    background: #495057;
    border-color: #495057;
    box-shadow: 0 2px 6px rgba(73, 80, 87, 0.3);
}

.filter-pill.soldout.active:hover {
    background: #343a40;
    border-color: #343a40;
}

/* Sold out locations pill - red when active */
.filter-pill.soldout-loc.active {
    background: #e74c3c;
    border-color: #e74c3c;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.filter-pill.soldout-loc.active:hover {
    background: #c0392b;
    border-color: #c0392b;
}

/* Other locations pill inside location wrap */
.location-filter-wrap .filter-pill.other-loc {
    margin: 6px 0 0 0;
    width: 100%;
    text-align: center;
    border-radius: 5px;
    font-size: 12px;
    padding: 5px 6px 4px 6px;
    background: #f0f4f8;
    border: 1px dashed #b0c4d8;
    color: #5a7a96;
}

.location-filter-wrap .filter-pill.other-loc:hover {
    background: rgba(7, 112, 210, 0.08);
    border-color: #0770d2;
    color: #0770d2;
}

.location-filter-wrap .filter-pill.other-loc.active {
    background: #0770d2;
    color: white;
    border-style: solid;
    border-color: #0770d2;
    box-shadow: none;
}

.location-filter-wrap .filter-pill.other-loc.active:hover {
    background: #065bab;
    border-color: #065bab;
}

/* Row for side-by-side filter pills */
.filter-pills-row {
    display: flex;
    gap: 6px;
    margin-bottom: 0;
}

.filter-pills-row .filter-pill {
    flex: 1 0 auto;
    margin-bottom: 6px;
}

.server-sidebar .server-finder select {
    width: 100%;
    height: 38px;
    line-height: 38px;
    padding: 0 28px 0 12px;
    margin-bottom: 6px;
    border: 1px solid #dbe1e8;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'ProximaNova-Regular', sans-serif;
    color: #202a34;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237b828b'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 10px 6px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    text-align-last: center;
}

.server-sidebar .server-finder select:hover {
    border-color: #b0bac5;
    background-color: #fafbfc;
}

.server-sidebar .server-finder select:focus {
    outline: none;
    border-color: #0770d2;
    box-shadow: 0 0 0 2px rgba(7, 112, 210, 0.15);
}

/* RAM Slider */
.ram-slider-wrap {
    margin-bottom: 4px;
    padding: 4px 10px 2px 10px;
    background: white;
    border: 1px solid #dbe1e8;
    border-radius: 5px;
    overflow: visible;
}

.ram-slider-wrap::before {
    display: none;
}

.slider-label-row {
    text-align: center;
    margin-bottom: 0;
    line-height: 1.2;
}

.ram-slider-wrap .slider-label-row span {
    font-family: 'ProximaNova-Semibold', sans-serif;
    color: #6f42c1;
    font-size: 13px;
}

.ram-slider {
    -webkit-appearance: none;
    appearance: none;
    width: calc(100% + 12px);
    margin-left: -6px;
    height: 6px;
    border-radius: 3px;
    background: transparent;
    outline: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
    padding: 0;
}

.ram-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: inherit;
    border: none;
    box-shadow: none;
    outline: none;
}

.ram-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: inherit;
    border: none;
    box-shadow: none;
    outline: none;
}

.ram-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0770d2;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    transition: transform 0.15s;
}

.ram-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.ram-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0770d2;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.ram-slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 0;
    padding: 0 3px;
}

.ram-slider-ticks span {
    font-size: 10px;
    color: #7b828b;
    font-family: 'ProximaNova-Regular', sans-serif;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 0;
    overflow: visible;
    white-space: nowrap;
}

.ram-slider-ticks span::before {
    content: '';
    display: block;
    width: 1px;
    height: 4px;
    background: #b0bac5;
    margin-bottom: 1px;
}

.ram-slider-ticks span:last-child {
}


.server-sidebar .button.secondary-reset {
    display: block;
    width: 100%;
    text-align: center;
    padding: 7px 6px 5px 6px;
    font-size: 13px;
    font-family: 'ProximaNova-Semibold', sans-serif;
    border-radius: 5px;
    margin: 8px 0 0 0;
    background: #0770d2 !important;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    height: auto;
}

/* CTA Bar - sticky on scroll */
.cta-bar-sentinel {
    height: 0;
    margin: 0;
    padding: 0;
}

.cta-bar-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.cta-bar-spacer {
    flex: 0 0 220px;
    width: 220px;
}

.cta-bar {
    flex: 1;
    display: flex;
    gap: 8px;
    min-width: 0;
}

/* Sidebar CTA top - slides in above Modern/Budget */
.sidebar-cta-top {
    margin-bottom: 4px;
}

.sidebar-cta-top .cta-badge {
    padding: 5px 6px 4px 6px;
    border-radius: 5px;
    font-family: 'ProximaNova-Semibold', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.3px;
    color: white !important;
}

.sidebar-cta-top .cta-badge.green {
    background: #18A406;
}

/* Floating hints row - sticky pair at top of server cards */
.floating-hints-row {
    position: sticky;
    top: 12px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: -56px;
    pointer-events: none;
    float: right;
    margin-right: max(-210px, calc(-50vw + 600px));
}

.floating-setup-hint,
.floating-order-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 4px 10px;
    border-radius: 20px;
    font-family: 'ProximaNova-Semibold', sans-serif;
    font-size: 10px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    pointer-events: auto;
}

.floating-setup-hint {
    background: rgba(24, 164, 6, 0.9);
    color: white !important;
    box-shadow: 0 1px 6px rgba(24, 164, 6, 0.3);
}

.floating-setup-hint span {
    color: white;
}

.floating-order-hint {
    background: rgba(7, 112, 210, 0.9);
    color: white !important;
    box-shadow: 0 1px 6px rgba(7, 112, 210, 0.3);
}

.floating-order-hint span {
    color: white;
}

.floating-order-hint img {
    flex-shrink: 0;
}

.cta-bar .cta-badge {
    flex: 1;
    padding: 7px 6px 5px 6px;
    border-radius: 5px;
    font-family: 'ProximaNova-Semibold', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    line-height: 1.3;
    letter-spacing: 0.3px;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.cta-bar .cta-badge img {
    flex-shrink: 0;
}

.cta-bar .cta-badge.green {
    background: #18A406;
}

.cta-bar .cta-badge.blue {
    background: #0770d2;
}


/* ===========================================
   SIDEBAR NAV BUTTONS (Modern / Budget)
   =========================================== */

.sidebar-nav {
    display: flex;
    gap: 0;
    margin-bottom: 5px;
}

.sidebar-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 32px;
    font-family: 'ProximaNova-Semibold', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    color: #283441;
    letter-spacing: 0.3px;
    transition: opacity 0.15s, filter 0.15s;
}

.sidebar-nav-btn.modern {
    background: #dbe1e8;
    color: #767f8c;
    border-radius: 5px 0 0 5px;
}

.sidebar-nav-btn.budget {
    background: #dce3ff;
    color: #767f8c;
    border-radius: 0 5px 5px 0;
}

.sidebar-nav-btn:hover {
    filter: brightness(0.95);
    text-decoration: none;
    color: #767f8c;
}

/* ===========================================
   LOCATION FILTER WRAP
   =========================================== */

.location-filter-wrap {
    margin-bottom: 4px;
    padding: 4px 10px 4px 10px;
    background: white;
    border: 1px solid #dbe1e8;
    border-radius: 5px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 3px;
    font-family: 'ProximaNova-Semibold', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #202a34;
    margin-bottom: 0;
}

.section-label img {
    width: 12px;
    height: 12px;
}

.location-filter-wrap::before {
    display: none;
}

.location-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.loc-toggle-pill {
    flex: 1 0 calc(50% - 3px);
    text-align: center;
    padding: 6px 4px 5px 4px;
    border-radius: 20px;
    font-family: 'ProximaNova-Semibold', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.3;
    user-select: none;
    background: white;
    border: 1px solid #dbe1e8;
    color: #767f8c;
    box-sizing: border-box;
    white-space: nowrap;
}

.loc-toggle-pill:hover {
    border-color: #0770d2;
    background: rgba(7, 112, 210, 0.1);
    color: #0770d2;
}

.loc-toggle-pill.active {
    background: #0770d2;
    color: white;
    border-color: #0770d2;
}

/* ===========================================
   CPU FILTER WRAP
   =========================================== */

.cpu-filter-wrap {
    margin-bottom: 4px;
    padding: 4px 10px 4px 10px;
    background: #f8fafc;
    border: 1px solid #d0d8e2;
    border-radius: 5px;
    position: relative;
}

.cpu-filter-wrap::before {
    display: none;
}

.cpu-filter-wrap select {
    margin-bottom: 0 !important;
    margin-top: 6px;
}

/* ===========================================
   DRIVE FILTER WRAP
   =========================================== */

.drive-filter-wrap {
    margin-bottom: 4px;
    padding: 4px 10px 4px 10px;
    background: #f8fafc;
    border: 1px solid #d0d8e2;
    border-radius: 5px;
    position: relative;
}

.drive-filter-wrap::before {
    display: none;
}

.drive-filter-wrap select {
    margin-bottom: 0 !important;
    margin-top: 6px;
}

/* ===========================================
   BRAND TOGGLE PILLS (Intel / AMD)
   =========================================== */

.brand-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 0;
}

.brand-pill {
    flex: 1;
    text-align: center;
    padding: 7px 6px 5px 6px;
    border-radius: 20px;
    font-family: 'ProximaNova-Semibold', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.3;
    user-select: none;
    background: white;
    border: 1px solid #dbe1e8;
    color: #767f8c;
}

.brand-pill.intel:hover {
    border-color: #0071c5;
    background: rgba(0, 113, 197, 0.1);
    color: #0071c5;
}

.brand-pill.amd:hover {
    border-color: #ed1c24;
    background: rgba(237, 28, 36, 0.1);
    color: #ed1c24;
}

.brand-pill.intel.active {
    background: #0071c5;
    color: white;
    border-color: #0071c5;
    animation: glowIntel 0.4s ease-out;
}

.brand-pill.amd.active {
    background: #ed1c24;
    color: white;
    border-color: #ed1c24;
    animation: glowAmd 0.4s ease-out;
}

@keyframes glowIntel {
    0% { box-shadow: 0 0 0 0 rgba(0, 113, 197, 0.6); }
    100% { box-shadow: 0 0 0 0 rgba(0, 113, 197, 0); }
}

@keyframes glowAmd {
    0% { box-shadow: 0 0 0 0 rgba(237, 28, 36, 0.6); }
    100% { box-shadow: 0 0 0 0 rgba(237, 28, 36, 0); }
}

/* CPU dropdown accent */
.cpu-filter-wrap select {
    border-left: 3px solid #dbe1e8;
    transition: border-color 0.2s;
}

.cpu-filter-wrap.intel-active select {
    border-left: 3px solid #0071c5;
}

.cpu-filter-wrap.amd-active select {
    border-left: 3px solid #ed1c24;
}

/* ===========================================
   DRIVE TOGGLE PILLS (HDD / SSD / NVMe)
   =========================================== */

.drive-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 0;
}

.drive-pill {
    flex: 1;
    text-align: center;
    padding: 7px 6px 5px 6px;
    border-radius: 20px;
    font-family: 'ProximaNova-Semibold', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.3;
    user-select: none;
    background: white;
    border: 1px solid #dbe1e8;
    color: #767f8c;
}

.drive-pill:hover {
    border-color: #d96c00;
    background: rgba(217, 108, 0, 0.1);
    color: #d96c00;
}

.drive-pill.active {
    background: #d96c00;
    color: white;
    border-color: #d96c00;
    animation: glowDrive 0.4s ease-out;
}

@keyframes glowDrive {
    0% { box-shadow: 0 0 0 0 rgba(217, 108, 0, 0.6); }
    100% { box-shadow: 0 0 0 0 rgba(217, 108, 0, 0); }
}

/* Storage dropdown accent */
.drive-filter-wrap select {
    border-left: 3px solid #dbe1e8;
    transition: border-color 0.2s;
}

.drive-filter-wrap.drive-active select {
    border-left: 3px solid #d96c00;
}

/* ===========================================
   SPEED SLIDER
   =========================================== */

.speed-slider-wrap {
    margin-bottom: 4px;
    padding: 4px 10px 2px 10px;
    background: white;
    border: 1px solid #dbe1e8;
    border-radius: 5px;
    overflow: hidden;
}

.speed-slider-wrap::before {
    display: none;
}

.speed-slider-wrap .slider-label-row span {
    font-family: 'ProximaNova-Semibold', sans-serif;
    color: #198754;
    font-size: 13px;
}

.speed-slider {
    -webkit-appearance: none;
    appearance: none;
    width: calc(100% + 12px);
    margin-left: -6px;
    height: 6px;
    border-radius: 3px;
    background: transparent;
    outline: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
    padding: 0;
}

.speed-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: inherit;
    border: none;
    box-shadow: none;
    outline: none;
}

.speed-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: inherit;
    border: none;
    box-shadow: none;
    outline: none;
}

.speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0770d2;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    transition: transform 0.15s;
}

.speed-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.speed-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0770d2;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.speed-slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 0;
    padding: 0 3px;
}

.speed-slider-ticks span {
    font-size: 10px;
    color: #7b828b;
    font-family: 'ProximaNova-Regular', sans-serif;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 0;
    overflow: visible;
    white-space: nowrap;
}

.speed-slider-ticks span::before {
    content: '';
    display: block;
    width: 1px;
    height: 4px;
    background: #b0bac5;
    margin-bottom: 1px;
}

/* ===========================================
   CARD STYLES
   =========================================== */

/* Force card-middle to be a single flex row */
.dedicated-servers .card .card-middle {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 0;
    padding: 0 !important;
    margin-top: -5px !important;
}

.dedicated-servers .card {
    overflow: visible !important;
    position: relative;
}


.dedicated-servers .card .card-middle div {
    margin: 0 0 0 0 !important;
}

/* Pricing List Section - left side, compact */
.dedicated-servers .card .card-middle .pricing-list-section {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    align-self: stretch;
    display: flex;
}

.dedicated-servers .card .card-middle .pricing-list-header {
    font-size: 10px;
    color: #18A406;
    font-weight: 600;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.dedicated-servers .card .card-middle .pricing-list {
    display: flex;
    flex-direction: column;
    border: none;
    border-left: none;
    border-radius: 0;
    overflow: hidden;
    gap: 0 !important;
    min-height: 115px;
    justify-content: space-between;
}

.dedicated-servers .card .card-middle .price-row {
    display: flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 12px;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.7);
    line-height: 1.3;
    flex: 1;
}

.dedicated-servers .card .card-middle .price-row:last-child {
    border-bottom: none;
}

/* Cascading backgrounds - light to slightly darker */
.dedicated-servers .card .card-middle .price-row.monthly {
    background: #e7f1ff;
    border-left: 8px solid #18A406;
}

.dedicated-servers .card .card-middle .price-row.monthly .term {
    font-family: 'ProximaNova-Semibold', sans-serif;
    margin-right: -2px;
}

.dedicated-servers .card .card-middle .price-row.monthly .amount {
    font-size: 15px;
    background: rgba(24, 164, 6, 0.12);
    padding: 2px 6px;
    border-radius: 3px;
}


.dedicated-servers .card .card-middle .price-row:nth-child(2) {
    background: #f0f4f8;
}

.dedicated-servers .card .card-middle .price-row:nth-child(3) {
    background: #e8ecf0;
}

.dedicated-servers .card .card-middle .price-row:nth-child(4) {
    background: #e0e5ea;
    padding-bottom: 1px;
}

.dedicated-servers .card .card-middle .price-row .term {
    color: #7b828b;
    margin-right: 6px;
    font-family: 'ProximaNova-Regular', sans-serif;
    min-width: 95px;
    font-size: 15px;
}

/* CTA Messages - between pricing and locations */
.dedicated-servers .card .card-middle .cta-messages {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    padding: 0;
}

.dedicated-servers .card .card-middle .cta-messages .cta-badge {
    background: #18A406;
    color: white;
    padding: 5px 5px 3px 5px;
    border-radius: 5px;
    font-family: 'ProximaNova-Semibold', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
    min-width: 215px;
}

.dedicated-servers .card .card-middle .cta-messages .cta-badge:last-child {
    background: #0770d2 !important;
    color: white !important;
}

.dedicated-servers .card .card-middle .price-row .amount {
    color: rgb(24, 164, 6);
    font-family: 'ProximaNova-Bold', sans-serif;
    font-size: 14px;
}

.dedicated-servers .card .card-middle .price-row .discount {
    margin-left: 8px;
    color: #e74c3c;
    font-size: 13px;
}

/* Locations - center */
.dedicated-servers .card .card-middle .instant-availability {
    flex: 1 1 auto !important;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    margin-top: 15px !important;
}

/* ===========================================
   EMOJI-BASED LOCATION INDICATORS
   =========================================== */

.dedicated-servers .card .instant-availability ul {
    display: inline-flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.dedicated-servers .card .instant-availability .location-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dedicated-servers .card .instant-availability .location-item.loc-hidden {
    opacity: 0 !important;
    transform: scale(0.8);
    pointer-events: none;
}

.dedicated-servers .card .instant-availability .location-item:hover {
    transform: scale(1.05);
}

.dedicated-servers .card .instant-availability .location-item.out:hover {
    transform: none;
}

.dedicated-servers .card .instant-availability .location-item.out {
    opacity: 0.5;
}

.dedicated-servers .card .instant-availability .location-item.out:hover {
    opacity: 0.7;
}

.dedicated-servers .card .instant-availability .location-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: linear-gradient(to bottom, #e8ecf0 66%, #dde2e7 34%);
    padding: 8px 2px 0px 2px;
    border-radius: 14px;
    border: 2px solid #e0e5ea;
    transition: all 0.2s;
}

.dedicated-servers .card .instant-availability .location-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.dedicated-servers .card .instant-availability .location-item.avail .location-link:hover {
    background: linear-gradient(to bottom, #e8ecf0 10%, #8fe67d 90%);
}

.dedicated-servers .card .instant-availability .location-item.low .location-link:hover {
    background: linear-gradient(to bottom, #e8ecf0 10%, #f7d654 90%);
}

.dedicated-servers .card .instant-availability .location-item.critical .location-link:hover {
    background: linear-gradient(to bottom, #e8ecf0 10%, #f28b8b 90%);
}

.dedicated-servers .card .instant-availability .location-item.out .location-link:hover {
    transform: none;
    box-shadow: none;
}

/* Border colors based on availability */
.dedicated-servers .card .instant-availability .location-item.avail .location-link {
    border-color: #18A406;
}

.dedicated-servers .card .instant-availability .location-item.low .location-link {
    border-color: #EDC148;
}

.dedicated-servers .card .instant-availability .location-item.critical .location-link {
    border-color: #e74c3c;
}

.dedicated-servers .card .instant-availability .location-item.out .location-link {
    border-color: #ccc;
}

.dedicated-servers .card .instant-availability .location-emoji {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.dedicated-servers .card .instant-availability .location-item.out .location-emoji {
    filter: grayscale(100%);
}

.dedicated-servers .card .instant-availability .location-code {
    font-family: 'ProximaNova-Semibold', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    color: #283441;
}

.dedicated-servers .card .instant-availability .location-item.out .location-code {
    color: #999;
}

.dedicated-servers .card .instant-availability .location-item .status {
    font-size: 12px;
    margin: 0;
    padding: 0;
    color: #18A406;
    font-weight: 500;
}

.dedicated-servers .card .instant-availability .location-item.low .status {
    color: #EDC148;
}

.dedicated-servers .card .instant-availability .location-item.critical .status {
    color: #e74c3c;
}

.dedicated-servers .card .instant-availability .location-item.out .status {
    color: #999;
    font-weight: normal;
}

/* Brand badges - Intel/AMD */
.dedicated-servers .card .brand-badge {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'ProximaNova-Bold', sans-serif;
    font-size: 14px;
    flex-shrink: 0;
}

.dedicated-servers .card .brand-badge.intel {
    background: #0071c5;
}

.dedicated-servers .card .brand-badge.amd {
    background: #ed1c24;
}

/* Benchmark badge */
.dedicated-servers .card .benchmark-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 3px 6px 2px 6px;
    border-radius: 4px;
    font-family: 'ProximaNova-Semibold', sans-serif;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
    margin-left: 7px;
    vertical-align: middle;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .dedicated-servers .card .benchmark-badge {
        display: block;
        margin-left: 0;
        margin-top: 5px;
        width: fit-content;
    }
}

.dedicated-servers .card .card-top-flex {
    display: flex;
    align-items: stretch;
    padding: 10px 15px;
    gap: 12px;
}


.dedicated-servers .card .card-top-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex: 1;
}

.dedicated-servers .card .title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.dedicated-servers .card .specs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.dedicated-servers .card h5.card-header-instant {
    margin: 0;
    padding: 0;
    float: none;
}

.dedicated-servers .card h5.card-header-instant-soldout {
    margin: 0;
    padding: 0 0 10px 0;
    float: none;
}

/* Spec badges row */
.dedicated-servers .card .spec-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.dedicated-servers .card .spec-badge {
    display: inline-block;
    padding: 5px 10px 4px 10px;
    border-radius: 4px;
    font-family: 'ProximaNova-Semibold', sans-serif;
    font-size: 11px;
    line-height: 1;
    margin-right: 4px;
    margin-bottom: 0;
    white-space: nowrap;
    text-decoration: none;
}

/* Spec badge colors by type */

/* Benchmark - red */
.dedicated-servers .card .spec-badge.benchmark {
    background: #e74c3c;
    color: white;
    font-family: 'ProximaNova-Semibold', sans-serif;
}

.dedicated-servers .card .spec-badge.benchmark:hover {
    background: #c0392b;
    color: white;
}

/* Compute - blue (Intel) */
.dedicated-servers .card .spec-badge.compute {
    background: white;
    color: #0056b3;
    border: 1px solid #0056b3;
    font-size: 12px;
}

/* Compute - red (AMD) */
.dedicated-servers .single[data-brand="amd"] .spec-badge.compute {
    color: #ed1c24;
    border-color: #ed1c24;
}

/* Memory - purple */
.dedicated-servers .card .spec-badge.memory {
    background: white;
    color: #6f42c1;
    border: 1px solid #6f42c1;
    font-size: 12px;
}

/* Storage - orange */
.dedicated-servers .card .spec-badge.storage {
    background: white;
    color: #d96c00;
    border: 1px solid #d96c00;
    font-size: 12px;
}

/* Network - green */
.dedicated-servers .card .spec-badge.network {
    background: white;
    color: #198754;
    border: 1px solid #198754;
    font-size: 12px;
}

/* Premium uplink (10 Gbps) - solid green */
.dedicated-servers .card .spec-badge.network.premium {
    background: #198754;
    color: white;
    border: 1px solid #198754;
}

.dedicated-servers .card .benchmark-badge:hover {
    background: #c0392b;
    color: white;
    text-decoration: none;
}

.dedicated-servers .card .benchmark-badge.green {
    background: #18A406 !important;
    color: white !important;
}

.dedicated-servers .card .benchmark-badge.blue {
    background: #0770d2 !important;
    color: white !important;
}

/* CTA badges row */
.dedicated-servers .card .cta-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 5px 15px 0 0;
}

/* CTA Button - right side */
.dedicated-servers .card .card-middle .infobutton {
    flex: 0 0 auto !important;
    float: none !important;
    margin: 0 !important;
    white-space: nowrap;
    align-self: center !important;
}

/* ===========================================
   RESPONSIVE - SIDEBAR COLLAPSES
   =========================================== */

@media (max-width: 1100px) {
    .servers-layout {
        flex-direction: column;
    }

    .cta-bar-spacer {
        display: none;
    }

    .cta-bar-layout {
        gap: 0;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .cta-bar {
        gap: 6px;
    }

    .cta-bar .cta-badge {
        border-radius: 20px;
        font-size: 10px;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        padding: 6px 10px 5px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        line-height: 1.2;
    }

    .cta-bar .cta-badge.green {
        background: rgba(24, 164, 6, 0.9);
        box-shadow: 0 1px 6px rgba(24, 164, 6, 0.3);
    }

    .cta-bar .cta-badge.blue {
        background: rgba(7, 112, 210, 0.9);
        box-shadow: 0 1px 6px rgba(7, 112, 210, 0.3);
    }

    .cta-bar .cta-badge img {
        flex-shrink: 0;
    }

    .sidebar-cta-top {
        display: none !important;
    }

    .server-sidebar {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
        position: static;
    }

    .server-sidebar .server-finder {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        flex-direction: row;
    }

    .server-sidebar .server-finder strong {
        width: 100%;
        margin-bottom: 5px;
    }

    .server-sidebar .server-finder select {
        flex: 1 1 150px;
        margin-bottom: 0;
    }

    .filter-pill {
        font-size: 12px;
        padding: 6px 4px 5px 4px;
    }

    .filter-pills-row {
        flex: 1 1 100%;
    }

    .server-sidebar .button.secondary-reset {
        width: 100%;
        margin-top: 0;
        height: 26px;
        line-height: 29px;
        padding: 0 20px;
    }

    .sidebar-nav {
        margin-bottom: 8px;
    }

    .location-filter-wrap {
        width: 100%;
        margin-bottom: 4px;
    }

    .cpu-filter-wrap {
        width: 100%;
        margin-bottom: 4px;
    }

    .drive-filter-wrap {
        width: 100%;
        margin-bottom: 4px;
    }

    .brand-toggle {
        flex: 1 1 100%;
    }

    .drive-toggle {
        flex: 1 1 100%;
    }

    .speed-slider-wrap {
        width: 100%;
        margin-bottom: 4px;
    }

    /* Card responsive */
    .dedicated-servers .card .card-middle {
        flex-wrap: wrap !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 15px !important;
        margin-top: 0 !important;
    }

    .dedicated-servers .card .card-middle[style*="height:0px"],
    .dedicated-servers .card .card-middle[style*="height: 0px"] {
        padding: 0 !important;
        margin: 0 !important;
    }

    .dedicated-servers .card .card-middle .pricing-list-section {
        flex: 1 1 100%;
        margin-bottom: 10px !important;
        width: 100%;
        justify-content: center;
    }

    .dedicated-servers .card .card-middle .pricing-list {
        width: auto;
        margin: 0 auto;
    }

    .dedicated-servers .card .card-middle .instant-availability {
        flex: 1 1 auto;
        width: 100%;
        margin-top: 10px !important;
    }

    .dedicated-servers .card .card-middle .instant-availability ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-evenly !important;
        gap: 8px 0 !important;
        width: 100%;
    }

    .dedicated-servers .card .instant-availability .location-item {
        height: 80px;
    }

    .dedicated-servers .card .instant-availability .location-item.loc-hidden {
        display: none !important;
    }

    .dedicated-servers .card .instant-availability .location-emoji {
        width: 26px;
        height: 26px;
        margin-bottom: 2px;
        padding-top: 5px;
    }

    .dedicated-servers .card .instant-availability .location-link {
        padding: 0;
        border-radius: 10px;
    }

    .dedicated-servers ul li {
        width: 65px;
    }

    .dedicated-servers .card .instant-availability .location-code {
        font-size: 11px;
    }

    .dedicated-servers .card .instant-availability .location-item .status {
        font-size: 10px;
    }

    /* Server finder mobile styles */
    .server-sidebar .server-finder select {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
        font-size: 12px;
        border-left: 1px solid #dbe1e8;
    }

    .ram-slider-wrap {
        width: 100%;
        margin-bottom: 4px;
    }
}
