/* ========================================
   VPSGrab - 
   ======================================== */

/* CSS */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s ease;
}

/*  */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-50);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/*  */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* VPS */
.vps-list-layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.filter-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/*  */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

/* ========================================
   
   ======================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
}

.logo:hover {
    color: var(--gray-800);
}

.logo-icon {
    color: var(--primary-color);
    font-size: 28px;
}

.logo .highlight {
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--gray-700);
    font-weight: 500;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav .dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 10px 0;
}

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

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--gray-600);
}

.dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 15px;
}

.search-btn, .mobile-menu-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--gray-600);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.search-btn:hover, .mobile-menu-btn:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
}

.search-bar {
    display: none;
    padding: 15px 0;
    border-top: 1px solid var(--gray-200);
}

.search-bar.active {
    display: flex;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 15px;
    outline: none;
}

.search-bar input:focus {
    border-color: var(--primary-color);
}

.search-bar button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
}

/* ========================================
   
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    padding: 80px 0;
    color: var(--white);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 .highlight {
    color: var(--primary-light);
}

.hero p {
    font-size: 20px;
    color: var(--gray-400);
    margin-bottom: 40px;
}

.hero-search {
    display: flex;
    gap: 10px;
    background: var(--white);
    padding: 10px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.hero-search select {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--gray-700);
    outline: none;
    cursor: pointer;
}

.hero-search select:focus {
    border-color: var(--primary-color);
}

.hero-search .btn {
    white-space: nowrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    color: var(--gray-400);
    font-size: 14px;
}

/* ========================================
   
   ======================================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray-500);
    font-size: 18px;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   VPS
   ======================================== */
.vps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.vps-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.vps-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.vps-card.featured {
    border: 2px solid var(--primary-color);
}

.vps-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.vps-badge.hot {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
}

.vps-header {
    padding: 25px 20px 15px;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
}

.vps-logo {
    height: 50px;
    object-fit: contain;
    margin-bottom: 15px;
}

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

.stars {
    color: var(--accent-color);
}

.rating-score {
    font-weight: 700;
    color: var(--gray-800);
}

.rating-count {
    color: var(--gray-500);
    font-size: 13px;
}

.vps-body {
    padding: 20px;
    flex: 1;
}

.vps-body h3 {
    font-size: 18px;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.vps-desc {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.vps-features {
    margin-bottom: 20px;
}

.vps-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 14px;
    color: var(--gray-600);
}

.vps-features i {
    color: var(--secondary-color);
    font-size: 12px;
}

.vps-pricing {
    text-align: center;
    padding: 15px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.price-label {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 5px;
}

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

.price sup {
    font-size: 18px;
    top: -8px;
}

.price sub {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 400;
}

.vps-footer {
    padding: 20px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--gray-100);
}

.vps-footer .btn {
    flex: 1;
}

/* ========================================
   
   ======================================== */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.deal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.deal-discount {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--danger-color);
    color: var(--white);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 14px;
}

.deal-content {
    text-align: center;
    margin-bottom: 20px;
}

.deal-content img {
    height: 40px;
    margin-bottom: 15px;
}

.deal-content h4 {
    font-size: 18px;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.deal-content p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 15px;
}

.deal-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gray-100);
    padding: 10px 15px;
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.deal-code span {
    font-family: monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    color: var(--primary-color);
}

.deal-expire {
    font-size: 12px;
    color: var(--gray-400);
}

/* ========================================
   
   ======================================== */
.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 18px 20px;
    text-align: left;
}

.comparison-table thead {
    background: var(--gray-800);
    color: var(--white);
}

.comparison-table th {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.comparison-table tbody tr:hover {
    background: var(--gray-50);
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.provider-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.provider-cell img {
    height: 30px;
    width: auto;
}

.score {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

/* ========================================
   
   ======================================== */
.why-us {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--gray-50);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 32px;
    color: var(--white);
}

.feature-item h3 {
    font-size: 20px;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--gray-500);
    font-size: 15px;
    line-height: 1.6;
}

/* ========================================
   
   ======================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.post-content {
    padding: 25px;
}

.post-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-content h3 a {
    color: var(--gray-800);
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-content p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--gray-400);
}

.post-meta i {
    margin-right: 5px;
}

/* ========================================
   
   ======================================== */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 60px 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 32px;
    color: var(--white);
    margin-bottom: 10px;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    outline: none;
}

.newsletter-form .btn {
    background: var(--gray-900);
}

.newsletter-form .btn:hover {
    background: var(--gray-800);
}

.newsletter-note {
    display: block;
    margin-top: 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   
   ======================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-800);
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    color: var(--gray-400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 14px;
}

/* ========================================
   
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ========================================
   VPS
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    padding: 60px 0;
    color: var(--white);
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--gray-400);
}

.breadcrumb {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--gray-400);
}

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

.breadcrumb span {
    color: var(--gray-500);
}

.filter-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
}

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

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

.filter-group h4 {
    font-size: 16px;
    color: var(--gray-800);
    margin-bottom: 15px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
}

.filter-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.filter-option label {
    color: var(--gray-600);
    cursor: pointer;
    flex: 1;
}

.filter-option span {
    color: var(--gray-400);
    font-size: 13px;
}

.price-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-range input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
}

.list-layout {
    display: flex;
    gap: 30px;
}

.filter-col {
    width: 280px;
    flex-shrink: 0;
}

.list-col {
    flex: 1;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.list-count {
    color: var(--gray-500);
}

.sort-select {
    padding: 10px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
}

.vps-list-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 150px 1fr 200px;
    gap: 25px;
    align-items: center;
    transition: var(--transition);
}

.vps-list-item:hover {
    box-shadow: var(--shadow-lg);
}

.vps-list-logo {
    text-align: center;
}

.vps-list-logo img {
    max-height: 50px;
    margin-bottom: 10px;
}

.vps-list-info h3 {
    font-size: 20px;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.vps-list-info h3 a {
    color: inherit;
}

.vps-list-info h3 a:hover {
    color: var(--primary-color);
}

.vps-list-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 12px;
}

.vps-list-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray-600);
}

.vps-list-features i {
    color: var(--primary-color);
}

.vps-list-action {
    text-align: center;
}

.vps-list-action .price {
    font-size: 28px;
    display: block;
    margin-bottom: 15px;
}

/* ========================================
   VPS
   ======================================== */
.detail-header {
    background: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid var(--gray-200);
}

.detail-header-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.detail-logo {
    width: 200px;
    text-align: center;
}

.detail-logo img {
    max-height: 80px;
    margin-bottom: 15px;
}

.detail-info {
    flex: 1;
}

.detail-info h1 {
    font-size: 32px;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.detail-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
}

.detail-meta-item i {
    color: var(--primary-color);
}

.detail-cta {
    width: 280px;
    background: var(--gray-50);
    padding: 25px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.detail-cta .price {
    font-size: 36px;
    margin-bottom: 15px;
}

.detail-cta .btn {
    width: 100%;
    margin-bottom: 10px;
}

.detail-cta .coupon {
    background: var(--white);
    padding: 12px;
    border-radius: var(--radius);
    margin-top: 15px;
}

.detail-cta .coupon-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 5px;
}

.detail-cta .coupon-code {
    font-family: monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.detail-tabs {
    background: var(--white);
    margin-bottom: 30px;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
}

.tab-btn {
    padding: 18px 30px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--gray-800);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.pros, .cons {
    padding: 25px;
    border-radius: var(--radius-lg);
}

.pros {
    background: rgba(16, 185, 129, 0.1);
}

.cons {
    background: rgba(239, 68, 68, 0.1);
}

.pros h4, .cons h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    margin-bottom: 15px;
}

.pros h4 {
    color: var(--secondary-color);
}

.cons h4 {
    color: var(--danger-color);
}

.pros li, .cons li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pros li i {
    color: var(--secondary-color);
    margin-top: 4px;
}

.cons li i {
    color: var(--danger-color);
    margin-top: 4px;
}

/* ========================================
   
   ======================================== */
.compare-selector {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.compare-selector h3 {
    margin-bottom: 20px;
}

.selector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.selector-item {
    position: relative;
}

.selector-item select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
}

.compare-table {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.compare-table table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 18px 20px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    background: var(--gray-50);
    font-weight: 600;
}

.compare-table thead th {
    background: var(--gray-800);
    color: var(--white);
}

.compare-table thead th:first-child {
    background: var(--gray-800);
}

.compare-logo {
    height: 40px;
    margin-bottom: 8px;
}

.check-icon {
    color: var(--secondary-color);
}

.cross-icon {
    color: var(--danger-color);
}

/* ========================================
   
   ======================================== */
.coupons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.coupon-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    overflow: hidden;
    transition: var(--transition);
}

.coupon-card:hover {
    box-shadow: var(--shadow-lg);
}

.coupon-left {
    width: 140px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.coupon-discount {
    font-size: 36px;
    font-weight: 700;
}

.coupon-type {
    font-size: 14px;
    opacity: 0.9;
}

.coupon-right {
    flex: 1;
    padding: 25px;
}

.coupon-right h4 {
    font-size: 18px;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.coupon-right p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 15px;
}

.coupon-code-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.coupon-code-box input {
    flex: 1;
    padding: 10px 15px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    font-family: monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    background: var(--gray-50);
}

.coupon-code-box .btn {
    padding: 10px 20px;
}

.coupon-expire {
    font-size: 12px;
    color: var(--gray-400);
}

/* ========================================
   
   ======================================== */
@media (max-width: 1200px) {
    .vps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .vps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .list-layout {
        flex-direction: column;
    }

    .filter-col {
        width: 100%;
    }

    .detail-header-content {
        flex-wrap: wrap;
    }

    .detail-cta {
        width: 100%;
    }

    .selector-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .coupons-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        z-index: 999;
        overflow-y: auto;
        padding: 20px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav > ul > li {
        border-bottom: 1px solid var(--gray-200);
    }

    .main-nav a {
        display: block;
        padding: 15px;
        color: var(--gray-700);
    }

    .main-nav a:hover {
        background: var(--gray-50);
        color: var(--primary-color);
    }

    .main-nav .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--gray-50);
        padding: 0;
        min-width: auto;
    }

    .main-nav .dropdown-menu li {
        border-bottom: none;
    }

    .main-nav .dropdown-menu a {
        padding: 12px 15px 12px 30px;
        font-size: 14px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-search {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .vps-grid {
        grid-template-columns: 1fr;
    }

    .deals-grid {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .vps-list-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .vps-list-features {
        justify-content: center;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .selector-grid {
        grid-template-columns: 1fr;
    }

    /* Comparison table mobile responsive */
    .comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table {
        min-width: 600px;
    }

    .comparison-table td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 5px;
    }

    .coupon-card {
        flex-direction: column;
    }

    .coupon-left {
        width: 100%;
        padding: 20px;
        flex-direction: row;
        gap: 10px;
    }

    /* Taxonomy & VPS List page mobile fixes */
    .filter-sidebar {
        width: 100% !important;
        flex-shrink: 1 !important;
        order: 2;
    }

    .vps-grid {
        grid-template-columns: 1fr !important;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .page-header {
        padding: 30px 0;
    }

    /* Fix flex container for sidebar + content */
    section .container > div[style*="display: flex"] {
        flex-direction: column;
    }

    .vps-list-layout {
        flex-direction: column;
    }

    .vps-list-layout .filter-sidebar {
        width: 100% !important;
        order: 2;
        margin-top: 30px;
    }

    .vps-list-layout > div[style*="flex: 1"] {
        order: 1;
    }

    /* Compare page mobile fixes */
    #compareForm > div {
        grid-template-columns: 1fr !important;
    }

    #compareForm select {
        font-size: 16px !important; /* Prevent iOS zoom */
    }

    /* Summary cards on compare page */
    section > .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   
   ======================================== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    overflow-y: auto;
    padding: 20px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
}

.mobile-menu a {
    display: block;
    padding: 15px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.mobile-menu a:hover {
    background: var(--gray-50);
    color: var(--primary-color);
}

/* ========================================
   
   ======================================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

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

/* Toast  */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-800);
    color: var(--white);
    padding: 12px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

.toast.success {
    background: var(--secondary-color);
}

.toast.error {
    background: var(--danger-color);
}

/* ========================================
   Featured Topics / 
   ======================================== */
.topic-card:hover {
    transform: translateY(-5px);
}

/* Responsive styles for featured topics */
@media (max-width: 1024px) {
    .featured-topics [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .featured-topics [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    .featured-topics [style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    .featured-topics [style*="display: flex;"] {
        flex-direction: column !important;
    }

    .featured-topics [style*="width: 200px; height: 150px;"] {
        width: 100% !important;
        height: 180px !important;
    }
}

/* ========================================
   Additional VPS List Styles
   ======================================== */
.list-layout {
    display: flex;
    gap: 40px;
}

.filter-col {
    width: 280px;
    flex-shrink: 0;
}

.list-col {
    flex: 1;
    min-width: 0;
}

.filter-sidebar {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 20px;
}

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

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

.filter-group h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 15px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.filter-option label {
    flex: 1;
    font-size: 14px;
    color: var(--gray-600);
    cursor: pointer;
}

.filter-option span {
    font-size: 12px;
    color: var(--gray-400);
}

.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-range input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.list-count {
    font-size: 14px;
    color: var(--gray-500);
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
}

.vps-list-item {
    display: flex;
    gap: 25px;
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: var(--transition);
}

.vps-list-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.vps-list-logo {
    width: 150px;
    flex-shrink: 0;
    text-align: center;
}

.vps-list-logo img {
    max-width: 120px;
    margin-bottom: 10px;
}

.vps-list-info {
    flex: 1;
    min-width: 0;
}

.vps-list-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.vps-list-info h3 a {
    color: var(--gray-800);
}

.vps-list-info h3 a:hover {
    color: var(--primary-color);
}

.vps-desc {
    color: var(--gray-600);
    margin-bottom: 15px;
    font-size: 14px;
}

.vps-list-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.vps-list-features span {
    font-size: 13px;
    color: var(--gray-500);
}

.vps-list-features span i {
    color: var(--primary-color);
    margin-right: 5px;
}

.vps-list-action {
    width: 150px;
    flex-shrink: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vps-list-action .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.vps-list-action .price sup {
    font-size: 16px;
}

.vps-list-action .price sub {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-500);
}

/* Detail page styles */
.detail-header {
    background: var(--white);
    padding: 40px 0;
    box-shadow: var(--shadow);
}

.detail-header-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.detail-logo {
    width: 200px;
    flex-shrink: 0;
    text-align: center;
}

.detail-logo img {
    max-width: 180px;
}

.detail-info {
    flex: 1;
}

.detail-info h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 20px;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 14px;
}

.detail-meta-item i {
    color: var(--primary-color);
}

.detail-cta {
    width: 280px;
    flex-shrink: 0;
    background: var(--gray-50);
    padding: 25px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.detail-cta .price-label {
    font-size: 14px;
    color: var(--gray-500);
}

.detail-cta .price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.detail-cta .price sup {
    font-size: 20px;
}

.detail-cta .price sub {
    font-size: 16px;
    font-weight: 400;
    color: var(--gray-500);
}

.detail-cta .btn {
    width: 100%;
    margin-bottom: 10px;
}

.detail-cta .coupon {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.detail-cta .coupon-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.detail-cta .coupon-code {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    padding: 10px;
    background: var(--white);
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius);
}

/* Tabs */
.detail-tabs {
    border-bottom: 1px solid var(--gray-200);
}

.tabs-nav {
    display: flex;
    gap: 5px;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Pros and Cons */
.pros-cons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.pros, .cons {
    padding: 25px;
    border-radius: var(--radius-lg);
}

.pros {
    background: rgba(16, 185, 129, 0.1);
}

.cons {
    background: rgba(239, 68, 68, 0.1);
}

.pros h4, .cons h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.pros h4 {
    color: var(--secondary-color);
}

.cons h4 {
    color: var(--danger-color);
}

.pros ul li, .cons ul li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray-600);
}

.pros ul li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.cons ul li i {
    color: var(--danger-color);
    margin-right: 10px;
}

/* Responsive for VPS list and detail pages */
@media (max-width: 1024px) {
    .list-layout {
        flex-direction: column;
    }

    .filter-col {
        width: 100%;
    }

    .filter-sidebar {
        position: static;
    }

    .detail-header-content {
        flex-wrap: wrap;
    }

    .detail-cta {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .vps-list-item {
        flex-direction: column;
        text-align: center;
    }

    .vps-list-logo,
    .vps-list-action {
        width: 100%;
    }

    .vps-list-features {
        justify-content: center;
    }

    .detail-header-content {
        flex-direction: column;
    }

    .detail-logo,
    .detail-info,
    .detail-cta {
        width: 100%;
    }

    .tabs-nav {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }
}
