/* Order Pages - Modern Professional Design */

/* ========================================
   PAGE HEADER
   ======================================== */

.vps-page-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 30px 0;
    margin-bottom: 30px;
}

.vps-page-header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.vps-page-header__title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vps-page-header__title i {
    font-size: 32px;
    color: #67a552;
}

.vps-page-header__title h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    font-family: metropolissemi_bold, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.vps-page-header__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   ORDER SLIDER / CATEGORY SWITCHER
   ======================================== */

#order-slider h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin: 0 0 16px 0;
}

#categories {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0 40px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

#categories a {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #ffffff;
    color: #67a552;
    border: 1px solid #67a552;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#categories a:hover {
    background: #67a552;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 165, 82, 0.3);
}

/* ========================================
   ADDON CARDS
   ======================================== */

.addoncontainer {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.addoncontainer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #67a552;
    transition: width 0.2s ease;
}

.addoncontainer:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(103, 165, 82, 0.15);
}

.addoncontainer:hover:before {
    width: 6px;
}

/* Addon Content Layout */
.addon-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 24px;
}

.addon-info {
    flex: 1;
}

.addon-name {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    line-height: 1.3;
}

.addon-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
}

/* Addon Pricing */
.addon-pricing {
    flex: 0 0 auto;
    background: linear-gradient(135deg, #67a552 0%, #5a8f47 100%);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 6px;
    text-align: center;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(103, 165, 82, 0.3);
}

.addon-price {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.addon-cycle {
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    opacity: 0.95;
    text-transform: capitalize;
}

.addon-setup {
    font-size: 12px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0.9;
}

/* Addon Actions */
.addon-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.addon-select {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #1f2937;
}

.addon-order-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 12px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* ========================================
   ORDER COMPLETION PAGE
   ======================================== */

.order-complete {
    max-width: 800px;
    margin: 40px auto;
}

.order-complete__icon {
    text-align: center;
    margin-bottom: 30px;
}

.order-complete__icon i {
    font-size: 80px;
    color: #67a552;
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.order-complete__card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
    border-top: 4px solid #67a552;
    padding: 40px;
    text-align: center;
}

.order-complete__title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.order-complete__message {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 16px;
}

.order-complete__highlight {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 6px;
    text-align: left;
}

.order-complete__highlight p {
    margin: 0;
    color: #1f2937;
    font-weight: 500;
}

.order-complete__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ========================================
   UPGRADE PACKAGE SELECTOR
   ======================================== */

.upgrade-container {
    max-width: 900px;
    margin: 0 auto;
}

.upgrade-info {
    background: linear-gradient(135deg, #67a552 0%, #5a8f47 100%);
    color: #ffffff;
    padding: 24px 28px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(103, 165, 82, 0.3);
}

.upgrade-info strong {
    font-weight: 700;
    font-size: 16px;
}

.upgrade-package-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.upgrade-package-row:hover {
    border-color: #67a552;
    box-shadow: 0 4px 12px rgba(103, 165, 82, 0.15);
    transform: translateY(-2px);
}

.upgrade-package-row__name {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.upgrade-package-row__pricing {
    flex: 0 0 220px;
}

.upgrade-package-row__pricing select {
    width: 100%;
}

.upgrade-package-row__action {
    flex: 0 0 auto;
}

/* ========================================
   CONFIG OPTIONS TABLE
   ======================================== */

.config-options-table {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 40px rgba(0, 0, 0, 0.08);
}

.config-options-table thead th {
    background: #67a552;
    color: #ffffff;
    font-weight: 600;
    padding: 16px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.config-options-table tbody td {
    padding: 20px 16px;
    vertical-align: middle;
}

.config-options-table tbody tr:hover {
    background: #f9fafb;
}

.config-arrow {
    font-size: 20px;
    color: #67a552;
    font-weight: 700;
}

/* ========================================
   UPGRADE SUMMARY
   ======================================== */

.summary-table {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
}

.summary-table thead {
    background: linear-gradient(135deg, #67a552 0%, #5a8f47 100%);
}

.summary-table thead th {
    color: #ffffff;
    padding: 18px 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-table tbody td {
    padding: 16px 20px;
    font-size: 15px;
    color: #4b5563;
}

.summary-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
}

.summary-table tbody tr:last-child {
    border-bottom: none;
}

.summary-table tbody tr.subtotal td,
.summary-table tbody tr.recurring td,
.summary-table tbody tr.tax td {
    font-weight: 500;
    color: #374151;
    background: #f9fafb;
}

.summary-table tbody tr.total td {
    font-weight: 700;
    font-size: 18px;
    color: #1f2937;
    background: #f0fdf4;
    border-top: 2px solid #67a552;
}

.summary-note {
    text-align: center;
    margin: 20px 0;
    padding: 16px;
    background: #f0f9ff;
    border-radius: 6px;
    color: #1f2937;
    font-size: 14px;
}

/* ========================================
   PAYMENT METHOD SECTION
   ======================================== */

.payment-section-upgrade {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
    padding: 28px;
    margin-top: 30px;
}

.payment-section__title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-section__title i {
    color: #67a552;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 991px) {
    .addon-content {
        flex-direction: column;
        gap: 20px;
    }

    .addon-pricing {
        align-self: flex-start;
        min-width: 200px;
    }

    .upgrade-package-row {
        flex-direction: column;
        align-items: stretch;
    }

    .upgrade-package-row__pricing,
    .upgrade-package-row__action {
        flex: 1;
        width: 100%;
    }

    .upgrade-package-row__action .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    #order-slider h1 {
        font-size: 24px;
    }

    #categories {
        flex-direction: column;
        padding: 15px;
    }

    #categories a {
        width: 100%;
        justify-content: center;
    }

    .addoncontainer {
        padding: 20px;
    }

    .addon-content {
        gap: 16px;
    }

    .addon-name {
        font-size: 18px;
    }

    .addon-description {
        font-size: 13px;
    }

    .addon-pricing {
        width: 100%;
        min-width: auto;
    }

    .addon-price {
        font-size: 20px;
    }

    .addon-actions {
        flex-direction: column;
    }

    .addon-select,
    .addon-order-btn {
        width: 100%;
    }

    .order-complete__card {
        padding: 28px 20px;
    }

    .order-complete__title {
        font-size: 22px;
    }

    .order-complete__icon i {
        font-size: 60px;
    }

    .order-complete__actions {
        flex-direction: column;
    }

    .order-complete__actions .btn {
        width: 100%;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .addoncontainer,
    .order-complete__card,
    .summary-table,
    .payment-section {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }

    #categories,
    .addon-actions,
    .order-complete__actions,
    .upgrade-package-row__action {
        display: none;
    }
}
