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

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #050812;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    zoom: 0.70;
    position: relative;
    overflow-x: hidden;
}

/* Ensure content is above stars */
.navbar,
.page-wrapper,
.page-content,
.container,
.footer {
    position: relative;
    z-index: 1;
}

.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    min-height: 100vh; /* Always at least full viewport height */
    padding-top: 120px; /* More space from top for Configure page */
    padding-bottom: 60px; /* More space before footer */
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 40, 0.95);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.active {
    background: rgba(102, 126, 234, 0.3);
    color: white;
}

.nav-discord {
    background: #5865F2;
    color: white;
    margin-left: 8px;
}

.nav-discord:hover {
    background: #4752C4;
}

.nav-discord svg {
    width: 18px;
    height: 18px;
}

.container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px 30px 0 30px;
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    margin-top: 40px; /* Add some top spacing */
    margin-bottom: 40px;
}

h1 {
    color: white;
    margin-bottom: 20px;
    text-align: center;
    font-size: 28px;
}

.config-section {
    margin-bottom: 20px;
}

.config-section:last-of-type {
    margin-bottom: 5px;
}

label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

select, input[type="range"] {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: rgba(255, 255, 255, 0.9);
    padding-right: 40px;
}

select:hover, select:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: white;
    outline: none;
}

input[type="range"] {
    padding: 0;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

/* Webkit (Chrome, Safari, Edge) */
input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin-top: -6px;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #f0f0f0;
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* Firefox */
input[type="range"]::-moz-range-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    border: none;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb:hover {
    background: #f0f0f0;
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* Remove default progress fill colors */
input[type="range"]::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, 0.3) !important;
}

input[type="range"]::-moz-range-progress {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    height: 6px;
}

.value-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.value-display span {
    color: white;
    font-weight: 600;
}

.value-display .current-value {
    color: white;
    font-size: 18px;
}

.range-limits {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.summary {
    background: transparent;
    color: white;
    padding: 20px;
    border-radius: 0 0 20px 20px;
    margin-top: 5px;
    margin-left: -30px;
    margin-right: -30px;
    padding-left: 30px;
    padding-right: 30px;
}

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

.summary h2 {
    margin: 0;
    font-size: 20px;
}

.price-loading {
    display: flex;
    align-items: center;
    opacity: 0.9;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-item:last-of-type {
    border-bottom: none;
}

.summary-storage {
    border-bottom: none;
}

.features-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.feature-item {
    padding: 6px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
}

.feature-item span {
    display: flex;
    align-items: center;
}

.pricing-breakdown {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.recurring-section {
    margin-bottom: 20px;
}

.recurring-label {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.recurring-item {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
}

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

.total-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.total-price {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .total-price {
        font-size: 28px;
    }
    
    .continue-button {
        font-size: 16px;
        padding: 14px;
    }
}

.continue-button {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.continue-button:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.continue-arrow {
    margin-right: 8px;
    font-size: 20px;
}

.cpu-info {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
    color: white;
}

.cpu-info strong {
    color: white;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

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

.footer {
    background: rgba(20, 20, 40, 0.9);
    color: white;
    padding: 40px 0 20px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.footer-brand-name {
    font-size: 20px;
    font-weight: 700;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    max-width: 350px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.page-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 125vh; /* 125% of viewport to push footer further below */
    padding: 80px 20px;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 20, 40, 0.8);
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.4);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.6);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.4) rgba(20, 20, 40, 0.8);
}
