* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Header Styles */
.header {
    background-color: #ffffff;
    color: white;
    padding: 8px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 18px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.8;
}

.icon-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

/* Sub Header */
.sub-header {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
}

.sub-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.sub-nav-link {
    color: #1d65f8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.sub-nav-link:hover {
    color: #0d4fd8;
}

.search-button {
    background: none;
    border: none;
    color: #1d65f8;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}

.breadcrumb-link {
    color: #1d65f8;
    text-decoration: none;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #999;
}

.breadcrumb-current {
    color: #666;
}

/* Page Title */
.page-title {
    font-size: 32px;
    font-weight: 600;
    color: #001135;
    margin-bottom: 32px;
}

/* Content Wrapper */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

/* Section Titles */
.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #001135;
    margin-bottom: 24px;
}

.subsection-title {
    font-size: 18px;
    font-weight: 600;
    color: #001135;
    margin-bottom: 16px;
}

.section-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Commitment Period */
.commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.commitment-option {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.commitment-option:hover {
    border-color: #1d65f8;
}

.commitment-option.selected {
    border-color: #1d65f8;
    background-color: #f0f5ff;
}

.commitment-option input[type="radio"] {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1d65f8;
}

.commitment-option label {
    display: block;
    cursor: pointer;
    margin-left: 32px;
}

.commitment-name {
    font-size: 15px;
    font-weight: 600;
    color: #001135;
    margin-bottom: 6px;
}

.commitment-save {
    font-size: 13px;
    color: #28a745;
    font-weight: 500;
}

/* VPS Grid */
.vps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.vps-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.vps-card:hover {
    border-color: #1d65f8;
    box-shadow: 0 4px 12px rgba(29, 101, 248, 0.15);
}

.vps-card.selected {
    border-color: #1d65f8;
    background-color: #f0f5ff;
}

.vps-card input[type="radio"] {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1d65f8;
}

.vps-card-header {
    margin-bottom: 16px;
    margin-left: 32px;
}

.vps-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #001135;
}

.vps-specs {
    list-style: none;
    margin-bottom: 16px;
}

.vps-specs li {
    padding: 6px 0;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.vps-specs li::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    flex-shrink: 0;
}

.vps-pricing {
    border-top: 1px solid #e0e0e0;
    padding-top: 12px;
}

.vps-price-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.vps-price {
    font-size: 24px;
    font-weight: 700;
    color: #1d65f8;
}

.vps-price-period {
    font-size: 13px;
    color: #666;
    display: block;
    margin-top: 2px;
}

/* Configuration Section */
.config-section {
    background: white;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.config-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.config-label {
    font-size: 16px;
    font-weight: 600;
    color: #001135;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quantity-btn:hover {
    border-color: #1d65f8;
    color: #1d65f8;
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quantity-input {
    width: 60px;
    height: 32px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

/* Location Selection */
.location-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

.location-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.location-tab:hover {
    color: #1d65f8;
}

.location-tab.active {
    color: #1d65f8;
    border-bottom-color: #1d65f8;
}

.location-option {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.location-option:hover {
    border-color: #1d65f8;
}

.location-option.selected {
    border-color: #1d65f8;
    background-color: #f0f5ff;
}

.location-option input[type="radio"] {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1d65f8;
}

.location-info {
    flex: 1;
}

.location-name {
    font-size: 14px;
    font-weight: 600;
    color: #001135;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-details {
    font-size: 12px;
    color: #666;
}

.location-price {
    font-size: 16px;
    font-weight: 700;
    color: #1d65f8;
    white-space: nowrap;
}

.location-price-period {
    font-size: 11px;
    color: #666;
    display: block;
}

/* Image Selection */
.image-type-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.image-type-tab {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.image-type-tab:hover {
    border-color: #1d65f8;
}

.image-type-tab.active {
    background: #1d65f8;
    color: white;
    border-color: #1d65f8;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.image-option {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.image-option:hover {
    border-color: #1d65f8;
}

.image-option.selected {
    border-color: #1d65f8;
    background-color: #f0f5ff;
}

.image-option input[type="radio"] {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1d65f8;
}

.image-content {
    margin-left: 32px;
}

.image-name {
    font-size: 14px;
    font-weight: 600;
    color: #001135;
    margin-bottom: 8px;
}

.image-version {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 8px;
}

.image-price {
    font-size: 14px;
    font-weight: 600;
    color: #d946ef;
}

/* Options Section */
.info-box {
    background: #e8f2ff;
    border-left: 4px solid #1d65f8;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #333;
}

.info-box strong {
    display: block;
    margin-bottom: 4px;
}

.option-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    background: white;
}

.option-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1d65f8;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.option-name {
    font-size: 14px;
    font-weight: 600;
    color: #001135;
}

.option-price {
    font-size: 16px;
    font-weight: 700;
    color: #1d65f8;
}

.option-price-period {
    font-size: 11px;
    color: #666;
}

.option-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.option-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 8px;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: #1d65f8;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #0d4fd8;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: white;
    color: #1d65f8;
    border: 2px solid #1d65f8;
}

.btn-secondary:hover {
    background-color: #f0f5ff;
}

.btn-outline {
    background-color: white;
    color: #666;
    border: 2px solid #ccc;
}

.btn-outline:hover:not(:disabled) {
    border-color: #1d65f8;
    color: #1d65f8;
}

.btn-outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cart Sidebar */
.cart-sidebar {
    position: sticky;
    top: 32px;
    height: fit-content;
}

.cart-content {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 16px;
}

.cart-empty {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #666;
}

.cart-empty svg {
    flex-shrink: 0;
}

.cart-filled {
    padding: 20px;
}

.cart-header-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cart-vps-title {
    font-size: 16px;
    font-weight: 600;
    color: #001135;
}

.cart-vps-price {
    font-size: 16px;
    font-weight: 700;
    color: #1d65f8;
}

.cart-collapse-btn {
    background: none;
    border: none;
    color: #1d65f8;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
}

.cart-spec-group {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-spec-group:last-child {
    border-bottom: none;
}

.cart-spec-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 500;
}

.cart-spec-value {
    font-size: 14px;
    color: #001135;
    font-weight: 500;
}

.cart-spec-save {
    font-size: 12px;
    color: #d946ef;
    font-weight: 500;
    margin-top: 2px;
}

.cart-option-list {
    margin-top: 12px;
}

.cart-option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
}

.cart-option-name {
    color: #333;
}

.cart-option-price {
    color: #1d65f8;
    font-weight: 600;
}

.cart-total-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #e0e0e0;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.cart-total-row.final {
    font-size: 18px;
    font-weight: 700;
    color: #001135;
    margin-top: 12px;
}

.cart-total-price {
    color: #1d65f8;
    font-weight: 700;
}

.cart-total-period {
    font-size: 12px;
    color: #666;
    font-weight: normal;
    display: block;
    margin-top: 2px;
}

.cart-continue-btn {
    width: 100%;
}

/* Order Summary */
.order-summary {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.summary-title {
    font-size: 18px;
    font-weight: 600;
    color: #001135;
    margin-bottom: 16px;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
}

.summary-table th {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-align: left;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-table td {
    padding: 12px 0;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.summary-table tr:last-child td {
    border-bottom: none;
}

.summary-product {
    font-weight: 600;
}

.summary-detail {
    font-size: 12px;
    color: #666;
    display: block;
    margin-top: 4px;
}

.summary-price {
    text-align: right;
    font-weight: 600;
    color: #001135;
}

.promo-code {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.promo-toggle {
    width: 100%;
    background: #e8f2ff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    color: #1d65f8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-totals {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.total-row.final {
    font-size: 18px;
    font-weight: 700;
    color: #001135;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #e0e0e0;
}

.total-period {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

.loading-screen.active {
    display: flex;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e0e0e0;
    border-top-color: #1d65f8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 20px;
    font-size: 16px;
    color: #333;
}

/* Order Summary Page */
.order-summary-page {
    max-width: 800px;
    margin: 0 auto;
}

.summary-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 32px;
}

.summary-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step-number.active {
    background: #1d65f8;
    color: white;
}

.step-label {
    font-size: 13px;
    color: #666;
}

.summary-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .vps-grid {
        grid-template-columns: 1fr;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .header-nav {
        display: none;
    }
}