/**
 * YPB COA Verify - Public Styles
 * Login, Upload Portal, and Verification pages
 */

/* === RESET & BASE === */
.ypb-afi-portal,
.ypb-portal,
.ypb-afi-login,
.ypb-portal-login,
.ypb-verify-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* === LOGIN PAGE === */
.ypb-afi-login,
.ypb-portal-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.ypb-login-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.ypb-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.ypb-login-header h1 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.ypb-login-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.ypb-btn-login {
    width: 100%;
    padding: 14px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ypb-btn-login:hover {
    background: #005a87;
}

.ypb-btn-login:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* === PORTAL HEADER === */
.ypb-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.ypb-portal-header h2 {
    margin: 0;
    font-size: 24px;
}

.ypb-logout-btn {
    padding: 8px 20px;
    background: #dc3545;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.ypb-logout-btn:hover {
    background: #c82333;
    color: #fff;
}

/* === TABS === */
.ypb-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0;
}

.ypb-tab {
    padding: 12px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.ypb-tab:hover {
    color: #0073aa;
}

.ypb-tab.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.ypb-tab-content {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 30px;
}

/* === FORM SECTIONS === */
.ypb-form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #e0e0e0;
}

.ypb-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ypb-form-section h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

/* === UPLOAD ZONE === */
.ypb-upload-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: #fafafa;
    overflow: hidden;
}

.ypb-upload-zone:hover {
    border-color: #0073aa;
    background: #f0f7fc;
}

.ypb-upload-zone.drag-over {
    border-color: #0073aa;
    background: #e8f4fc;
}

.ypb-upload-zone.has-file {
    border-color: #28a745;
    background: #f0fff4;
}

.ypb-upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.ypb-upload-zone p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.ypb-file-selected {
    margin-top: 15px;
    padding: 12px 15px;
    background: #e8f4fc;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

/* === FORM ELEMENTS === */
.ypb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .ypb-form-row {
        grid-template-columns: 1fr;
    }
}

.ypb-form-group {
    margin-bottom: 20px;
}

.ypb-form-row .ypb-form-group {
    margin-bottom: 0;
}

.ypb-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.ypb-form-group label .required {
    color: #dc3545;
}

.ypb-form-group input[type="text"],
.ypb-form-group input[type="number"],
.ypb-form-group input[type="date"],
.ypb-form-group input[type="password"],
.ypb-form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.ypb-form-group input:focus,
.ypb-form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.ypb-form-error {
    color: #dc3545;
    background: #fff5f5;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* === TEST TOGGLES === */
.ypb-test-note {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.ypb-test-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ypb-test-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.ypb-test-toggle:hover {
    background: #eee;
}

.ypb-test-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.ypb-test-toggle input[type="checkbox"]:checked + span {
    color: #28a745;
    font-weight: 500;
}

/* === SUBMIT BUTTON === */
.ypb-btn-submit {
    width: 100%;
    padding: 16px 30px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 20px;
}

.ypb-btn-submit:hover {
    background: #005a87;
}

.ypb-btn-submit:disabled {
    background: #999;
    cursor: not-allowed;
}

/* === SUCCESS MODAL === */
.ypb-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.ypb-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.ypb-success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.ypb-modal-content h2 {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #28a745;
}

.ypb-result-details {
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.ypb-result-details p {
    margin: 0 0 10px 0;
    font-size: 15px;
}

.ypb-result-details p:last-child {
    margin-bottom: 0;
}

.ypb-result-details span {
    font-family: monospace;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 16px;
}

.ypb-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.ypb-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.ypb-btn-primary {
    background: #0073aa;
    color: #fff;
}

.ypb-btn-primary:hover {
    background: #005a87;
    color: #fff;
}

.ypb-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.ypb-btn-secondary:hover {
    background: #e0e0e0;
}

/* === HISTORY TABLE === */
.ypb-history-table {
    width: 100%;
    border-collapse: collapse;
}

.ypb-history-table th {
    background: #f5f5f5;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #666;
    border-bottom: 2px solid #e0e0e0;
}

.ypb-history-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.ypb-history-table tbody tr:hover {
    background: #f9f9f9;
}

.ypb-view-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.ypb-view-link:hover {
    text-decoration: underline;
}

/* === VERIFICATION PAGE === */
.ypb-verify-page {
    max-width: 600px;
}

.ypb-verify-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 40px;
}

.ypb-verify-box h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    text-align: center;
}

.ypb-verify-box > p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

#ypb-verify-result {
    margin-top: 25px;
}

.ypb-verified {
    background: #f0fff4;
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 25px;
}

.ypb-verified .ypb-btn-view-pdf {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
    white-space: nowrap;
    margin-top: 8px;
}

.ypb-verified .ypb-btn-view-pdf:hover {
    background: #218838;
    color: #fff;
}

.ypb-verified .ypb-btn-view-pdf:visited {
    color: #fff;
}

.ypb-verified-header {
    font-size: 20px;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ypb-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
}

.ypb-verified-details {
    width: 100%;
    margin-bottom: 20px;
}

.ypb-verified-details td {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.ypb-verified-details td:first-child {
    color: #666;
    width: 120px;
}

/* Mobile adjustments for verified result */
@media (max-width: 480px) {
    .ypb-verify-box {
        padding: 24px 18px;
    }
    
    .ypb-verified {
        padding: 20px 16px;
    }
    
    .ypb-verified-details td:first-child {
        width: 90px;
        font-size: 14px;
    }
    
    .ypb-verified-details td:last-child {
        word-break: break-word;
    }
    
    .ypb-verified-header {
        font-size: 18px;
    }
}

.ypb-not-verified {
    background: #fff5f5;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 25px;
    color: #dc3545;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ypb-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
}

.ypb-error {
    background: #fff5f5;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 15px;
    color: #dc3545;
}

/* ========================================
   BRANDED COA STORE
   Dark theme matching YPB design system
   ======================================== */

.bcoa-store {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e2e8f0;
    background: #0b0f19;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Page title hiding is handled by inline CSS in the shortcode output */

.bcoa-store *,
.bcoa-store *::before,
.bcoa-store *::after {
    box-sizing: border-box;
}

/* Header */
.bcoa-header {
    text-align: center;
    margin-bottom: 30px;
}

.bcoa-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 6px 0;
}

.bcoa-header p {
    color: #94a3b8;
    font-size: 15px;
    margin: 0;
}

/* Sections */
.bcoa-section {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.bcoa-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.bcoa-section-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
    flex: 1;
}

.bcoa-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* SKU summary badge */
.bcoa-sku-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #94a3b8;
}

.bcoa-total-badge {
    background: #1e293b;
    color: #3b82f6;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Form elements */
.bcoa-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .bcoa-form-row {
        grid-template-columns: 1fr;
    }
}

.bcoa-form-group {
    margin-bottom: 16px;
}

.bcoa-form-row .bcoa-form-group {
    margin-bottom: 0;
}

.bcoa-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
}

.bcoa-form-group label .required {
    color: #ef4444;
}

.bcoa-form-group input[type="text"],
.bcoa-form-group input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    background: #0d1424 !important;
    border: 1px solid #1e293b !important;
    border-radius: 8px;
    color: #e2e8f0 !important;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bcoa-form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.bcoa-form-group input::placeholder {
    color: #475569;
}

.bcoa-field-desc {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

/* Search bar */
.bcoa-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.bcoa-search-bar input {
    flex: 1;
    padding: 9px 14px;
    background: #0d1424;
    border: 1px solid #1e293b;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    font-family: inherit;
}

.bcoa-search-bar input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.bcoa-search-bar input::placeholder {
    color: #475569;
}

.bcoa-search-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.bcoa-link-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: inherit;
    transition: background 0.15s;
}

.bcoa-link-btn:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* SKU list */
.bcoa-sku-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #1e293b;
    border-radius: 8px;
}

.bcoa-sku-list::-webkit-scrollbar {
    width: 6px;
}

.bcoa-sku-list::-webkit-scrollbar-track {
    background: #111827;
}

.bcoa-sku-list::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

.bcoa-sku-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #1e293b;
}

.bcoa-sku-item:last-child {
    border-bottom: none;
}

.bcoa-sku-item:hover {
    background: #1a2235;
}

.bcoa-sku-item.selected {
    background: rgba(59, 130, 246, 0.08);
}

.bcoa-sku-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    flex-shrink: 0;
    cursor: pointer;
}

.bcoa-sku-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #3b82f6;
    font-weight: 500;
    min-width: 80px;
}

.bcoa-sku-name {
    flex: 1;
    font-size: 14px;
    color: #cbd5e1;
}

.bcoa-sku-check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.bcoa-sku-item.selected .bcoa-sku-check::after {
    content: "\2713";
    color: #10b981;
    font-size: 16px;
    font-weight: 700;
}

/* Pricing */
.bcoa-pricing {
    background: #0d1424;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.bcoa-price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#bcoa-price-desc {
    font-size: 14px;
    color: #94a3b8;
}

.bcoa-price-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
}

.bcoa-discount-note {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #1e293b;
    font-size: 13px;
    color: #f59e0b;
}

/* Checkout button */
.bcoa-checkout-btn {
    width: 100%;
    padding: 16px 24px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.bcoa-checkout-btn:hover:not(:disabled) {
    background: #2563eb;
}

.bcoa-checkout-btn:active:not(:disabled) {
    transform: scale(0.99);
}

.bcoa-checkout-btn:disabled {
    background: #1e293b;
    color: #475569;
    cursor: not-allowed;
}

/* Error */
.bcoa-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    color: #ef4444;
    font-size: 14px;
}

/* Access code section */
.bcoa-access-code {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #1e293b;
}

#bcoa-access-input {
    padding: 8px 12px;
    background: #0d1424;
    border: 1px solid #1e293b;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
}

#bcoa-access-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

#bcoa-access-input::placeholder {
    color: #475569;
}

/* Restricted SKU indicator (shown when access code grants visibility) */
.bcoa-sku-item.bcoa-restricted .bcoa-sku-code::after {
    content: "restricted";
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Pending COA badge on SKU items */
.bcoa-sku-badge.bcoa-badge-pending {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-left: auto;
    flex-shrink: 0;
}

.bcoa-sku-item.bcoa-no-coa {
    opacity: 0.7;
}

.bcoa-sku-item.bcoa-no-coa:hover {
    opacity: 0.85;
}

/* Empty state */
.bcoa-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 15px;
}

/* ---- Success page ---- */
.bcoa-success-page {
    text-align: center;
    padding: 40px 20px;
}

.bcoa-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-radius: 50%;
    font-size: 32px;
    margin-bottom: 16px;
}

.bcoa-success-page h2 {
    font-size: 24px;
    color: #10b981;
    margin: 0 0 8px 0;
}

.bcoa-success-page p {
    color: #94a3b8;
    margin: 0 0 20px 0;
}

.bcoa-success-msg {
    color: #10b981 !important;
    font-weight: 600;
}

.bcoa-processing-msg {
    color: #f59e0b !important;
}

.bcoa-pending-msg {
    color: #94a3b8 !important;
}

/* Polling spinner */
.bcoa-poll-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: #94a3b8;
    font-size: 14px;
}

.bcoa-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #1e293b;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: bcoa-spin 0.8s linear infinite;
}

@keyframes bcoa-spin {
    to { transform: rotate(360deg); }
}

/* Results table */
.bcoa-results-table {
    margin: 20px 0;
    text-align: left;
}

.bcoa-results-table table {
    width: 100%;
    border-collapse: collapse;
}

.bcoa-results-table th {
    background: #1a2235;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #1e293b;
}

.bcoa-results-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #1e293b;
    font-size: 14px;
    color: #cbd5e1;
}

.bcoa-results-table code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.bcoa-dl-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.bcoa-dl-link:hover {
    text-decoration: underline;
}

/* Bookmark note */
.bcoa-bookmark-note {
    background: #1a2235;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 20px;
    text-align: left;
}

.bcoa-bookmark-note p {
    color: #94a3b8;
    font-size: 13px;
    margin: 0 0 8px 0;
}

.bcoa-bookmark-link {
    display: block;
    word-break: break-all;
    color: #3b82f6;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
}

.bcoa-bookmark-link:hover {
    text-decoration: underline;
}

/* ---- Cancel page ---- */
.bcoa-cancel-page {
    text-align: center;
    padding: 60px 20px;
}

.bcoa-cancel-page h2 {
    color: #f59e0b;
    margin: 0 0 10px 0;
}

.bcoa-cancel-page p {
    color: #94a3b8;
    margin: 0 0 24px 0;
}

.bcoa-btn-retry {
    display: inline-block;
    padding: 12px 30px;
    background: #3b82f6;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.bcoa-btn-retry:hover {
    background: #2563eb;
    color: #fff;
}

/* ---- Download page ---- */
.bcoa-download-page {
    padding: 30px 0;
}

.bcoa-download-page h2 {
    font-size: 22px;
    color: #f1f5f9;
    margin: 0 0 6px 0;
}

.bcoa-download-page > p {
    color: #94a3b8;
    margin: 0 0 24px 0;
}

.bcoa-expiry-note {
    color: #64748b;
    font-size: 13px;
    margin-top: 16px;
}

/* ---- Error page ---- */
.bcoa-error-page {
    text-align: center;
    padding: 60px 20px;
}

.bcoa-error-page h2 {
    color: #ef4444;
    margin: 0 0 10px 0;
}

.bcoa-error-page p {
    color: #94a3b8;
    margin: 0;
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
    .bcoa-store {
        padding: 20px 12px;
    }

    .bcoa-section {
        padding: 18px 14px;
    }

    .bcoa-section-header {
        flex-wrap: wrap;
    }

    .bcoa-sku-summary {
        width: 100%;
        margin-top: 4px;
        padding-left: 40px;
    }

    .bcoa-search-bar {
        flex-direction: column;
        gap: 8px;
    }

    .bcoa-search-bar input {
        width: 100%;
    }

    .bcoa-price-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .bcoa-results-table {
        overflow-x: auto;
    }

    .bcoa-header h2 {
        font-size: 22px;
    }
}

/* ─── Member Login + 2FA ─────────────────────────────────────── */

#bcoa-member-login-section {
    max-width: 500px;
    margin: 0 auto;
}

#bcoa-member-code {
    font-variant-numeric: tabular-nums;
}

#bcoa-member-error {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
}

#bcoa-change-brand-form {
    animation: bcoaSlideDown 0.2s ease;
}

@keyframes bcoaSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === UPSELL CARD === */
.bcoa-upsell-section {
    background: linear-gradient(135deg, #1a1f2e 0%, #1e293b 50%, #1a2235 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    position: relative;
    overflow: hidden;
}
.bcoa-upsell-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}
.bcoa-upsell-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}
.bcoa-upsell-star {
    font-size: 22px;
    color: #f59e0b;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}
.bcoa-upsell-header h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #f59e0b;
}
.bcoa-upsell-header p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
}

/* Calculator */
.bcoa-upsell-calc {
    margin-bottom: 20px;
}
.bcoa-upsell-calc-label {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.bcoa-upsell-calc-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.bcoa-calc-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #1e293b;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
.bcoa-calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f59e0b;
    cursor: pointer;
    border: 2px solid #0b0f19;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
.bcoa-calc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f59e0b;
    cursor: pointer;
    border: 2px solid #0b0f19;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
.bcoa-calc-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #f59e0b;
    min-width: 70px;
    text-align: right;
    flex-shrink: 0;
}

/* Frequency buttons */
.bcoa-upsell-freq-options {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}
.bcoa-freq-btn {
    flex: 1;
    padding: 8px 6px;
    border: 1px solid #1e293b;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}
.bcoa-freq-btn:hover {
    border-color: rgba(245, 158, 11, 0.3);
    color: #e2e8f0;
}
.bcoa-freq-btn.active {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    font-weight: 700;
}

/* Result comparison */
.bcoa-upsell-result-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.bcoa-upsell-result-col {
    flex: 1;
    padding: 14px 16px;
    border-radius: 10px;
    text-align: center;
}
.bcoa-result-alacarte {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
}
.bcoa-result-annual {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.bcoa-result-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 4px;
}
.bcoa-result-annual .bcoa-result-label {
    color: #10b981;
}
.bcoa-result-alacarte .bcoa-result-label {
    color: #ef4444;
}
.bcoa-result-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: #e2e8f0;
}
.bcoa-result-alacarte .bcoa-result-price {
    color: #fca5a5;
}
.bcoa-result-annual .bcoa-result-price {
    color: #6ee7b7;
}
.bcoa-result-detail {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

/* Savings bar */
.bcoa-upsell-savings-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.4;
}
.bcoa-upsell-savings-bar.bcoa-savings-positive {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #a7f3d0;
}
.bcoa-savings-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* CTA button */
.bcoa-upsell-cta {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0b0f19 !important;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: transform 0.15s, box-shadow 0.15s;
}
.bcoa-upsell-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

/* Mobile adjustments for upsell */
@media (max-width: 600px) {
    .bcoa-upsell-result-row {
        flex-direction: column;
        gap: 8px;
    }
    .bcoa-upsell-freq-options {
        flex-wrap: wrap;
    }
    .bcoa-freq-btn {
        min-width: calc(50% - 4px);
    }
}

/* === WC CHECKOUT — MEMBERSHIP TERMS === */
.ypb-membership-terms {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}
.ypb-membership-terms h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: #1e293b;
}
.ypb-terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
}
.ypb-terms-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.ypb-terms-checkbox .ypb-terms-text {
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
}
.ypb-terms-checkbox .ypb-terms-text strong {
    color: #dc2626;
}
.ypb-terms-verify {
    margin-top: 16px;
    padding: 16px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
}
.ypb-terms-verify label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 8px;
}
.ypb-terms-verify input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    font-family: monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.ypb-terms-verify input[type="text"]:focus {
    border-color: #f59e0b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.ypb-terms-verify .ypb-verify-hint {
    font-size: 11px;
    color: #92400e;
    margin-top: 6px;
}
