:root {
    --bg-dark: #0b0e14;
    --card-bg: #0f1526;
    --text-muted: #7e8b9a;
    --accent-cyan: #00d2ff;
    --border-color: #1f293a;
    --tooltip-bg: #0d121c;
    --tooltip-border: #3b82f6;
    --neon-green: #4caf50;
}

#explore {
    background-color: #000;
}

#explore .container {
    overflow: clip !important;
}
.g-new-product-pricing-table-wrapper-title {
    color: white !important;
}

.server-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: visible;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.server-card:hover {
    border-color: #4caf50;
    transform: translateY(-2px);
    transition: transform .2s ease;
    z-index: 10;
}

.server-img-container {
    width: 260px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 0;
}

.server-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to right, black 30%, transparent 100%);
    transition: transform .5s ease;
}

.server-card:hover .server-img {
    transform: scale(1.05);
}

.server-details {
    position: relative;
    z-index: 1;
    min-width: 565px;
    padding: 15px 15px 15px 220px;
}

.server-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 4px;
}

.server-ref {
    color: #cbd5e1;
    font-size: .8rem;
    margin-bottom: 6px;
}

.server-specs {
    font-size: 15px;
    color: #ffffff;
    background: #36b04838;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #4caf50;
    display: inline-block;
}

.gpu-box {
    width: 250px;
    padding: 15px;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 100px;
    z-index: 1;
    position: relative
}

.nvidia-logo {
    height: 45px;
    margin-bottom: 5px;
}

.gpu-name {
    color: #76b900;
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    text-align: center;
    margin-top: 10px;
}

.gpu-options-tooltip-wrapper {
    margin-top: 10px;
    width: 100%;
    padding: 5px;
    position: relative;
}

.options-trigger-btn {
    background-color: transparent;
    color: var(--accent-cyan) !important;
    border: 1px solid var(--accent-cyan) !important;
    font-size: .8rem;
    padding: 5px 10px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color .2s;
        width: fit-content;
    margin: 10px auto 0;
}

.options-trigger-btn:hover {
    background-color: rgba(0, 210, 255, .1);
}

.options-tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 99999;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    margin-top: -5px;
    width: max-content;
    min-width: 250px;
    max-width: 450px;
    background-color: var(--tooltip-bg);
    border: 1px solid var(--tooltip-border);
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
    transition: opacity .3s, visibility .3s;
}

.options-tooltip-content::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent var(--tooltip-bg) transparent;
}

.gpu-options-tooltip-wrapper:hover .options-tooltip-content {
    visibility: visible;
    opacity: 1;
}

.options-tooltip-content .options-title {
    font-size: .85rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #3a4155;
    text-align: left;
}

.options-tooltip-content .options-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.options-tooltip-content .options-list li {
    color: #a0aec0;
    font-size: .8rem;
    line-height: 1.5;
    white-space: nowrap;
}

.options-tooltip-content .options-list li i {
    color: #48bb78;
    margin-right: 5px;
}

.stats-container {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1;
}

.stat-box {
    text-align: center;
    padding: 0 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-icon {
    font-size: 25px;
    color: var(--main);
    margin-bottom: 5px;
}

.stat-text {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    display: block;
}

.stat-label {
    font-size: .75rem;
    color: white;
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

.price-action-container {
    width: 250px;
    text-align: center;
    border-left: 1px solid var(--border-color);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    height: 100%;
}

.price-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.price-period {
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.btn-buy {
    font-size: .85rem;
    padding: 6px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: .3s;
    background: var(--accent-cyan) !important;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 210, 255, .3);
}

.btn-buy:hover {
    background: transparent !important;
    border: 1px solid var(--accent-cyan) !important;
    color: var(--accent-cyan) !important;
}

.status-strip {
    width: 4px;
    background: #10b981;
    position: absolute;
    right: 0;
    top: 10px;
    bottom: 10px;
    border-radius: 4px 0 0 4px;
}

#gRedirectTableBtnsDiv {
    position: -webkit-sticky;
    position: sticky;
    top: 73px;
    z-index: 99;
}

.filter-dashboard {
    background: #080a0e;
    border: 1px solid #1f293a;
    border-top: 2px solid var(--neon-green);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif, system-ui;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    width: 100%;
    box-sizing: border-box;
    transition: top .3s;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.filter-col {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
    box-sizing: border-box;
    position: relative;
}

@media (min-width:992px) {
    .filter-col:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 10px;
        bottom: 0;
        width: 1px;
        background: #1f293a
    }
}

.filter-group-title {
    color: var(--neon-green);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 5px;
    display: block;
    font-weight: 500;
}

.filter-input,
.filter-select {
    background-color: #0d121c;
    border: 1px solid #1f293a;
    color: #fff;
    width: 100%;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: .9rem;
    outline: none;
    height: 38px;
    transition: .3s;
}

.filter-input:focus,
.filter-select:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 5px rgba(57, 255, 20, .2);
}

.filter-btn-group {
    display: flex;
    border: 1px solid #1f293a;
    border-radius: 4px;
    overflow: hidden;
    background: #0d121c;
}

.filter-btn {
    background: transparent;
    border: none;
    border-right: 1px solid #1f293a;
    color: #7e8b9a;
    padding: 7px 5px;
    cursor: pointer;
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}

.filter-btn:last-child {
    border-right: none;
}

.filter-btn.active {
    color: var(--neon-green);
    background: rgba(57, 255, 20, .1);
    border: 1px solid var(--neon-green);
    margin: -1px;
    position: relative;
    z-index: 1;
    border-radius: 3px;
}

.filter-btn:hover {
    color: #fff;
}

.range-wrapper {
    position: relative;
    padding: 5px 0;
}

.range-header {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    margin-bottom: 2px;
}

.range-val {
    color: var(--neon-green);
    font-weight: bold;
    font-size: 17px;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #1f293a;
    border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--neon-green);
    -webkit-appearance: none;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(57, 255, 20, .6);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    background: #1f293a;
    border-radius: 2px;
}

input[type=range]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border: none;
    border-radius: 50%;
    background: var(--neon-green);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(57, 255, 20, .6);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: .7rem;
    color: #7e8b9a;
    margin-top: 4px;
}

.reset-row {
    width: 100%;
    margin-top: 20px;
    text-align: right;
    border-top: 1px solid #1f293a;
    padding-top: 15px;
}

.reset-btn {
    background: transparent;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    padding: 6px 20px;
    border-radius: 4px;
    font-size: .8rem;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    transition: .3s;
}

.reset-btn:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 15px rgba(57, 255, 20, .4);
}

.range-labels span {
    font-size: 15px;
}

@media (max-width:991px) {
    #gRedirectTableBtnsDiv {
        position: relative !important;
        top: auto !important;
        z-index: 1;
        margin-bottom: 20px
    }

    .filter-dashboard {
        position: relative;
        top: 0;
        z-index: 1
    }

    .filter-col {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 20px
    }

    .server-card {
        flex-direction: column;
        align-items: stretch;
        height: auto
    }

    .server-img-container {
        position: relative;
        width: 100%;
        height: 130px;
        -webkit-mask-image: linear-gradient(to bottom black 20%, transparent 100%)
    }

    .server-details {
        width: 100%;
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid var(--border-color)
    }

    .server-specs {
        background: rgba(255, 255, 255, .05)
    }

    .gpu-box {
        width: 100%;
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        background: rgba(0, 0, 0, .2);
        position: relative;
        z-index: 10
    }

    .nvidia-logo {
        margin-bottom: 0;
        height: 25px
    }

    .gpu-options-tooltip-wrapper {
        display: block;
        margin-top: 10px;
        position: relative
    }

    .options-tooltip-content {
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        width: 90vw;
        max-width: 350px
    }

    .options-tooltip-content::before {
        bottom: 100%;
        top: auto;
        border-color: transparent transparent var(--tooltip-bg) transparent
    }

    .stats-container {
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid var(--border-color)
    }

    .price-action-container {
        width: 100%;
        border-left: none;
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 20px
    }

    .status-strip {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 3px
    }
}

@media (max-width:576px) {
    .filter-col {
        flex: 0 0 100%;
        max-width: 100%
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f1923;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--main);
    border-radius: 10px;
    border: 2px solid #0f1923
}

/* Location Box Design */
.location-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    min-width: 130px; /* පෙට්ටියේ පළල */
    height: 100%;
    border-left: 1px solid var(--border-color); /* වම් පැත්තේ ඉර */
    z-index: 1;
}

/* Flag Image Style (Circle) */
.flag-img {
    width: 35px;
    height: 35px;
    border-radius: 50%; /* රවුමක් ලෙස පෙන්වීමට */
    object-fit: cover;
    margin-bottom: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid #1f293a; /* ෆ්ලෑග් එක වටේට පොඩි border එකක් */
}

/* Location Name Text (Green Color) */
.location-text {
    color: #4caf50; /* Screenshot එකේ තියෙන කොළ පාට */
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: capitalize;
    text-align: center;
    line-height: 1.2;
}



/* Searchable Dropdown CSS */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0d121c; /* ඔබේ තීම් එකට ගැලපෙන පාට */
    border: 1px solid #1f293a;
    border-top: none;
    z-index: 999;
    max-height: 200px;
    overflow-y: auto;
    display: none; /* මුලින් හංගලා තියෙන්නේ */
    border-radius: 0 0 4px 4px;
}

.custom-option {
    padding: 8px 12px;
    cursor: pointer;
    color: #fff;
    transition: 0.2s;
}

.custom-option:hover {
    background-color: #39ff14; /* Hover කලහම එන පාට (Neon Green) */
    color: #000;
}

.custom-option.hidden {
    display: none;
}

/* Tablet & Mobile Layout (Max Width: 991px) */
@media (max-width: 1110px) {
    #gRedirectTableBtnsDiv {
        position: relative !important;
        top: auto !important;
        z-index: 1;
        margin-bottom: 20px;
    }

    .filter-dashboard {
        position: relative;
        top: 0;
        z-index: 1;
    }

    .filter-col {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 20px;
    }

    /* Card Responsive Fixes */
    .server-card {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        overflow: hidden; /* ඇතුලත දේවල් එලියට පනින එක නවත්තන්න */
    }

    .server-img-container {
       display: none;
    }

    .server-details {
        min-width: unset; /* මේක තමා ප්‍රධානම වෙනස! (565px අයින් කරා) */
        width: 100%;
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .server-specs {
        background: rgba(255, 255, 255, .05);
        display: block;
        width: fit-content;
        margin: 10px auto 0;
    }

    .gpu-box {
        width: 100%;
        min-height: auto;
        flex-direction: column;
        padding: 15px 20px;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        background: rgba(0, 0, 0, .2);
        position: relative;
        z-index: 10;
    }

    .nvidia-logo {
        margin-bottom: 10px;
        height: 30px;
    }

    .gpu-options-tooltip-wrapper {
        display: block;
        margin-top: 10px;
        position: relative;
    }

    .options-tooltip-content {
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        width: 90vw;
        max-width: 350px;
    }

    .options-tooltip-content::before {
        bottom: 100%;
        top: auto;
        border-color: transparent transparent var(--tooltip-bg) transparent;
    }

    .stats-container {
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
    }

    .location-box {
        width: 100%;
        min-width: unset;
        flex-direction: row;
        padding: 15px;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        background: rgba(0, 0, 0, 0.2);
        gap: 15px;
    }

    .flag-img {
        margin-bottom: 0;
        width: 30px;
        height: 30px;
    }

    .price-action-container {
        width: 100%;
        border-left: none;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

    .status-strip {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 4px;
        border-radius: 0 0 8px 8px; /* යටින් border radius එක */
    }
}

/* Small Mobile Phones (Max Width: 576px) */
@media (max-width: 576px) {
    .filter-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .server-title {
        font-size: 1.25rem;
    }

    .price-action-container {
        flex-direction: column; 
        gap: 15px;
        text-align: center;
    }

    .price-text {
        font-size: 2rem; 
    }

    .btn-buy {
        width: 100%; 
        padding: 10px 20px;
    }
}

@media (max-width: 1500px) and (min-width: 1111px) {
    .server-card {
        overflow: hidden; 
    }

    .server-details {
        min-width: unset;
        flex: 1 1 auto; 
        padding: 15px 15px 15px 220px; 
    }

    .gpu-box {
        width: 200px;
        padding: 10px;
    }

    .price-action-container {
        width: 200px; 
        padding: 10px;
    }

    .location-box {
        min-width: 100px; 
        padding: 0 10px;
    }

    .stats-container {
        padding: 0 10px;
    }
    
    .stat-box {
        padding: 0 5px;
    }
}