/* product-order — extracted from blade inline styles */
/* ── Page Wrapper ── */
.po-page {
    background: linear-gradient(160deg, #f8faff 0%, #f1f5f9 100%);
    min-height: 100vh;
    padding: 32px 0 100px;
}
.po-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
@media(max-width: 920px) {
    .po-wrap { grid-template-columns: 1fr; }
}

/* ── Breadcrumb ── */
.po-breadcrumb {
    grid-column: 1/-1;
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 4px;
    display: flex; align-items: center; gap: 6px;
}
.po-breadcrumb a { color: #14b8a6; text-decoration: none; font-weight: 600; }
.po-breadcrumb a:hover { text-decoration: underline; }
.po-breadcrumb .sep { color: #cbd5e1; }

/* ── Form Card ── */
.po-form-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04);
    border: 1px solid #e8edf5;
    padding: 36px 40px;
}
@media(max-width: 600px) { .po-form-card { padding: 24px 20px; } }

.po-form-card h1 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
    letter-spacing: -0.025em;
}
.po-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* ── Step Headers ── */
.step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 32px 0 18px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #f1f5f9;
}
.step-header:first-of-type { margin-top: 0; }
.step-badge {
    width: 26px; height: 26px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff; border-radius: 50%;
    font-size: 14px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(20,184,166,.3);
}
.step-header .step-icon { color: #14b8a6; font-size: 14px; }
.step-header .step-title {
    font-size: 14px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .07em; color: #475569;
}

/* ── Form Fields ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:550px){ .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.form-group label .req { color: #ef4444; margin-left: 2px; }
.fc {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid #e2e8f0; border-radius: 12px;
    font-size: 14px; color: #1e293b; background: #f9fafb;
    outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
    box-sizing: border-box;
}
.fc::placeholder { color: #b0bec5; font-style: italic; }
.fc:focus { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.1); background: #fff; }

/* ── Auth Notice ── */
.po-auth-notice {
    display: flex; align-items: center; gap: 12px;
    background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: 14px; padding: 14px 18px; margin-bottom: 8px;
}
.po-auth-avatar {
    width: 40px; height: 40px;
    background: linear-gradient(135deg,#14b8a6,#0d9488);
    color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.po-auth-notice div strong { display: block; font-size: 14px; color: #0f172a; }
.po-auth-notice div span  { font-size: 14px; color: #475569; }

/* ── Checkbox Cards ── */
.custom-checkbox-card {
    background: #f9fafb;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
    user-select: none;
    margin-bottom: 14px;
}
.custom-checkbox-card:hover { border-color: #99f6e4; background: #f0fdfa; }
.custom-checkbox-card.checked {
    border-color: #14b8a6;
    background: #f0fdfa;
    box-shadow: 0 0 0 3px rgba(20,184,166,.08);
}
.custom-checkbox-card input[type=checkbox] {
    width: 18px; height: 18px; accent-color: #14b8a6; cursor: pointer; flex-shrink: 0;
}
.custom-checkbox-card .card-title { font-weight: 700; font-size: 14px; color: #1e293b; }
.custom-checkbox-card .card-desc { font-size: 14px; color: #64748b; margin-top: 2px; }

/* ── Hosting Type Tabs ── */
.hosting-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}
.hosting-tab {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: 7px; padding: 10px 6px; border-radius: 10px;
    cursor: pointer; font-size: 14px; font-weight: 700;
    color: #64748b; transition: all .18s;
    border: none; background: transparent; text-align: center; line-height: 1.3;
}
.hosting-tab:hover { color: #334155; background: rgba(255,255,255,.6); }
.hosting-tab.active.linux  { background: #fff; color: #0d9488; box-shadow: 0 2px 8px rgba(0,0,0,.09); }
.hosting-tab.active.windows{ background: #fff; color: #0284c7; box-shadow: 0 2px 8px rgba(0,0,0,.09); }
.hosting-tab.active.vps    { background: #fff; color: #0d9488; box-shadow: 0 2px 8px rgba(0,0,0,.09); }
.hosting-tab .tab-icon { font-size: 17px; flex-shrink: 0; }
.hosting-tab .tab-sub  { font-size: 14px; font-weight: 500; color: #94a3b8; display: block; }
.hosting-tab.active.linux .tab-sub  { color: #5eead4; }
.hosting-tab.active.windows .tab-sub{ color: #38bdf8; }
.hosting-tab.active.vps .tab-sub    { color: #2dd4bf; }
@media(max-width:480px) {
    .hosting-tab .tab-sub { display: none; }
    .hosting-tab { font-size: 12px; }
}

/* ── Show-other-services toggle ── */
.show-other-plans-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: #f8fafc; border: 1px dashed #cbd5e1;
    color: #475569; border-radius: 10px;
    padding: 9px 14px; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all .15s;
    margin: -10px 0 20px;
}
.show-other-plans-btn:hover { border-color: #14b8a6; color: #0d9488; background: #f0fdfa; }

/* ── VPS Notice ── */
.vps-domain-notice {
    display: flex; align-items: flex-start; gap: 10px;
    background: #ecfdf5; border: 1px solid #6ee7b7;
    border-radius: 12px; padding: 12px 14px;
    font-size: 14px; color: #065f46;
    margin-bottom: 14px; line-height: 1.5;
}
.vps-domain-notice i { color: #10b981; font-size: 15px; margin-top: 1px; flex-shrink: 0; }

/* ── Plan Cards Grid ── */
.plan-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.plan-select-grid.vps-grid {
    grid-template-columns: repeat(2, 1fr);
}
@media(max-width: 520px) {
    .plan-select-grid, .plan-select-grid.vps-grid { grid-template-columns: 1fr; }
}
.plan-select-card {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    background: #fafafa;
    transition: border-color .15s, background .15s, box-shadow .15s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.plan-select-card:hover { border-color: #99f6e4; background: #f8f7ff; box-shadow: 0 2px 8px rgba(20,184,166,.07); }
.plan-select-card.active.linux   { border-color: #14b8a6; background: #f0fdfa; box-shadow: 0 0 0 3px rgba(20,184,166,.1); }
.plan-select-card.active.windows { border-color: #14b8a6; background: #f0f9ff; box-shadow: 0 0 0 3px rgba(14,165,233,.1); }
.plan-select-card.active.vps     { border-color: #0d9488; background: #f0fdfa; box-shadow: 0 0 0 3px rgba(13,148,136,.1); }
.plan-select-card .p-name  { font-weight: 800; font-size: 14px; color: #1e293b; }
.summary-save-row { background: #f0fdf4; border: 1px dashed #86efac; color: #15803d; font-size: 14px; font-weight: 700; border-radius: 8px; padding: 7px 12px; margin: 6px 0 2px; }
.summary-save-row i { margin-right: 5px; }
.plan-select-card .p-deal { display: flex; align-items: center; gap: 7px; margin-top: 6px; }
.plan-select-card .p-price-was { font-size: 14px; font-weight: 600; color: #94a3b8; text-decoration: line-through; text-decoration-color: #ef4444; text-decoration-thickness: 1.5px; }
.plan-select-card .p-save-badge { background: #dcfce7; color: #15803d; font-size: 14px; font-weight: 800; letter-spacing: .4px; padding: 2px 9px; border-radius: 12px; white-space: nowrap; }
.plan-select-card .p-price { font-weight: 900; font-size: 21px; color: #0f172a; margin-top: 2px; line-height: 1.25; }
.plan-select-card .p-price small { font-size: 14px; font-weight: 600; color: #64748b; margin-left: 3px; }
.plan-select-card .p-desc  { font-size: 14px; color: #64748b; margin-top: 4px; line-height: 1.4; }
.plan-badge {
    position: absolute; top: 8px; right: 8px;
    font-size: 14px; font-weight: 700; padding: 2px 7px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: .04em;
}
.plan-badge.linux   { background: #ccfbf1; color: #0d9488; }
.plan-badge.windows { background: #e0f2fe; color: #0369a1; }
.plan-badge.vps     { background: #ccfbf1; color: #0f766e; }

/* ── Billing Cycles ── */
.cycle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media(max-width:500px){ .cycle-grid { grid-template-columns: 1fr; } }
.cycle-option { position: relative; }
.cycle-option input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.cycle-card {
    border: 2px solid #e2e8f0; border-radius: 12px;
    padding: 12px 14px; cursor: pointer; background: #fafafa;
    transition: all .15s; display: block; position: relative; overflow: hidden;
}
.cycle-card:hover { border-color: #5eead4; background: #f0fdfa; }
.cycle-option input:checked + .cycle-card {
    border-color: #14b8a6; background: #f0fdfa;
    box-shadow: 0 0 0 3px rgba(20,184,166,.1);
}
.cycle-card .cy-label { font-weight: 700; font-size: 14px; color: #1e293b; }
.cycle-card .cy-total { font-size: 1.2rem; font-weight: 900; color: #1e293b; margin: 3px 0 2px; }
.cycle-card .cy-total .cy-sym { font-size: .8rem; font-weight: 600; color: #64748b; }
.cycle-card .cy-per { font-size: 14px; color: #64748b; }
.cycle-card .cy-discount {
    display: inline-block; background: #dcfce7; color: #16a34a;
    border-radius: 20px; padding: 2px 7px; font-size: 14px; font-weight: 700; margin-top: 3px;
}
.cycle-card .cy-popular {
    position: absolute; top: 0; right: 0;
    background: #14b8a6; color: #fff; font-size: 14px; font-weight: 700;
    padding: 2px 8px; border-radius: 0 10px 0 8px; letter-spacing: .04em;
}

/* ── Qty Stepper ── */
.qty-btn {
    width: 36px; height: 36px; border-radius: 10px;
    border: 1.5px solid #e2e8f0; background: #f8fafc; color: #374151;
    font-size: 1.2rem; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s; flex-shrink: 0;
}
.qty-btn:hover { border-color: #14b8a6; background: #f0fdfa; color: #0d9488; }

/* ── Error / Field Error ── */
.error-banner {
    background: #fef2f2; border: 1px solid #fecaca;
    border-radius: 14px; padding: 14px 18px;
    margin-bottom: 24px; color: #dc2626; font-size: 14px;
}
.field-error {
    color: #dc2626; font-size: 14px; margin-top: 5px;
    display: flex; align-items: center; gap: 5px;
}

/* ── Hosting Panel (animated expand) ── */
#hostingConfigPanel {
    overflow: hidden;
    transition: max-height .3s ease, opacity .3s ease;
    max-height: 0;
    opacity: 0;
}
#hostingConfigPanel.open {
    max-height: 2000px;
    opacity: 1;
}

/* ── Summary Card ── */
.po-summary-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid #e8edf5;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    padding: 24px;
    position: sticky;
    top: 88px;
}
.po-summary-card h3 {
    font-size: 14px; font-weight: 800; color: #94a3b8;
    margin: 0 0 14px; padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    text-transform: uppercase; letter-spacing: .08em;
}
.summary-items { margin-bottom: 16px; }
.summary-item-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 9px 0; border-bottom: 1px solid #f8fafc;
    font-size: 14px; color: #475569;
}
.summary-item-row:last-child { border-bottom: none; }
.summary-item-row .item-info { font-weight: 600; color: #1e293b; }
.summary-item-row .item-price { font-weight: 700; color: #0f172a; text-align: right; white-space: nowrap; margin-left: 8px; }
.summary-item-row .item-sub { font-size: 14px; color: #94a3b8; margin-top: 2px; }

.po-price-box {
    background: linear-gradient(135deg, #f0fdfa 0%, #f0fdfa 100%);
    border-radius: 16px; padding: 18px 16px;
    text-align: center; margin-bottom: 14px;
    border: 1px solid #ccfbf1;
}
.po-price-box .po-price { font-size: 2.1rem; font-weight: 900; color: #0f172a; line-height: 1; }
.po-price-box .po-price .po-sym { font-size: 1rem; color: #64748b; font-weight: 600; }
.po-price-box .po-cycle-text { font-size: 14px; color: #14b8a6; font-weight: 700; margin-top: 6px; }

.currency-switcher-mini {
    display: flex; gap: 4px;
    background: #f1f5f9; border-radius: 24px; padding: 4px;
    border: 1px solid #e2e8f0; margin-bottom: 8px;
}
.currency-switcher-mini a {
    flex: 1; display: block; text-align: center; text-decoration: none;
    padding: 7px 0; border-radius: 20px; font-size: 14px; font-weight: 700;
    cursor: pointer; color: #64748b; transition: all .15s;
}
.currency-switcher-mini a.active {
    background: #fff; color: #0f172a; box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

/* ── Billing Period Toggle (subtle) ── */
.billing-switcher {
    display: flex; align-items: center; gap: 4px;
    margin-bottom: 14px; justify-content: flex-end;
}
.billing-switcher-label {
    font-size: 14px; color: #cbd5e1; font-weight: 500; margin-right: 4px;
}
.billing-switcher button {
    background: none; border: none; padding: 3px 8px;
    font-size: 14px; font-weight: 600; color: #cbd5e1;
    cursor: pointer; border-radius: 6px; transition: color .12s;
}
.billing-switcher button.active { color: #64748b; }
.billing-switcher button:hover { color: #94a3b8; }
.billing-switcher .bs-sep { color: #e2e8f0; font-size: 14px; }
.billing-switcher .bs-save { display: none; }

.po-payment-badge {
    display: flex; align-items: center; gap: 10px;
    background: #fef9f0; border: 1px solid #fed7aa;
    border-radius: 12px; padding: 11px 14px; margin-bottom: 14px; font-size: 14px;
}
.po-payment-badge.usd { background: #f0fdfa; border-color: #99f6e4; }
.po-payment-badge .badge-icon { font-size: 20px; }
.po-payment-badge .badge-text { color: #334155; }
.po-payment-badge .badge-text strong { color: #0f172a; display: block; font-size: 14px; margin-bottom: 1px; }

/* ── Submit Button ── */
.btn-po-submit {
    width: 100%; padding: 15px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff; border: none; border-radius: 14px;
    font-size: 15px; font-weight: 800; cursor: pointer;
    transition: all .2s; letter-spacing: .01em;
    box-shadow: 0 4px 14px rgba(20,184,166,.25);
}
.btn-po-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(20,184,166,.35); }
.btn-po-submit:active:not(:disabled) { transform: translateY(0); }
.btn-po-submit:disabled { opacity: .5; cursor: not-allowed; }


/* ── Mobile Floating Total ── */
.mobile-total-bar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: #fff; border-top: 1px solid #e2e8f0;
    padding: 12px 20px;
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    align-items: center; justify-content: space-between; gap: 12px;
}
@media(max-width:920px) {
    .mobile-total-bar { display: flex; }
}
.mobile-total-label { font-size: 14px; color: #64748b; font-weight: 600; }
.mobile-total-value { font-size: 1.2rem; font-weight: 900; color: #0f172a; line-height: 1; }
.mobile-total-btn {
    flex-shrink: 0;
    padding: 11px 22px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff; border: none; border-radius: 12px;
    font-size: 14px; font-weight: 800; cursor: pointer;
    box-shadow: 0 3px 10px rgba(20,184,166,.3);
}
.mobile-total-btn:disabled { opacity: .5; cursor: not-allowed; }

