/**
 * Legacy Modern — DPNEXUS Premium Redesign
 * Dark Glass + Brand Blue Gradient + Refined Typography
 *
 * Brand: Vultr Blue #009bde | Dark BG #0d1117
 */

#order-modern {
    margin: 0;
    padding: 0 0 40px;
}

/* ============================================================
   Title Bar
   ============================================================ */

#order-modern .title-bar {
    margin: 0 0 30px 0;
    text-align: center;
}

#order-modern .title-bar h1 {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ============================================================
   Category Dropdown & Currency
   ============================================================ */

#order-modern select {
    border: 1px solid rgba(255,255,255,0.12);
    padding: 4px 8px;
}

#order-modern .clear {
    clear: both;
}

#order-modern .choosecat {
    margin: 10px;
}

#order-modern .currencychooser {
    margin: 10px 30px;
    padding: 0;
    text-align: right;
}

/* ============================================================
   Product Card — Dark Glass Design
   ============================================================ */

#order-modern .product {
    position: relative;
    margin: 12px 0;
    padding: 20px 18px 18px;
    background: linear-gradient(135deg, rgba(20,29,46,0.92) 0%, rgba(15,23,42,0.95) 100%);
    border: 1px solid rgba(0,155,222,0.15);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s cubic-bezier(0.16,1,0.3,1);
    overflow: hidden;

    /* Glass effect */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#order-modern .product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #009bde, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#order-modern .product:hover {
    border-color: rgba(0,155,222,0.4);
    box-shadow:
        0 0 30px rgba(0,155,222,0.12),
        0 8px 32px rgba(0,0,0,0.4);
    transform: translateY(-3px);
    cursor: pointer;
}

#order-modern .product:hover::before {
    opacity: 1;
}

/* ============================================================
   Product Header — Name Left + Price Right
   ============================================================ */

#order-modern .product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

/* Product Name */
#order-modern .product-name-wrap {
    flex: 1;
    min-width: 0;
}

#order-modern .product .name {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 4px;
    line-height: 1.3;
}

#order-modern .product .qty {
    font-size: 11px;
    color: #64748b;
    font-weight: 400;
}

/* ============================================================
   Pricing — Right-Aligned Hierarchy
   ============================================================ */

#order-modern .pricing-wrap {
    flex-shrink: 0;
    text-align: right;
}

#order-modern .product .pricing {
    font-family: 'Inter', system-ui, sans-serif;
    float: none;
    text-align: right;
}

/* Starting from label */
.pricing-meta .pricing-from {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #009bde;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1px;
}

/* Main price — the hero number */
.pricing-price {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Billing cycle label */
.pricing-cycle {
    font-size: 11px;
    font-weight: 400;
    color: #64748b;
    margin-top: 2px;
}

/* Setup fee */
.pricing-setup {
    font-size: 10px;
    color: #475569;
    margin-top: 2px;
}

/* Bundle/Deal pricing */
.bundle-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.deal-label {
    font-size: 10px;
    font-weight: 600;
    color: #f97316;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.deal-price {
    font-size: 20px;
    font-weight: 700;
    color: #f97316;
}

/* ============================================================
   Product Features
   ============================================================ */

#order-modern .product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

#order-modern .product .prodfeature {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    font-size: 12px;
    color: #009bde;
    transition: border-color 0.2s ease, background 0.2s ease;
}

#order-modern .product:hover .prodfeature {
    border-color: rgba(0,155,222,0.25);
    background: rgba(0,155,222,0.06);
}

#order-modern .product .prodfeature .feature {
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

#order-modern .product .prodfeature .value {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}

/* Legacy feature layout (fallback if no value span) */
#order-modern .product .prodfeature {
    float: none;
    margin: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    color: #009bde;
    border-radius: 8px;
}

#order-modern .product .prodfeature .feature {
    font-size: 10px;
    color: #64748b;
}

/* ============================================================
   Description
   ============================================================ */

#order-modern .product .description {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 14px 0;
    line-height: 1.5;
}

/* ============================================================
   Footer — Order Button
   ============================================================ */

#order-modern .product-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

#order-modern .btn-order-now {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #009bde 0%, #007ab8 100%);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 2px 12px rgba(0,155,222,0.25);
    letter-spacing: 0.01em;
}

#order-modern .btn-order-now:hover {
    background: linear-gradient(135deg, #33b5e8 0%, #009bde 100%);
    box-shadow: 0 4px 20px rgba(0,155,222,0.45);
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
}

#order-modern .btn-order-now:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,155,222,0.3);
}

#order-modern .btn-order-now i {
    font-size: 12px;
}

/* ============================================================
   Card Entrance Animations
   ============================================================ */

#order-modern .products.row > .col-md-6:nth-child(1) .product {
    animation: cardEntrance 0.4s 0.05s ease both;
}
#order-modern .products.row > .col-md-6:nth-child(2) .product {
    animation: cardEntrance 0.4s 0.12s ease both;
}
#order-modern .products.row > .col-md-6:nth-child(3) .product {
    animation: cardEntrance 0.4s 0.19s ease both;
}
#order-modern .products.row > .col-md-6:nth-child(4) .product {
    animation: cardEntrance 0.4s 0.26s ease both;
}
#order-modern .products.row > .col-md-6:nth-child(5) .product {
    animation: cardEntrance 0.4s 0.33s ease both;
}
#order-modern .products.row > .col-md-6:nth-child(6) .product {
    animation: cardEntrance 0.4s 0.40s ease both;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   Config Container (required by WHMCS)
   ============================================================ */

#order-modern #configcontainer,
#order-modern #configcontainer2 {
    display: none;
}

#order-modern .loading {
    display: none;
    width: 220px;
    padding-top: 10px;
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

#order-modern #cartLoader i {
    font-size: 1.6em;
}

#order-modern .errorbox {
    display: none;
    margin: 15px 0;
    padding: 15px 20px;
    background-color: rgba(220,38,38,0.1);
    border: 1px dashed #dc2626;
    font-weight: bold;
    color: #fca5a5;
    text-align: center;
    border-radius: 8px;
}
