/* ── Hostraha One-Page Checkout ─────────────────────────────── */

/* Base */
.opc-wrap {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    max-width: 1100px;
    margin: 0 auto;
}

/* Reset for radios/checkboxes — prevents Bootstrap .form-check-input override */
.opc-radio,
.opc-checkbox {
    position: static;
    margin: 0;
    appearance: auto;
    -webkit-appearance: auto;
    cursor: pointer;
    accent-color: #1C40F2;
}

/* ── Section Cards ──────────────────────────────────────────── */
.opc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}
.opc-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #f0f0f0;
}
.opc-step-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1C40F2, #0E23AE);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    flex-shrink: 0;
}
.opc-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}
.opc-card-body {
    padding: 24px;
}

/* ── Plan Section ───────────────────────────────────────────── */
.opc-plan-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}
.opc-plan-badge-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #1C40F2;
    font-size: 16px;
    border-radius: 12px;
    flex-shrink: 0;
}
.opc-plan-group {
    font-size: 11px;
    font-weight: 700;
    color: #1C40F2;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 2px;
}
.opc-plan-name {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

/* Plan features (product description) */
.opc-plan-features {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}
.opc-plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
}
.opc-plan-features ul li {
    position: relative;
    padding-left: 20px;
    font-size: 12.5px;
    color: #4b5563;
}
.opc-plan-features ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 9px;
    color: #16a34a;
    position: absolute;
    left: 0;
    top: 3px;
}
.opc-plan-features p {
    margin: 0 0 4px;
}

/* Billing cycle label */
.opc-cycles-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* Billing cycle pills */
.opc-cycles {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.opc-cycle-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
    background: #fff;
}
.opc-cycle-pill:hover {
    border-color: #c7d2fe;
    background: #f8f9ff;
}
.opc-cycle-pill.opc-cycle--active {
    border-color: #1C40F2;
    background: #f0f4ff;
    box-shadow: 0 0 0 3px rgba(28,64,242,0.08);
}
.opc-cycle-pill .opc-radio {
    width: 18px;
    height: 18px;
    accent-color: #1C40F2;
    cursor: pointer;
    flex-shrink: 0;
}
.opc-cycle-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}
.opc-cycle-pill.opc-cycle--active .opc-cycle-name {
    font-weight: 600;
    color: #111827;
}
.opc-cycle-price {
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
}
.opc-cycle-pill.opc-cycle--active .opc-cycle-price {
    color: #1C40F2;
}

/* ── Domain Section ─────────────────────────────────────────── */

/* Domain option selector (replaces old tabs) */
.opc-domain-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.opc-domain-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    margin: 0;
}
.opc-domain-opt:hover {
    border-color: #c7d2fe;
    background: #f8f9ff;
}
.opc-domain-opt.active {
    border-color: #1C40F2;
    background: #f0f4ff;
    box-shadow: 0 0 0 3px rgba(28,64,242,0.08);
}
.opc-domain-opt-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.2s;
}
.opc-domain-opt.active .opc-domain-opt-icon {
    background: linear-gradient(135deg, #1C40F2, #0E23AE);
    color: #fff;
}
.opc-domain-opt-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.opc-domain-opt-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}
.opc-domain-opt-desc {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Domain search box */
.opc-domain-box {
    background: #f9fafb;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
}
.opc-domain-search-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.opc-domain-search-wrap:focus-within {
    border-color: #1C40F2;
    box-shadow: 0 0 0 3px rgba(28,64,242,0.1);
}
.opc-domain-search-icon {
    padding: 0 4px 0 14px;
    color: #9ca3af;
    font-size: 14px;
    flex-shrink: 0;
}
.opc-domain-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 10px;
    font-size: 14px;
    color: #374151;
    background: transparent;
    min-width: 0;
}
.opc-domain-input::placeholder {
    color: #c7c7c7;
}
.opc-domain-search-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #1C40F2, #0E23AE);
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}
.opc-domain-search-btn:hover {
    background: linear-gradient(135deg, #1835d4, #0b1d96);
}

/* TLD badges */
.opc-domain-tlds {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.opc-tld-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

/* Domain result card */
.opc-domain-result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 10px;
}
.opc-domain-result-card--available {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
}
.opc-domain-result-card--added {
    background: #eff6ff;
    border: 1.5px solid #93c5fd;
}
.opc-domain-result-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.opc-domain-result-badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    flex-shrink: 0;
}
.opc-domain-result-badge--green {
    background: #16a34a;
    color: #fff;
}
.opc-domain-result-badge--blue {
    background: #1C40F2;
    color: #fff;
}
.opc-domain-result-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    word-break: break-all;
}
.opc-domain-result-price {
    font-size: 12px;
    color: #6b7280;
}
.opc-domain-result-status {
    font-size: 12px;
    color: #6b7280;
}
.opc-domain-result-right {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Domain section buttons */
.opc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.opc-btn--primary {
    background: linear-gradient(135deg, #1C40F2, #0E23AE);
    color: #fff;
}
.opc-btn--primary:hover {
    box-shadow: 0 2px 8px rgba(28,64,242,0.3);
}
.opc-btn--ghost {
    background: transparent;
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
}
.opc-btn--ghost:hover {
    border-color: #c7d2fe;
    color: #1C40F2;
}
.opc-btn--danger-ghost {
    background: transparent;
    color: #dc2626;
    border: 1.5px solid #fca5a5;
}
.opc-btn--danger-ghost:hover {
    background: #fef2f2;
}

/* Addon section */
.opc-addon-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}
.opc-addon-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.opc-addon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
}
.opc-addon-item:hover {
    border-color: #c7d2fe;
    background: #f8f9ff;
}
.opc-addon-item.opc-addon--active {
    border-color: #1C40F2;
    background: #f0f4ff;
}
.opc-addon-item .opc-checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #1C40F2;
    cursor: pointer;
}
.opc-addon-detail {
    flex: 1;
    min-width: 0;
}
.opc-addon-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.opc-addon-desc {
    display: block;
    font-size: 11px;
    color: #9ca3af;
}
.opc-addon-price {
    font-weight: 700;
    font-size: 13px;
    color: #1C40F2;
    white-space: nowrap;
}
.opc-addon-free {
    color: #16a34a;
    font-weight: 700;
}
.opc-free-domain-label {
    display: inline-block;
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.opc-free-domain-hint {
    margin-top: 10px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #15803d;
    font-size: 13px;
    font-weight: 500;
}
.opc-free-domain-hint i {
    color: #16a34a;
    margin-right: 4px;
}

/* Registration period pills */
.opc-period-pills {
    display: flex;
    gap: 6px;
}
.opc-period-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    transition: all 0.2s;
    margin: 0;
}
.opc-period-pill:hover {
    border-color: #c7d2fe;
}
.opc-period-pill.opc-period--active {
    border-color: #1C40F2;
    background: #f0f4ff;
    color: #1C40F2;
    font-weight: 600;
}
.opc-period-pill input {
    margin: 0;
    width: 14px;
    height: 14px;
    accent-color: #1C40F2;
    cursor: pointer;
}

/* Domain result text badges (used by JS) */
.domain-available { color: #16a34a; font-weight: 600; }
.domain-taken { color: #dc2626; font-weight: 600; }

/* ── Form Inputs ────────────────────────────────────────────── */
.opc-card .form-control,
.opc-card .form-select {
    padding: 10px 14px;
    font-size: 13.5px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    transition: border-color 0.2s;
}
.opc-card .form-control:focus,
.opc-card .form-select:focus {
    border-color: #1C40F2;
    box-shadow: 0 0 0 3px rgba(28,64,242,0.1);
}
.opc-card .form-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

/* Auth tabs */
.opc-auth-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px !important;
    border: none !important;
}
.opc-auth-tabs .nav-link {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 8px 16px;
    transition: all 0.2s;
}
.opc-auth-tabs .nav-link:hover {
    background: #eff2ff;
    border-color: #c7d2fe !important;
    color: #1C40F2;
}
.opc-auth-tabs .nav-link.active {
    background: #1C40F2 !important;
    border-color: #1C40F2 !important;
    color: #fff !important;
}

/* Logged-in badge */
.opc-logged-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}
.opc-logged-badge i { color: #16a34a; font-size: 18px; }
.opc-logged-badge p { margin: 0; font-size: 13.5px; color: #374151; }
.opc-logged-badge strong { color: #111827; }
.opc-logged-badge a { font-size: 12px; color: #6b7280; }

/* ── Payment Methods ────────────────────────────────────────── */
.opc-payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.opc-payment-option:hover {
    border-color: #c7d2fe;
    background: #f8f9ff;
}
.opc-payment-option.opc-payment--active {
    border-color: #1C40F2;
    background: #f0f4ff;
    box-shadow: 0 0 0 3px rgba(28,64,242,0.08);
}
.opc-payment-option .opc-radio {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #1C40F2;
    cursor: pointer;
}
.opc-payment-option label {
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: #374151;
    margin: 0;
}

/* ── Order Summary Sidebar ──────────────────────────────────── */
.opc-sidebar {
    position: sticky;
    top: 20px;
    border: none !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);
}
.opc-sidebar .card-header {
    background: linear-gradient(135deg, #1C40F2 0%, #0E23AE 100%) !important;
    color: #fff;
    padding: 18px 22px;
    border-bottom: none !important;
}
.opc-sidebar .card-header h5 {
    font-size: 16px;
    font-weight: 700;
    color: #fff !important;
    margin: 0;
}
.opc-sidebar .card-body {
    padding: 22px;
    font-size: 13.5px;
}
.opc-sidebar hr {
    border-color: #f0f0f0;
    opacity: 1;
    margin: 12px 0;
}

/* Currency selector */
#opc-currency {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 28px 5px 10px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 01.708 0L8 10.293l5.646-5.647a.5.5 0 01.708.708l-6 6a.5.5 0 01-.708 0l-6-6a.5.5 0 010-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
}
#opc-currency:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}
#opc-currency option {
    background: #0E23AE;
    color: #fff;
}

/* Summary total */
.opc-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}
.opc-total-label {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}
.opc-total-amount {
    font-size: 22px;
    font-weight: 800;
    color: #1C40F2;
}

/* Summary line items */
.opc-summary-group {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 6px;
}
.opc-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 13.5px;
    color: #374151;
}
.opc-summary-line strong {
    color: #111827;
}

/* Promo input */
.opc-promo-group {
    display: flex;
    gap: 8px;
}
.opc-promo-group .form-control {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
}
.opc-promo-group .form-control:focus {
    border-color: #1C40F2;
    box-shadow: 0 0 0 3px rgba(28,64,242,0.1);
    outline: none;
}
.opc-promo-group .btn {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
}

/* Place order button */
#btn-place-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1C40F2, #0E23AE);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
#btn-place-order:hover {
    background: linear-gradient(135deg, #1835d4, #0b1d96);
    box-shadow: 0 4px 14px rgba(28,64,242,0.3);
    transform: translateY(-1px);
}
#btn-place-order:active {
    transform: translateY(0);
}
#btn-place-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading spinner */
.opc-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: opc-spin 0.6s linear infinite;
    vertical-align: middle;
}
@keyframes opc-spin {
    to { transform: rotate(360deg); }
}

/* Error display */
#order-error {
    font-weight: 600;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 13px;
}

/* Secure badge */
.opc-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 0;
    font-size: 11.5px;
    color: #9ca3af;
}
.opc-secure-badge i {
    font-size: 12px;
    color: #16a34a;
}

/* Button overrides inside cards */
.opc-card .btn-success {
    background: #16a34a;
    border-color: #16a34a;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
}
.opc-card .btn-success:hover {
    background: #15803d;
    border-color: #15803d;
}
.opc-card .btn-outline-primary {
    color: #1C40F2;
    border-color: #1C40F2;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
}
.opc-card .btn-outline-primary:hover {
    background: #1C40F2;
    color: #fff;
}
.opc-card .btn-outline-secondary {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}
.opc-card .btn-outline-danger {
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}
.opc-card .btn-primary {
    background: #1C40F2;
    border-color: #1C40F2;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
}
.opc-card .btn-primary:hover {
    background: #0E23AE;
    border-color: #0E23AE;
}

/* ── Responsive ─────────────────────────────────────────────── */

/* Tablet: sidebar un-sticks, layout goes full-width */
@media (max-width: 991px) {
    .opc-sidebar {
        position: static;
        margin-top: 8px;
    }
    .opc-wrap .col-lg-8,
    .opc-wrap .col-lg-4 {
        width: 100%;
        max-width: 100%;
    }
}

/* Small tablets / large phones */
@media (max-width: 767px) {
    .opc-wrap {
        padding-left: 8px;
        padding-right: 8px;
    }
    .opc-card {
        border-radius: 10px;
        margin-bottom: 14px;
    }
    .opc-card-header {
        padding: 12px 16px;
        gap: 10px;
    }
    .opc-card-title {
        font-size: 14px;
    }
    .opc-step-num {
        width: 24px;
        height: 24px;
        font-size: 11px;
        border-radius: 6px;
    }
    .opc-card-body {
        padding: 16px;
    }

    /* Plan section */
    .opc-plan-name {
        font-size: 16px;
    }
    .opc-plan-features {
        font-size: 12px;
        margin-bottom: 16px;
        padding-bottom: 16px;
    }
    .opc-plan-features ul {
        grid-template-columns: 1fr;
        gap: 3px;
    }
    .opc-plan-features ul li {
        font-size: 12px;
    }

    /* Billing cycles — full width stack */
    .opc-cycles {
        flex-direction: column;
        gap: 8px;
    }
    .opc-cycle-pill {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
        width: 100%;
        padding: 12px 16px;
        border-radius: 10px;
    }
    .opc-cycle-pill .form-check-input {
        position: static;
        margin: 0;
        order: -1;
        flex-shrink: 0;
    }
    .opc-cycle-name {
        flex: 1;
        text-align: left;
        margin-left: 10px;
        font-size: 13px;
    }
    .opc-cycle-price {
        font-size: 14px;
        text-align: right;
        white-space: nowrap;
    }

    /* Domain options — stack to single column */
    .opc-domain-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .opc-domain-opt {
        padding: 12px 14px;
    }

    /* Domain search box */
    .opc-domain-box {
        padding: 14px;
    }
    .opc-domain-search-wrap {
        flex-wrap: wrap;
    }
    .opc-domain-search-icon {
        display: none;
    }
    .opc-domain-input {
        width: 100%;
        padding: 11px 12px;
        font-size: 13px;
    }
    .opc-domain-search-btn {
        width: 100%;
        padding: 11px 16px;
        font-size: 13px;
        border-radius: 0 0 10px 10px;
    }
    .opc-domain-tlds {
        gap: 4px;
    }
    .opc-tld-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    /* Domain result cards stack */
    .opc-domain-result-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
    }
    .opc-domain-result-right {
        width: 100%;
    }
    .opc-domain-result-right .opc-btn {
        flex: 1;
        justify-content: center;
    }

    /* Addon items */
    .opc-addon-item {
        padding: 8px 10px;
        gap: 8px;
    }
    .opc-addon-label {
        font-size: 12px;
    }
    .opc-addon-desc {
        display: none;
    }
    .opc-addon-price {
        font-size: 12px;
    }

    /* Period pills */
    .opc-period-pills {
        gap: 4px;
    }
    .opc-period-pill {
        padding: 5px 10px;
        font-size: 11.5px;
    }

    /* Auth tabs */
    .opc-auth-tabs {
        gap: 4px;
    }
    .opc-auth-tabs .nav-link {
        font-size: 12px;
        padding: 7px 12px;
    }

    /* Payment options */
    .opc-payment-option {
        padding: 10px 14px;
        border-radius: 8px;
    }
    .opc-payment-option label {
        font-size: 13px;
    }

    /* Logged-in badge */
    .opc-logged-badge {
        padding: 12px 14px;
        gap: 10px;
    }
    .opc-logged-badge p {
        font-size: 12.5px;
    }

    /* Sidebar */
    .opc-sidebar {
        border-radius: 12px !important;
    }
    .opc-sidebar .card-header {
        padding: 14px 16px;
    }
    .opc-sidebar .card-header h5 {
        font-size: 14px;
    }
    .opc-sidebar .card-body {
        padding: 16px;
        font-size: 13px;
    }
    .opc-total-amount {
        font-size: 18px;
    }
    .opc-total-label {
        font-size: 13px;
    }
    #btn-place-order {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 10px;
    }

    /* Form inputs */
    .opc-card .form-control,
    .opc-card .form-select {
        padding: 9px 12px;
        font-size: 13px;
    }
    .opc-card .form-label {
        font-size: 11px;
    }

    /* Domain search input group */
    .opc-card .input-group {
        flex-wrap: nowrap;
    }
    .opc-card .input-group .btn {
        white-space: nowrap;
        font-size: 12px;
        padding: 8px 12px;
    }

    /* Promo input */
    .opc-promo-group .form-control {
        font-size: 12px;
        padding: 8px 10px;
    }
    .opc-promo-group .btn {
        font-size: 11px;
        padding: 8px 10px;
    }

    /* Alerts */
    .opc-card .alert {
        font-size: 12px;
        padding: 8px 12px;
    }
    .opc-card .alert .btn-sm {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* Very small phones */
@media (max-width: 400px) {
    .opc-wrap {
        padding-left: 4px;
        padding-right: 4px;
    }
    .opc-card-body {
        padding: 12px;
    }
    .opc-card-header {
        padding: 10px 12px;
    }

    /* Domain option cards compact */
    .opc-domain-opt {
        padding: 10px 12px;
        gap: 10px;
    }
    .opc-domain-opt-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .opc-domain-opt-title {
        font-size: 12px;
    }
    .opc-domain-opt-desc {
        font-size: 10px;
    }
    .opc-domain-box {
        padding: 10px;
    }
    .opc-domain-result-card {
        padding: 10px 12px;
    }
    .opc-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    /* Auth tabs full width */
    .opc-auth-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    .opc-auth-tabs .nav-link {
        text-align: center;
        justify-content: center;
        font-size: 11.5px;
        padding: 7px 8px;
    }

    .opc-cycle-pill {
        padding: 10px 12px;
    }
    .opc-cycle-name {
        font-size: 12px;
    }
    .opc-cycle-price {
        font-size: 13px;
    }

    .opc-total-amount {
        font-size: 16px;
    }
    .opc-sidebar .card-body {
        padding: 12px;
    }
    .opc-sidebar .card-header {
        padding: 12px;
    }
}

/* ── Inline logged-in state ──────────────────────────────── */
.opc-logged-in-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}
.opc-logged-check {
    font-size: 24px;
    line-height: 1;
}
.opc-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 2px 10px;
    margin-left: auto;
}

/* ── Auth Modal ────────────────────────────────────────────── */
.opc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: opc-fade-in 0.2s ease;
}
@keyframes opc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.opc-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: opc-slide-up 0.25s ease;
}
@keyframes opc-slide-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.opc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
}
.opc-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.opc-modal-title i {
    color: #1C40F2;
    margin-right: 6px;
}
.opc-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.opc-modal-close:hover {
    color: #374151;
}
.opc-modal-body {
    padding: 24px;
}

/* Modal tabs */
.opc-modal-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}
.opc-modal-tab {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.opc-modal-tab:hover {
    background: #eff2ff;
    border-color: #c7d2fe;
    color: #1C40F2;
}
.opc-modal-tab.active {
    background: #1C40F2;
    border-color: #1C40F2;
    color: #fff;
}
.opc-modal-tab i {
    margin-right: 4px;
}

/* Modal panes */
.opc-modal-pane {
    display: none;
}
.opc-modal-pane.active {
    display: block;
}

/* Modal form fields */
.opc-modal-field {
    margin-bottom: 14px;
}
.opc-modal-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}
.opc-modal-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 13.5px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.opc-modal-input:focus {
    border-color: #1C40F2;
    box-shadow: 0 0 0 3px rgba(28,64,242,0.1);
    outline: none;
}
.opc-modal-input.opc-modal-input--error {
    border-color: #dc2626;
    background: #fef2f2;
}

/* Modal row (side-by-side fields) */
.opc-modal-row {
    display: flex;
    gap: 12px;
}
.opc-modal-half {
    flex: 1;
    min-width: 0;
}

/* Modal buttons */
.opc-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1C40F2, #0E23AE);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
}
.opc-modal-btn:hover {
    box-shadow: 0 4px 14px rgba(28,64,242,0.3);
    transform: translateY(-1px);
}
.opc-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.opc-modal-btn--ghost {
    background: #fff;
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
}
.opc-modal-btn--ghost:hover {
    border-color: #c7d2fe;
    color: #1C40F2;
    box-shadow: none;
    transform: none;
}

/* Modal error/warning */
.opc-modal-error {
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}
.opc-modal-warn {
    color: #d97706;
    font-size: 12px;
    margin-top: 4px;
}
.opc-modal-warn i {
    margin-right: 4px;
}

/* Step indicator */
.opc-modal-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
}
.opc-modal-step {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    background: #f3f4f6;
    color: #9ca3af;
    border: 2px solid #e5e7eb;
    transition: all 0.2s;
}
.opc-modal-step.active {
    background: #1C40F2;
    color: #fff;
    border-color: #1C40F2;
}
.opc-modal-step.done {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}
.opc-modal-step-line {
    width: 40px;
    height: 2px;
    background: #e5e7eb;
    transition: background 0.2s;
}
.opc-modal-step-line.active {
    background: #1C40F2;
}

/* ── Modal Responsive ──────────────────────────────────────── */
@media (max-width: 520px) {
    .opc-modal {
        max-width: calc(100% - 24px);
        margin: 12px;
        border-radius: 12px;
    }
    .opc-modal-header {
        padding: 14px 16px;
    }
    .opc-modal-title {
        font-size: 14px;
    }
    .opc-modal-body {
        padding: 16px;
    }
    .opc-modal-tabs {
        gap: 4px;
    }
    .opc-modal-tab {
        font-size: 12px;
        padding: 8px 10px;
    }
    .opc-modal-row {
        flex-direction: column;
        gap: 0;
    }
    .opc-modal-half {
        width: 100%;
    }
    .opc-modal-btn {
        font-size: 13px;
        padding: 11px 16px;
    }
    .opc-modal-input {
        font-size: 13px;
        padding: 9px 12px;
    }
}
