/* Custom CSS for ServerCatalog - Listee Theme Customization */

/* ===================================
   0. Fix Missing Images
   =================================== */
/* Remove decorative breadcrumb backgrounds that are missing */
.breadcrumb-bar:before,
.breadcrumb-bar:after {
    display: none !important;
}

/* Hero illustration styles */
.banner-imgs {
    display: block !important;
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    padding: 20px;
}

.banner-imgs img,
.banner-imgs .hero-illustration {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    filter: drop-shadow(0 10px 30px rgba(193, 0, 55, 0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 991.98px) {
    .banner-imgs {
        display: block !important;
        margin-top: 30px;
        text-align: center;
    }
    .banner-imgs img {
        max-width: 400px !important;
    }
}

/* ===================================
   0.5. Home Page Search Form Fix
   =================================== */
.search-box .search-form {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-box .search-input {
    flex: 1;
    min-width: 200px;
}

.search-box .search-input .form-group {
    position: relative;
    margin: 0;
}

.search-box .search-input .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-box .search-input input {
    padding-left: 45px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    height: 50px;
}

.search-box .search-category {
    min-width: 150px;
}

.search-box .search-category select {
    height: 50px;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
}

.search-box .search-btn {
    height: 50px;
    padding: 0 30px;
    border-radius: 8px !important;
    white-space: nowrap;
}

.search-box .search-btn i {
    margin-right: 8px;
}

/* Popular tags */
.search-list {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.search-list a {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    color: #374b5c;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e5e5e5;
}

.search-list a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ===================================
   1. Brand Colors Override
   =================================== */
/* Primary brand color - замена оранжевого на синий/фиолетовый */
:root {
    --primary-color: #c10037;
    --primary-hover: #9a002c;
    --secondary-color: #10b981;
}

/* Кнопки */
.btn-primary,
.search-btn {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.search-btn:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

/* Иконки категорий */
.category-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
    width: 70px !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    margin: 0 auto 20px !important;
}

.category-icon i {
    font-size: 32px !important;
    color: #fff !important;
}

/* Category icons with images */
.category-icon-img {
    background: transparent !important;
    width: 200px !important;
    height: 200px !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.category-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    background: unset !important;
    background-color: unset !important;
}

/* Убираем зеленый фон у изображений в активной категории */
/* Используем более специфичный селектор для перекрытия правила .category-widget.active .category-icon */
.category-widget.active .category-icon.category-icon-img {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.category-widget.active .category-icon-img {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.category-widget.active .category-icon-img img {
    background: unset !important;
    background-color: unset !important;
    background-image: none !important;
}

/* Иконки счётчиков */
.counter-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
    width: 80px !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    margin: 0 auto 20px !important;
}

.counter-icon i {
    font-size: 36px !important;
    color: #fff !important;
}

/* Активная категория */
.category-widget.active .category-icon {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%) !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3) !important;
}

/* Исключение для иконок с изображениями - убираем зеленый фон */
.category-widget.active .category-icon.category-icon-img {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Убираем все оранжевые оттенки */
.btn-viewall,
.btn-orange,
.search-btn {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn-viewall:hover,
.btn-orange:hover,
.search-btn:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

/* Ссылки и акценты */
a.text-primary,
.text-primary {
    color: var(--primary-color) !important;
}

/* Hero заголовок */
.section-search h1 span {
    color: var(--primary-color) !important;
}

/* Категории - улучшаем позиционирование */
.category-widget {
    text-align: center !important;
    padding: 30px 20px !important;
    transition: all 0.3s ease !important;
}

.category-widget:hover {
    transform: translateY(-5px) !important;
    box-shadow: none !important;
    border: none !important;
    background: #fff !important;
}

.category-widget:hover::before,
.category-widget:hover::after,
.category-widget:hover .overlay {
    display: none !important;
    opacity: 0 !important;
    background: transparent !important;
}

.category-widget:hover .category-name h5 {
    color: #1f2937 !important;
}

.category-widget:hover .category-name p {
    color: #4b5563 !important;
}

.category-widget:hover .listing-count {
    color: #c10037 !important;
}

/* Override listee theme category-links hover */
.category-section .category-links:hover {
    background: #fff !important;
    border: 3px solid #c10037 !important;
    box-shadow: 0 8px 25px rgba(193, 0, 55, 0.2) !important;
}

.category-section .category-links:hover h5 {
    color: #1f2937 !important;
}

.category-section .category-links:hover span {
    color: #4b5563 !important;
}

.category-section .category-links:hover p {
    color: #4b5563 !important;
}

.category-section .category-links:hover .listing-count {
    color: #c10037 !important;
}

/* Отступы между секциями на главной */
.category-section {
    padding: 80px 0 !important;
    margin-top: 40px !important;
}

.top-offers-section,
section.listing-section {
    padding: 80px 0 !important;
}

.providers-section {
    padding: 80px 0 !important;
    margin-bottom: 40px !important;
}

.counter-section {
    padding: 60px 0 80px !important;
    margin-top: 40px !important;
}

/* Счётчики - улучшаем выравнивание */
.feature-counter-box {
    text-align: center !important;
    padding: 30px 20px !important;
}

.feature-counter-box h3 {
    font-size: 48px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 20px 0 10px !important;
}

.feature-counter-box p {
    font-size: 16px !important;
    color: #6b7280 !important;
    margin: 0 !important;
}

/* ===================================
   2. Server Calculator
   =================================== */
.server-calculator-section {
    padding: 110px 0 30px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
    margin-top: 0;
}

.listing-section {
    padding-top: 30px !important;
}

/* Pagination */
.blog-pagination {
    margin-top: 30px !important;
    padding-top: 20px !important;
}

.blog-pagination .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-pagination .page-item.previtem .page-link,
.blog-pagination .page-item.nextitem .page-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374b5c;
}

.blog-pagination .page-item.previtem .page-link:hover,
.blog-pagination .page-item.nextitem .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.blog-pagination .page-item.previtem .page-link.disabled,
.blog-pagination .page-item.nextitem .page-link.disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
}

.blog-pagination .page-item.previtem .page-link i,
.blog-pagination .page-item.nextitem .page-link i {
    font-size: 12px;
}

.calculator-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.calculator-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.calculator-title i {
    color: var(--primary-color);
}

.calc-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 8px;
}

.calc-label span {
    font-weight: 700;
    color: var(--primary-color);
}

.calc-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #fff;
    color: #374b5c;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(193, 0, 55, 0.1);
    outline: none;
}

.calc-select:hover {
    border-color: var(--primary-color);
}

.form-range {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(193, 0, 55, 0.1);
}

.form-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.form-range::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(193, 0, 55, 0.1);
}

/* Range Slider Container - двухползунковые слайдеры */
.range-slider-container {
    position: relative;
    width: 100%;
    height: 40px;
    padding: 5px 0;
    touch-action: none; /* Предотвращает скролл при касании слайдера */
    user-select: none;
}

.range-slider {
    position: absolute;
    width: 100%;
    height: 20px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
}

/* Увеличиваем область трека для лучшей кликабельности */
.range-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: transparent;
    border-radius: 3px;
}

.range-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    background: transparent;
    border-radius: 3px;
}

.range-track {
    position: absolute;
    width: calc(100% - 22px); /* Учитываем размер ползунка (22px) */
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    top: 50%;
    left: 11px; /* Смещаем на половину размера ползунка */
    transform: translateY(-50%);
    z-index: 1;
}

.range-selected {
    position: absolute;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #9a002c 100%);
    border-radius: 3px;
    left: 11px; /* Смещаем на половину размера ползунка */
    width: calc(100% - 22px); /* Учитываем размер ползунка */
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: grab;
    pointer-events: all;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.range-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.2);
    box-shadow: 0 0 0 10px rgba(193, 0, 55, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(193, 0, 55, 0.1), 0 2px 8px rgba(0, 0, 0, 0.25);
}

.range-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: grab;
    pointer-events: all;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.range-slider::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(1.2);
}

.range-slider.range-min {
    z-index: 3;
}

.range-slider.range-max {
    z-index: 4;
}

/* При активном перетаскивании поднимаем z-index */
.range-slider:active {
    z-index: 10 !important;
}

.range-slider:focus {
    z-index: 10 !important;
    outline: none;
}

.calculator-result {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #9a002c 100%);
    border-radius: 12px;
    color: #ffffff;
}

.result-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.result-price {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.result-price-range {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px;
}

.result-price-range #calculatedPriceMin,
.result-price-range #calculatedPriceMax {
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.result-price .period,
.result-price-range .period {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
}

.calculator-result .btn {
    background: #ffffff !important;
    color: var(--primary-color) !important;
    border: none !important;
    font-weight: 600;
}

.calculator-result .btn:hover {
    background: #f3f4f6 !important;
    transform: translateY(-2px);
}

/* ===================================
   3. ServerCatalog Specific Styles
   =================================== */

/* Fix sorting and view toggle alignment */
.sort-result {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.sorting-select {
    flex: 0 0 auto;
}

.grid-listview {
    flex: 0 0 auto;
    margin: 0 !important;
}

.grid-listview ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.showing-result-head {
    margin-bottom: 25px;
}

/* Server Card Badge */
/* Server badge styles moved below */

/* Server Card Price */
.server-card-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 15px 0;
}

.server-card-price .currency {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.server-card-price .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.server-card-price .period {
    font-size: 14px;
    color: var(--text-light);
}

/* Server Card Specs */
.server-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin: 8px 0;
}

.server-spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-color);
}

.server-spec-item i {
    color: var(--primary-color);
    font-size: 16px;
}

/* Location Tags */
.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 0 0;
}

.location-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1;
    transition: all 0.3s ease;
}

.location-tag .fi {
    font-size: 20px;
    width: 28px;
    height: 20px;
    display: inline-block;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.location-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
}

/* Price and Action Buttons */
.serv-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.server-card-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-weight: 600;
}

.server-card-price .currency {
    font-size: 18px;
    color: var(--text-color);
}

.server-card-price .price {
    font-size: 24px;
    color: var(--primary-color);
}

.server-card-price .period {
    font-size: 14px;
    color: var(--text-light);
}

/* Service Action Buttons */
.service-action {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.service-action .btn-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.service-action .btn-action i {
    font-size: 12px;
}

.service-action .btn-action span {
    line-height: 1;
}

/* Details Button - Gray/Outline */
.btn-details {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-details:hover {
    background: var(--bg-light);
    border-color: var(--text-color);
    color: var(--text-color);
}

/* Compare Button - Orange/Yellow */
.btn-compare {
    background: #f59e0b;
    border: 1px solid #f59e0b;
    color: #fff;
}

.btn-compare:hover {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}

.btn-compare.active {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

/* Order Button - Primary/Purple */
.btn-order {
    background-color: #c10037 !important;
    border: 1px solid #c10037 !important;
    box-shadow: inset 0 0 0 #ffffff;
    color: #ffffff !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    padding: 8px 14px !important;
    text-align: center;
    transition: all 0.5s;
}

.btn-order:hover {
    background-color: #ffffff !important;
    border: 1px solid #374b5c !important;
    box-shadow: inset 0 70px 0 0 #ffffff;
    color: #374b5c !important;
}

/* Favorite Button */
.btn-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-favorite:hover {
    background: #fff;
    color: var(--danger-color);
    transform: scale(1.1);
}

.btn-favorite.active {
    color: var(--danger-color);
}

/* Server Badge (Featured/Popular) */
.server-badge {
    position: absolute !important;
    top: 15px !important;
    right: 55px !important;
    left: auto !important;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: var(--secondary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 20;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    width: auto !important;
    max-width: fit-content !important;
}

.server-badge.featured {
    background: linear-gradient(135deg, #c10037 0%, #9a002c 100%) !important;
}

.server-badge i {
    margin-right: 0;
    font-size: 11px;
}

/* ===================================
   Server Cards Grid & Spacing
   =================================== */
#serverGrid {
    display: flex !important;
    flex-wrap: wrap !important;
    row-gap: 20px !important;
    column-gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#serverGrid > .col-lg-6 {
    flex: 0 0 calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
    width: calc(50% - 10px) !important;
    padding: 0 !important;
    margin: 0 !important;
}

.service-widget {
    min-height: 380px !important;
    height: auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
}

.service-widget .service-img {
    flex-shrink: 0;
    min-height: 70px;
    max-height: 70px;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
    position: relative;
}

.service-widget .provider-header {
    width: 100% !important;
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
    gap: 12px;
    display: flex !important;
    align-items: center !important;
    padding: 10px 15px !important;
    box-sizing: border-box !important;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.service-widget .provider-header .provider-logo {
    width: 40px;
    height: 40px;
}

.service-widget .provider-header .provider-name {
    font-size: 13px;
}

.service-widget .service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding: 10px 15px 15px;
}

/* Location tags - fixed height for consistency */
.location-tags {
    overflow: visible;
    flex-wrap: wrap !important;
    margin-bottom: 0 !important;
    min-height: 32px;
}

.service-widget .serv-info {
    margin-top: 8px !important;
    flex-shrink: 0;
}

/* ===================================
   3. Filter Sidebar
   =================================== */
.filter-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h6 {
    font-size: 14px;
    font-weight: 600;
    color: #374b5c;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hide submit button for instant filtering, show reset button */
#filterForm button[type="submit"] {
    display: none !important;
}

/* Reset button styling */
#filterForm .btn-outline-secondary {
    display: block !important;
    border: 2px solid #374b5c;
    color: #374b5c;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

#filterForm .btn-outline-secondary:hover {
    background: #374b5c;
    color: #fff;
}

.filter-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Loading indicator for filters */
.filter-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(193, 0, 55, 0.9);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 9999;
    display: none;
}

.filter-loading.active {
    display: block;
}

/* Smooth transition for filter elements */
#filterForm input[type="checkbox"],
#filterForm select {
    cursor: pointer;
}

.filter-group .form-check {
    margin-bottom: 10px;
}

.filter-group .form-check-label {
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
}

.filter-group .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===================================
   4. Breadcrumbs
   =================================== */
.breadcrumb-section {
    background: var(--bg-light);
    padding: 15px 0;
}

.breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-item {
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-light);
    padding: 0 8px;
}

/* ===================================
   5. Comparison Bar (Floating)
   =================================== */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    padding: 15px 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.compare-bar.active {
    transform: translateY(0);
}

.compare-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.compare-items {
    display: flex;
    gap: 15px;
    flex: 1;
    overflow-x: auto;
}

.compare-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--bg-light);
    border-radius: 6px;
    white-space: nowrap;
}

.compare-item .remove-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.compare-item .remove-btn:hover {
    color: var(--danger-color);
}

.compare-actions {
    display: flex;
    gap: 10px;
}

/* ===================================
   6. Rating Stars
   =================================== */
.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.rating-stars i {
    font-size: 14px;
    color: #FFD700;
}

.rating-stars i.far {
    color: var(--border-color);
}

.rating-count {
    margin-left: 6px;
    font-size: 13px;
    color: var(--text-light);
}

/* ===================================
   7. Empty State
   =================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-light);
    opacity: 0.5;
    margin-bottom: 20px;
}

.empty-state h4 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 25px;
}

/* ===================================
   8. Loading State
   =================================== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* ===================================
   9. Grid/List View Toggle
   =================================== */
.view-toggle .btn {
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
}

.view-toggle .btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ===================================
   10. Responsive Adjustments
   =================================== */
@media (max-width: 991px) {
    .server-specs {
        grid-template-columns: 1fr;
    }
    
    .compare-bar-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .compare-actions {
        width: 100%;
    }
    
    .compare-actions .btn {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .server-card-price .price {
        font-size: 24px;
    }
    
    .location-tags {
        font-size: 11px;
    }
}

/* ===================================
   11. Animations
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-in-delay-1 {
    animation: fadeIn 0.5s ease 0.1s both;
}

.fade-in-delay-2 {
    animation: fadeIn 0.5s ease 0.2s both;
}

.fade-in-delay-3 {
    animation: fadeIn 0.5s ease 0.3s both;
}

/* ===================================
   Compare Floating Box
   =================================== */
.compare-floating-box {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #9a002c 100%);
    border-radius: 50px;
    padding: 12px 24px;
    box-shadow: 0 8px 32px rgba(193, 0, 55, 0.35);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.compare-floating-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.compare-floating-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 15px;
}

.compare-floating-info i {
    font-size: 20px;
}

.compare-floating-info strong {
    font-weight: 700;
    font-size: 18px;
}

.compare-floating-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.compare-floating-actions .btn-primary {
    background: #fff !important;
    color: var(--primary-color) !important;
    border: none !important;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.compare-floating-actions .btn-primary:hover {
    background: #f0f0f0 !important;
    transform: scale(1.05);
}

.compare-floating-actions .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border: none !important;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.compare-floating-actions .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.35) !important;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .compare-floating-box {
        bottom: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        border-radius: 16px;
        padding: 10px 16px;
    }
    
    .compare-floating-content {
        width: 100%;
        justify-content: space-between;
    }
    
    .compare-floating-info {
        font-size: 13px;
    }
    
    .compare-floating-info i {
        font-size: 16px;
    }
}

/* ===================================
   Compact Breadcrumb
   =================================== */
.breadcrumb-compact {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumb-compact .breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-compact .breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-compact .breadcrumb-item.active {
    color: #374151;
    font-weight: 500;
}

.breadcrumb-compact .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #9ca3af;
}

/* Hide ugly breadcrumb-bar globally */
.breadcrumb-bar {
    display: none !important;
}

/* ===================================
   Server Detail Page
   =================================== */
.server-detail-header {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.server-detail-logo {
    flex-shrink: 0;
}

.server-detail-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    background: #f8f9fa;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.server-detail-logo .logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), #9a002c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}

.server-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.server-detail-provider {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 12px;
}

.server-detail-provider a {
    color: var(--primary-color);
    font-weight: 500;
}

.server-detail-provider a:hover {
    text-decoration: underline !important;
}

.provider-rating-inline {
    font-size: 14px;
}

.provider-rating-inline i {
    font-size: 12px;
}

.server-quick-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.server-quick-specs span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
}

.server-quick-specs span i {
    color: var(--primary-color);
}

.server-detail-price {
    text-align: right;
}

.server-detail-price .price-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.server-detail-price .price-period {
    font-size: 14px;
    color: #6b7280;
}

/* Service Tabs */
.service-tab {
    margin-bottom: 20px;
}

.service-tabs {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.service-tabs .nav-item {
    margin: 0;
}

.service-tabs .nav-link {
    border-radius: 8px;
    padding: 12px 24px;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.service-tabs .nav-link:hover {
    background: #f3f4f6;
}

.service-tabs .nav-link.active {
    background: var(--primary-color);
    color: #fff;
}

/* Service Wrap - Tab Content */
.service-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.service-wrap h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.service-wrap h5 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

/* Spec Box */
.spec-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.spec-box:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.spec-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), #9a002c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.spec-content h6 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.spec-content p {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
}

/* Sidebar */
.service-book {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.price-widget {
    text-align: center;
    margin-bottom: 20px;
}

.price-widget h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.price-widget span {
    font-size: 16px;
    color: #6b7280;
}

/* Similar Servers */
.similar-server-item h6 a {
    color: #1f2937;
    font-weight: 600;
}

.similar-server-item h6 a:hover {
    color: var(--primary-color);
}

/* Pricing Cards */
.pricing-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.pricing-card.featured {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #22c55e;
}

.price-display .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-display .period {
    font-size: 14px;
    color: #6b7280;
}

/* Service List */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

/* Review Widget */
.review-widget {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.review-avatar .avatar-text {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #9a002c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    color: #9ca3af;
}

.empty-state i {
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .server-detail-header .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .server-detail-logo {
        margin-bottom: 16px;
    }
    
    .server-detail-title {
        font-size: 22px;
    }
    
    .server-quick-specs {
        justify-content: center;
    }
    
    .server-detail-price {
        text-align: center;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #e5e7eb;
    }
}

/* ===================================
   SI Value Score Widget (Sidebar)
   =================================== */
.service-book .price-widget {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 16px !important;
    gap: 12px;
}

.service-book .si-score-widget {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--score-color, #22c55e) 0%, color-mix(in srgb, var(--score-color, #22c55e) 80%, #000) 100%) !important;
    color: #fff !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    min-width: 70px !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
}

.service-book .si-score-widget .si-score-value {
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    color: #fff !important;
}

.service-book .si-score-widget .si-score-label {
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    opacity: 0.9 !important;
    color: #fff !important;
}

/* SI Score Card (Explanation) */
.si-score-card {
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e5e7eb !important;
}

.si-score-card .si-score-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 2px solid #f3f4f6 !important;
}

.si-score-card .si-brand {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    font-size: 16px !important;
}

.si-score-card .si-logo-sm {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: #fff !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3) !important;
}

.si-score-card .si-score-big {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    min-width: 80px !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.si-score-card .si-score-explanation {
    font-size: 14px !important;
    color: #374151 !important;
}

.si-score-card .si-score-explanation p {
    margin-bottom: 8px !important;
}

.si-score-card .si-score-explanation p strong {
    color: #1f2937 !important;
    font-size: 15px !important;
}

.si-score-card .si-formula {
    list-style: none !important;
    padding: 12px !important;
    margin: 12px 0 !important;
    background: #f9fafb !important;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
}

.si-score-card .si-formula li {
    padding: 8px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #4b5563 !important;
    font-size: 13px !important;
    border-bottom: 1px dashed #e5e7eb !important;
}

.si-score-card .si-formula li:last-child {
    border-bottom: none !important;
}

.si-score-card .si-formula li i {
    width: 20px !important;
    font-size: 14px !important;
}

.si-score-card .si-formula li span {
    margin-left: auto !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    background: #e5e7eb !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
}

.si-score-card .si-score-scale {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 16px !important;
    border: 1px solid #e5e7eb !important;
}

.si-score-card .scale-bar {
    display: flex !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    height: 28px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.si-score-card .scale-segment {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.si-score-card .scale-labels {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 10px !important;
    font-size: 12px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

.si-score-card .scale-labels span:first-child {
    color: #ef4444 !important;
}

.si-score-card .scale-labels span:last-child {
    color: #22c55e !important;
}

/* ========================================
   Currency Selector Styles
======================================== */
.currency-selector {
    position: relative;
}

.currency-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px !important;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 85px;
    height: 44px;
    box-sizing: border-box;
}

.currency-toggle:hover {
    background: #e5e7eb;
}

.currency-flag {
    font-size: 18px;
    line-height: 1;
}

.currency-code {
    font-weight: 600;
    font-size: 13px;
    color: #374151;
}

.currency-toggle i {
    font-size: 10px;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.currency-selector:hover .currency-toggle i {
    transform: rotate(180deg);
}

.currency-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    list-style: none;
}

.currency-selector:hover .currency-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-dropdown li {
    list-style: none;
}

.currency-dropdown li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s ease;
}

.currency-dropdown li a:hover {
    background: #f9fafb;
}

.currency-dropdown li.active a {
    background: #fef2f2;
    color: #dc2626;
}

.currency-dropdown .flag {
    font-size: 20px;
}

.currency-dropdown .name {
    flex: 1;
    font-size: 14px;
}

.currency-dropdown .symbol {
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
}

/* ========================================
   Footer Styles
======================================== */

.footer .footer-logo img {
    max-height: 40px;
    width: auto;
}

.footer .footer-contact-info {
    margin-top: 15px;
}

.footer .footer-contact-info a {
    color: #8c9097;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer .footer-contact-info a:hover {
    color: #fff;
}

.footer .footer-contact-info i {
    font-size: 16px;
}

.footer .footer-legal-info p {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer .footer-top {
    padding-bottom: 40px;
}

/* ========================================
   Cookie Consent Bar
======================================== */

.cookie-consent-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #374B5C 0%, #2c3e50 100%);
    color: #fff;
    padding: 15px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    font-size: 14px;
    flex: 1;
}

.cookie-consent-text a {
    color: #fff;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #C10037;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent-buttons .btn-light {
    background: #fff;
    color: #374B5C;
    border: none;
    font-weight: 600;
}

.cookie-consent-buttons .btn-light:hover {
    background: #C10037;
    color: #fff;
}

.cookie-consent-buttons .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
}

.cookie-consent-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

@media (max-width: 576px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   Profile Dropdown Menu
   =================================== */
.profile-dropdown {
    position: relative;
}

.profile-toggle {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.profile-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
    margin-left: 2px;
}

.profile-dropdown:hover .profile-arrow,
.profile-dropdown.active .profile-arrow {
    transform: rotate(180deg);
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1000;
    list-style: none;
}

.profile-dropdown:hover .profile-menu,
.profile-dropdown.active .profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

.profile-menu li {
    margin: 0;
}

.profile-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #374B5C;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.profile-menu li a:hover {
    background: #f8f9fa;
    color: #C10037;
}

.profile-menu li a i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
}

.profile-menu li a:hover i {
    color: #C10037;
}

.profile-menu li.divider {
    height: 1px;
    background: #e9ecef;
    margin: 6px 0;
}

.profile-menu .logout-link {
    color: #dc3545;
}

.profile-menu .logout-link i {
    color: #dc3545;
}

.profile-menu .logout-link:hover {
    background: #fff5f5;
    color: #dc3545;
}

/* ===================================
   Account Section - Unified Design
   =================================== */
.account-section {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: 100vh;
    background: #f8f9fa;
}

.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 991px) {
    .account-layout {
        grid-template-columns: 1fr;
    }
}

/* Account Sidebar */
.account-sidebar {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.account-user-card {
    padding: 30px 24px;
    text-align: center;
    background: linear-gradient(135deg, #C10037 0%, #8b0026 100%);
    color: #fff;
}

.account-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2rem;
    font-weight: 700;
    overflow: hidden;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-username {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.account-email {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
}

/* Account Navigation */
.account-nav {
    padding: 16px 0;
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: #374B5C;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.account-nav-item:hover {
    background: #f8f9fa;
    color: #C10037;
}

.account-nav-item.active {
    background: rgba(193, 0, 55, 0.08);
    color: #C10037;
}

.account-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: #C10037;
    border-radius: 0 4px 4px 0;
}

.account-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.account-nav-badge {
    margin-left: auto;
    background: #C10037;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.account-nav-divider {
    height: 1px;
    background: #e9ecef;
    margin: 12px 24px;
}

.account-nav-item.logout {
    color: #dc3545;
}

.account-nav-item.logout:hover {
    background: #fff5f5;
}

/* Account Main Content */
.account-main {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 32px;
}

.account-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e9ecef;
}

.account-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-header h1 i {
    color: #C10037;
}

.account-header p {
    color: #6c757d;
    margin: 0;
}

/* Stats Cards */
.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    color: #fff;
}

.stat-primary {
    background: linear-gradient(135deg, #C10037 0%, #8b0026 100%);
}

.stat-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Quick Actions */
.account-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: #374B5C;
    transition: all 0.2s ease;
}

.quick-action-card:hover {
    background: rgba(193, 0, 55, 0.08);
    color: #C10037;
    transform: translateY(-2px);
}

.quick-action-card i {
    font-size: 1.5rem;
}

.quick-action-card span {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Section Cards */
.account-section-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

.section-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #374B5C;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-card-header h3 i {
    color: #C10037;
}

.section-more-link {
    font-size: 0.875rem;
    color: #C10037;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-more-link:hover {
    text-decoration: underline;
}

.section-card-body {
    padding: 0;
}

/* Favorites & History Lists */
.favorites-list,
.history-list {
    display: flex;
    flex-direction: column;
}

.favorites-item,
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s ease;
}

.favorites-item:last-child,
.history-item:last-child {
    border-bottom: none;
}

.favorites-item:hover,
.history-item:hover {
    background: #fff;
}

.favorites-item-info,
.history-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.favorites-item-name,
.history-item-name {
    font-weight: 600;
    color: #1f2937;
}

.favorites-item-company,
.history-item-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.history-item-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

.favorites-item-price,
.history-item-price {
    font-weight: 600;
    color: #C10037;
    white-space: nowrap;
}

/* Empty State */
.account-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.account-empty-state i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 20px;
}

.account-empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374B5C;
    margin: 0 0 8px;
}

.account-empty-state p {
    color: #6c757d;
    margin: 0 0 24px;
}

/* Form Card */
.account-form-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.form-section {
    padding: 24px;
}

.form-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374B5C;
    margin: 0 0 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374B5C;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #C10037;
    box-shadow: 0 0 0 3px rgba(193, 0, 55, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Avatar Upload */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-preview,
.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #9ca3af;
}

.avatar-upload input[type="file"] {
    display: none;
}

.avatar-upload-btn {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374B5C;
    cursor: pointer;
    transition: all 0.2s ease;
}

.avatar-upload-btn:hover {
    background: #f8f9fa;
    border-color: #C10037;
    color: #C10037;
}

/* Custom Checkbox */
.form-check-group {
    margin-bottom: 12px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #374B5C;
}

.custom-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #C10037;
}

/* Form Actions */
.form-actions {
    padding: 20px 24px;
    background: #fff;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}

/* Servers Grid for Favorites */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.server-grid-item {
    display: flex;
}

.server-grid-item > * {
    width: 100%;
}
