/* Dedicated packages overview (inherits ../ds.css) */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.page {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

.header-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2.25rem 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.header-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 217, 138, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.section-head {
    position: relative;
    z-index: 1;
}

.header-right {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: flex-end;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(228, 232, 237, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 217, 138, 0.3);
    color: var(--accent-green);
    transform: translateX(-3px);
}

.kicker {
    color: rgba(0, 217, 138, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin: 0 0 0.85rem;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: rgba(228, 232, 237, 0.75);
    max-width: 65ch;
    line-height: 1.65;
    font-size: 1.05rem;
    margin: 0;
}

.page-price {
    position: relative;
    z-index: 1;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: -0.01em;
    color: var(--accent-green);
    white-space: nowrap;
    text-align: left;
    line-height: 1.2;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    background: rgba(0, 217, 138, 0.08);
    border: 1px solid rgba(0, 217, 138, 0.25);
    box-shadow: 0 0 16px rgba(0, 217, 138, 0.08);
    margin-top: 0.75rem;
    display: inline-block;
    width: fit-content;
    max-width: fit-content;
}

.page-price::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 217, 138, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.notice {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text-secondary);
}

/* CPU Filter Switcher */
.cpu-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.filter-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.cpu-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.35rem;
    border-radius: 10px;
}

.cpu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cpu-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.cpu-btn.active {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    color: #07110c;
    box-shadow: 0 2px 8px rgba(0, 217, 138, 0.3);
}

.cpu-logo {
    width: 18px;
    height: 18px;
}

/* Filter Animation */
.package-card.filter-hidden {
    display: none;
}

.package-card.filter-visible {
    animation: filterFadeIn 0.3s ease forwards;
}

@keyframes filterFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* No Results Message */
.no-filter-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
}

.no-filter-results .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.package-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.package-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.025) 100%);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    padding: 1.65rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
}

.package-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 217, 138, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.package-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 217, 138, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 217, 138, 0.15);
}

.package-card:hover::before {
    opacity: 1;
}

.package-card h3 {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.package-meta {
    color: var(--accent-green);
    font-weight: 800;
    font-size: 1.1rem;
}


.package-actions {
    margin-top: auto;
    padding-top: 0.5rem;
}

.dedi-card {
    min-height: auto;
}

.dedi-specs {
    display: grid;
    gap: 0.85rem;
    margin: 0.5rem 0 1.25rem;
}

.spec-row {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 0.75rem;
    align-items: start;
}

.spec-icon {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.spec-info {
    display: grid;
    gap: 0.15rem;
}

.spec-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(228, 232, 237, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(228, 232, 237, 0.95);
    line-height: 1.4;
}

.dedi-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: center;
}

.dedi-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--accent-green);
    letter-spacing: -0.02em;
}

.dedi-footer .btn {
    width: 100%;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.info-cards-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.info-feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

.info-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 217, 138, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.info-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.info-feature-card h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.info-feature-card p {
    color: rgba(228, 232, 237, 0.75);
    line-height: 1.6;
    font-size: 0.95rem;
}

.info-feature-card strong {
    color: var(--accent-green);
    font-weight: 800;
}

@media (max-width: 980px) {
    .package-grid {
        grid-template-columns: 1fr;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .header-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.75rem 1.5rem;
    }
    
    .page-price {
        text-align: left;
    }
    
    .page-title {
        font-size: 2rem;
    }
}
