/* SERVER LANDING & CONFIGURATOR STYLES V3 - FIXED */
:root {
    --primary: #FF8C42;
    --primary-dark: #e67e3b;
    --primary-light: #fff1e8;
    --secondary: #1e293b;
    --text-main: #1f2937;
    --text-light: #6b7280;
    --border: #e2e8f0;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --success: #10b981;
}

/* Base Layout Fixes */
.server-page-wrapper {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.5;
}

.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Button Components */
.btn-server {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
    gap: 0.5rem;
    border: none;
    line-height: 1.2;
}

.btn-primary-server {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.btn-primary-server:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.4);
}

/* HERO SECTION */
.server-hero {
    padding: 60px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* PRICING CARDS */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.pricing-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.15);
    z-index: 1;
}

.pricing-header {
    padding: 25px;
    text-align: center;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.pricing-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 5px;
}

.pricing-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin: 10px 0;
}

.pricing-period {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.pricing-features {
    padding: 25px;
    flex-grow: 1;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.pricing-features li i {
    color: var(--success);
    width: 20px;
    text-align: center;
}

.pricing-footer {
    padding: 0 25px 25px;
    text-align: center;
}

/* PROMO BANNER (RIGHT SIDE) */
.promo-c-wrapper {
    position: relative;
    z-index: 10;
    height: 100%;
}

.promo-card {
    background: #ecfdf5;
    border: 2px solid #10b981;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    position: sticky;
    top: 20px;
    height: auto;
}

.promo-header {
    background: #10b981;
    color: white;
    padding: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.promo-body {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.promo-body img {
    max-width: 180px;
    margin-bottom: 20px;
}

.promo-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #064e3b;
    margin-bottom: 10px;
}

.promo-desc {
    color: #065f46;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-promo {
    background: white;
    border: 2px solid #059669;
    color: #059669;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-promo:hover {
    background: #059669;
    color: white;
}

/* FEATURE SECTIONS (ZIG ZAG) */
.info-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary);
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-image {
    flex: 1;
}

.feature-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* TECH GRID */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.tech-card {
    background: white;
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    height: 100%;
}

.tech-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.tech-card i {
    font-size: 40px;
    margin-bottom: 5px;
}

/* FAQ */
.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--secondary);
    background: #fcfcfc;
    transition: background 0.2s;
}

.faq-header:hover {
    background: #f8fafc;
}

.faq-body {
    padding: 20px;
    display: none;
    color: var(--text-light);
    line-height: 1.6;
    border-top: 1px solid var(--border);
}

.faq-item.active .faq-body {
    display: block;
}

.faq-item.active .faq-header {
    color: var(--primary);
    background: #fff1e8;
}

/* CONFIGURATOR SPECIFIC */
.config-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.config-container {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 2rem;
}

.config-main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.server-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 40px;
    background: var(--bg-light);
    padding: 8px;
    border-radius: 16px;
}

.server-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-light);
}

.server-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.server-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

.resource-row {
    margin-bottom: 30px;
}

.resource-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 700;
}

.custom-range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    appearance: none;
    outline: none;
}

.custom-range::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: transform 0.2s;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 30px;
}

.option-card {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.option-card.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.option-card img {
    height: 32px;
    margin-bottom: 8px;
}

.order-summary {
    position: sticky;
    top: 20px;
    background: var(--secondary);
    color: white;
    border-radius: 20px;
    padding: 25px;
}

.summary-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.summary-item strong {
    color: white;
}

.total-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.total-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-grid {
        flex-direction: column;
    }

    .feature-row {
        flex-direction: column !important;
        text-align: center;
        gap: 30px;
    }

    .hero-image-wrapper {
        order: -1;
        margin-bottom: 20px;
    }

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

    .config-container {
        grid-template-columns: 1fr;
    }

    .promo-card {
        position: static;
        margin-top: 40px;
    }
}

/* UTILS */
.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}