/* =========================================================
   PC DRIVER BOOSTER — BUY NOW PAGE
========================================================= */

.buy-page {
    --buy-primary:       #0047ff;
    --buy-primary-dark:  #0038c7;
    --buy-primary-light: #eff4ff;
    --buy-success:       #16a34a;
    --buy-success-light: #dcfce7;
    --buy-danger:        #dc2626;
    --buy-dark:          #0f172a;
    --buy-text:          #334155;
    --buy-muted:         #64748b;
    --buy-border:        #e2e8f0;
    --buy-bg:            #f1f5f9;
    --buy-card:          #ffffff;
    --buy-radius:        14px;

    width: 100%;
    min-height: 80vh;
    background: var(--buy-bg);
    font-family: inherit;
    padding: 0 0 80px;
}

.buy-page *,
.buy-page *::before,
.buy-page *::after {
    box-sizing: border-box;
}

/* =========================================================
   PAGE HERO BANNER
========================================================= */

.buy-hero {
    width: 100%;
    background: linear-gradient(110deg, #0b1733 0%, #102b63 48%, #1d4ed8 100%);
    padding: 56px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.buy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.07) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.buy-hero-inner {
    position: relative;
    z-index: 1;
}

.buy-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 6px 16px;
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.buy-hero-badge i {
    font-size: 10px;
    color: #ffd700;
}

.buy-hero h1 {
    color: #ffffff;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.1;
    margin: 0 0 14px;
}

.buy-hero h1 span {
    color: #ffffff;
}

.buy-hero p {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    margin: 0;
}

/* =========================================================
   MAIN LAYOUT
========================================================= */

.buy-container {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

.buy-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 28px;
    align-items: start;
    padding-top: 48px;
}

/* =========================================================
   CARDS
========================================================= */

.buy-card {
    background: var(--buy-card);
    border-radius: var(--buy-radius);
    border: 1px solid var(--buy-border);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.buy-card-header {
    padding: 22px 26px 18px;
    border-bottom: 1px solid var(--buy-border);
}

.buy-card-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--buy-dark);
    margin: 0 0 4px;
    letter-spacing: -0.4px;
}

.buy-card-header p {
    font-size: 13px;
    color: var(--buy-muted);
    margin: 0;
}

.buy-card-body {
    padding: 24px 26px;
}

/* =========================================================
   PAYMENT METHOD
========================================================= */

.payment-method-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--buy-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.payment-method-sub {
    font-size: 13px;
    color: var(--buy-muted);
    margin-bottom: 14px;
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-option {
    position: relative;
    border: 2px solid var(--buy-border);
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.22s ease;
    background: #fff;
}

.payment-option:hover {
    border-color: var(--buy-primary);
    background: var(--buy-primary-light);
}

.payment-option.selected {
    border-color: var(--buy-primary);
    background: var(--buy-primary-light);
}

.payment-option-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--buy-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.2s ease;
}

.payment-option.selected .payment-option-check {
    opacity: 1;
    transform: scale(1);
}

.payment-option-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--buy-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-bottom: 10px;
}

.payment-option h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--buy-dark);
    margin: 0 0 4px;
}

.payment-option p {
    font-size: 11px;
    color: var(--buy-muted);
    margin: 0;
    line-height: 1.5;
}

/* =========================================================
   PRODUCT SELECTION
========================================================= */

.product-option {
    border: 2px solid var(--buy-border);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.22s ease;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.product-option:last-child {
    margin-bottom: 0;
}

.product-option:hover {
    border-color: var(--buy-primary);
}

.product-option.selected {
    border-color: var(--buy-primary);
    background: var(--buy-primary-light);
}

.product-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--buy-border);
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.product-option.selected .product-radio {
    border-color: var(--buy-primary);
    background: var(--buy-primary);
}

.product-option.selected .product-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.product-info {
    flex: 1;
}

.product-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--buy-dark);
    margin: 0 0 2px;
}

.product-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--buy-primary);
    background: var(--buy-primary-light);
    border-radius: 4px;
    padding: 2px 7px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.product-features {
    font-size: 12px;
    color: var(--buy-muted);
    line-height: 1.6;
    margin: 0;
}

.product-price {
    text-align: right;
    flex-shrink: 0;
}

.product-price .price-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--buy-dark);
    display: block;
}

.product-price .price-note {
    font-size: 11px;
    color: var(--buy-primary);
    font-weight: 600;
}

/* =========================================================
   LICENSE COUNTER
========================================================= */

.license-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0 0;
    margin-top: 18px;
    border-top: 1px solid var(--buy-border);
}

.license-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--buy-text);
}

.license-sub {
    font-size: 11px;
    color: var(--buy-muted);
    margin-top: 2px;
}

.license-counter {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--buy-border);
    border-radius: 8px;
    overflow: hidden;
}

.license-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--buy-bg);
    color: var(--buy-text);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.license-btn:hover {
    background: var(--buy-primary-light);
    color: var(--buy-primary);
}

.license-count {
    width: 40px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--buy-border);
    border-right: 1px solid var(--buy-border);
    font-size: 14px;
    font-weight: 700;
    color: var(--buy-dark);
    background: white;
    outline: none;
}

/* =========================================================
   ORDER TOTAL
========================================================= */

.order-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px;
    border-top: 2px solid var(--buy-border);
    background: #fafbff;
}

.order-total-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--buy-text);
}

.order-total-amount {
    font-size: 26px;
    font-weight: 800;
    color: var(--buy-dark);
    letter-spacing: -0.5px;
}

.buy-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 14px 26px;
    background: #f8fafc;
    border-top: 1px solid var(--buy-border);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--buy-muted);
}

.trust-badge i {
    font-size: 12px;
}

.trust-badge.green i { color: #16a34a; }
.trust-badge.blue  i { color: var(--buy-primary); }
.trust-badge.gold  i { color: #d97706; }

/* =========================================================
   BILLING INFO CARD
========================================================= */

.billing-section-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--buy-muted);
    margin: 0 0 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--buy-text);
}

.form-control {
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--buy-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--buy-dark);
    background: white;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    font-family: inherit;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    border-color: var(--buy-primary);
    box-shadow: 0 0 0 3px rgba(0, 71, 255, 0.08);
}

.form-control.is-invalid,
select.form-control.is-invalid,
input.form-control.is-invalid,
input.is-invalid {
    border: 2px solid #dc2626 !important;
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
    background-color: #fff8f8 !important;
}

input[type="checkbox"].is-invalid {
    outline: 2px solid #dc2626 !important;
    outline-offset: 2px;
}

.field-error {
    display: block;
    color: #dc2626 !important;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
    line-height: 1.3;
}

select.form-control {
    cursor: pointer;
    appearance: auto;
}

.phone-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
}

/* =========================================================
   CARD DETAILS
========================================================= */

.card-details-box {
    border: 1.5px solid var(--buy-border);
    border-radius: 8px;
    background: white;
    overflow: hidden;
    margin-bottom: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-details-box:focus-within {
    border-color: var(--buy-primary);
    box-shadow: 0 0 0 3px rgba(0, 71, 255, 0.08);
}

.card-row-inner {
    display: grid;
    grid-template-columns: 1fr 100px 80px;
    gap: 0;
}

.card-icon-wrap {
    display: flex;
    align-items: center;
    gap: 0;
}

.card-row-inner input {
    height: 44px;
    border: none;
    border-left: 1.5px solid var(--buy-border);
    border-radius: 0;
    font-size: 14px;
    padding: 0 14px;
    color: var(--buy-dark);
    outline: none;
    font-family: inherit;
    width: 100%;
    background: transparent;
}

.card-row-inner input:first-child {
    border-left: none;
}

.card-row-inner input::placeholder {
    color: #94a3b8;
}

.card-icons {
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
    border-left: 1.5px solid var(--buy-border);
}

.card-icons i {
    font-size: 18px;
    color: var(--buy-muted);
}

/* =========================================================
   TERMS AGREE
========================================================= */

.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 22px;
}

.terms-row input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: var(--buy-primary);
    flex-shrink: 0;
    cursor: pointer;
}

.terms-row label {
    font-size: 13px;
    color: var(--buy-muted);
    cursor: pointer;
    line-height: 1.5;
}

.terms-row label a {
    color: var(--buy-primary);
    text-decoration: none;
    font-weight: 600;
}

.terms-row label a:hover {
    text-decoration: underline;
}

/* =========================================================
   BUY BUTTON ROW
========================================================= */

.buy-action-row {
    display: flex;
    align-items: stretch;
    gap: 16px;
    margin-top: 4px;
}

.buy-now-btn {
    flex: 1;
    height: 54px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0047ff 0%, #0038c7 100%);
    color: white;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(0, 71, 255, 0.28);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.buy-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 71, 255, 0.38);
}

.buy-now-btn:active {
    transform: translateY(0);
}

.buy-total-pill {
    background: var(--buy-bg);
    border: 1.5px solid var(--buy-border);
    border-radius: 10px;
    padding: 10px 16px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.buy-total-pill .pill-licenses {
    font-size: 10px;
    font-weight: 700;
    color: var(--buy-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.buy-total-pill .pill-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--buy-dark);
    letter-spacing: -0.5px;
}

.form-error-msg {
    margin-top: 14px;
    padding: 11px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-error-msg i {
    font-size: 16px;
    color: #dc2626;
    flex-shrink: 0;
}

/* =========================================================
   SECTION DIVIDER
========================================================= */

.billing-divider {
    height: 1px;
    background: var(--buy-border);
    margin: 22px 0;
}

/* =========================================================
   SECURITY STRIP
========================================================= */

.security-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 28px;
    padding: 16px 20px;
    background: white;
    border: 1px solid var(--buy-border);
    border-radius: 10px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--buy-muted);
}

.security-item i {
    font-size: 14px;
    color: var(--buy-primary);
}

.security-item.green i { color: #16a34a; }

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
    .buy-layout {
        grid-template-columns: 1fr;
    }

    .buy-card-body {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .buy-hero {
        padding: 40px 20px 48px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .buy-action-row {
        flex-direction: column;
    }

    .buy-total-pill {
        width: 100%;
    }

    .payment-options {
        grid-template-columns: 1fr;
    }

    .security-strip {
        flex-wrap: wrap;
        gap: 14px;
    }

    .card-row-inner {
        grid-template-columns: 1fr;
    }

    .card-row-inner input {
        border-left: none;
        border-top: 1.5px solid var(--buy-border);
    }

    .card-row-inner input:first-child {
        border-top: none;
    }

    .card-icons {
        border-left: none;
        border-top: 1.5px solid var(--buy-border);
        padding: 10px 14px;
    }
}
