:root {
    --primary-color: #00ffff;
    /* Neon Cyan */
    --secondary-color: #00bfff;
    /* Deep Sky Blue */
    --accent-color: #ff00ff;
    /* Neon Magenta */
    --bg-color: #0a0a12;
    /* Very Dark Blue/Black */
    --card-bg: #161625;
    /* Dark Card Background */
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --success-color: #00ff00;
    --warning-color: #ffcc00;
    --danger-color: #ff0000;
    --border-color: #2a2a35;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
}

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

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
header {
    background-color: rgba(10, 10, 18, 0.95);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
}

nav a {
    color: var(--text-color);
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0 40px;
    background: radial-gradient(circle at center, #1a1a2e 0%, var(--bg-color) 70%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Ranking Table */
.ranking-table {
    margin: var(--spacing-lg) 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 var(--spacing-md);
}

.ranking-row {
    background-color: var(--card-bg);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    /* Does not apply to tr directly, needs styling on td */
}

.ranking-row td {
    padding: var(--spacing-md);
    vertical-align: middle;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ranking-row td:first-child {
    border-left: 1px solid var(--border-color);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    width: 60px;
}

.ranking-row td:last-child {
    border-right: 1px solid var(--border-color);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.ranking-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.ranking-row.featured {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.05), rgba(22, 22, 37, 1));
    border: 1px solid var(--primary-color);
    position: relative;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

/* Fix border on featured row cells */
.ranking-row.featured td {
    border-top: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

.ranking-row.featured td:first-child {
    border-left: 1px solid var(--primary-color);
}

.ranking-row.featured td:last-child {
    border-right: 1px solid var(--primary-color);
}

.provider-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.provider-logo {
    width: 120px;
    height: auto;
    border-radius: 4px;
}

.provider-name {
    font-weight: 700;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 4px;
    color: #fff;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-best {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 8px var(--accent-color);
}

.badge-score {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.features-list {
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.features-list li {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.features-list li::before {
    content: "✓";
    color: var(--success-color);
    margin-right: 8px;
    font-weight: bold;
}

.score-box {
    text-align: center;
}

.score-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.score-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #000;
    border: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    transform: translateY(-1px);
    color: #000;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--text-color);
    color: var(--text-color);
}

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

.footer-links {
    margin-bottom: var(--spacing-md);
}

.footer-links a {
    margin: 0 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.copyright {
    font-size: 0.8rem;
}

/* Responsive Table */
@media (max-width: 768px) {
    .ranking-row {
        display: block;
        padding: var(--spacing-md);
    }

    .ranking-row td {
        display: block;
        width: 100% !important;
        border: none !important;
        padding: 4px 0;
        text-align: center;
    }

    .ranking-row td:first-child {
        display: inline-block;
        background-color: var(--primary-color);
        color: #000;
        width: 30px !important;
        height: 30px;
        line-height: 30px;
        border-radius: 50%;
        margin-bottom: var(--spacing-sm);
    }

    .provider-info {
        flex-direction: column;
        justify-content: center;
    }
}

/* RockHoster Promo Banner Styles */
.rh-card {
    background-color: #161625;
    /* Dark Card Background matching theme */
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.rh-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.rh-badge-top {
    display: inline-block;
    background-color: #facc15;
    /* Yellow-400 */
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 16px;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

.rh-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.rh-logo-wrapper {
    background-color: #fff;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.rh-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rh-rating {
    font-size: 0.9rem;
    color: #facc15;
    /* Yellow */
    font-weight: 600;
    margin-top: 4px;
}

.rh-uptime {
    font-size: 0.75rem;
    color: var(--success-color);
    font-weight: 600;
}

.rh-description {
    font-size: 0.9rem;
    color: #d1d5db;
    /* Slate-300 equivalent */
    margin-top: 20px;
    line-height: 1.6;
}

.rh-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
    font-size: 0.8rem;
    color: #e5e7eb;
    /* Slate-200 */
}

.rh-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
    text-align: center;
}

.rh-price-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.rh-price-card.featured {
    background-color: rgba(0, 191, 255, 0.1);
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
}

.rh-price-card b {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #fff;
}

.rh-price-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 2px 0;
}

.rh-price {
    font-size: 1rem !important;
    font-weight: 800;
    color: var(--success-color) !important;
    margin-top: 8px !important;
}

.rh-pros {
    margin-top: 24px;
    font-size: 0.8rem;
    color: #9ca3af;
    /* Slate-400 */
}

.rh-pros p {
    margin-bottom: 4px;
}

.rh-cta-btn {
    display: block;
    margin-top: 32px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    /* Blue-600 to Blue-700 */
    color: #fff !important;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.rh-cta-btn:hover {
    background: linear-gradient(90deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* Review Page Specific Styles */
.review-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.review-score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: transparent;
    border: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.content-box {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.pros-cons {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.pros,
.cons {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.pros h3,
.cons h3 {
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.pros h3 {
    color: var(--success-color);
}

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

.pros ul,
.cons ul {
    list-style: none;
    padding: 0;
}

.pros li,
.cons li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.pros li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.cons li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: var(--danger-color);
    font-weight: bold;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.pricing-table th,
.pricing-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
    color: var(--primary-color);
}

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

    .rh-pricing-grid {
        grid-template-columns: 1fr;
    }

    .rh-price-card.featured {
        transform: none;
    }

    .review-header {
        flex-direction: column;
        text-align: center;
    }

    .pros-cons {
        flex-direction: column;
    }
}