.alength-form-notice { padding: 15px; border-radius: 4px; margin-bottom: 20px; }
.alength-form-notice.alength-success { background: #e8f5e9; border: 1px solid #2e7d32; color: #2e7d32; }
.alength-form-notice.alength-warning { background: #fff3e0; border: 1px solid #f57c00; color: #f57c00; }
.alength-form-notice.alength-error { background: #ffebee; border: 1px solid #c62828; color: #c62828; }

.alength-volume-notice { padding: 15px; background: #f0f7ff; border: 1px solid #0073aa; border-radius: 4px; margin-bottom: 20px; }
.alength-volume-notice.alength-success { background: #e8f5e9; border-color: #2e7d32; }

/* ===================================
   Buyer Program — My Account Tab
   =================================== */
.alength-buyer-program { padding: 20px 0; }
.alength-buyer-program h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.alength-tier-card { padding: 20px; border-radius: 8px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.alength-tier-card.alength-tier--b2c { background: #f5f5f5; }
.alength-tier-card.alength-tier--b2b { background: #e3f2fd; border: 1px solid #1976d2; }
.alength-tier-card.alength-tier--reseller { background: #fff3e0; border: 1px solid #f57c00; }
.alength-tier-card strong { font-size: 18px; }
.alength-tier-card span { color: #666; }

.alength-upgrade-options { background: #f9f9f9; padding: 20px; border-radius: 8px; }
.alength-upgrade-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 15px; }
.alength-upgrade-card { background: #fff; border-radius: 10px; border: 1px solid #ddd; overflow: hidden; text-align: center; }
.alength-upgrade-card .card-header { padding: 1.25rem; color: #fff; }
.alength-upgrade-card .card-header--b2b { background: #0073aa; }
.alength-upgrade-card .card-header--reseller { background: #f57c00; }
.alength-upgrade-card .card-header .card-icon { font-size: 1.5rem; display: block; margin-bottom: 0.25rem; }
.alength-upgrade-card .card-header h4 { margin: 0; font-size: 1.1rem; font-weight: 600; color: #fff; }
.alength-upgrade-card ul { list-style: none; padding: 1.25rem; margin: 0; text-align: left; }
.alength-upgrade-card ul li { padding: 0.4rem 0; font-size: 0.88rem; color: #555; border-bottom: 1px solid #f0f0f0; }
.alength-upgrade-card ul li:last-child { border-bottom: none; }
.alength-upgrade-card ul li::before { content: "\2713 "; color: #0073aa; font-weight: bold; margin-right: 0.4rem; }
.alength-btn-primary { display: inline-block; background: #0073aa; color: #fff !important; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.85rem 2.5rem; border: none; border-radius: 6px; cursor: pointer; transition: all 0.25s; text-decoration: none; margin: 0 1.25rem 1.25rem; }
.alength-btn-primary:hover { background: #005a80; transform: translateY(-2px); }

/* ===================================
   B2B/Reseller Dashboard
   =================================== */
.alength-b2b-dashboard { padding: 0; }
.alength-b2b-dashboard__header { background: #f0f7ff; border: 1px solid #cce0f0; border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; }
.alength-b2b-dashboard__tier { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.alength-b2b-dashboard__tier-badge { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: #0073aa; color: #fff; }
.alength-b2b-dashboard__tier-badge--reseller { background: #f57c00; }
.alength-b2b-dashboard__discount { font-size: 0.85rem; color: #0073aa; }
.alength-b2b-dashboard__welcome { font-size: 0.9rem; color: #555; margin: 0; }
.alength-b2b-dashboard__min-order { font-size: 0.85rem; color: #888; margin: 8px 0 0; }

/* Stats */
.alength-b2b-dashboard__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.alength-b2b-stat { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 1.25rem; text-align: center; }
.alength-b2b-stat__value { font-size: 1.5rem; font-weight: 700; color: #0073aa; }
.alength-b2b-stat__label { font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 0.03em; margin-top: 4px; }

/* Sections */
.alength-b2b-section { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; }
.alength-b2b-section__title { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.03em; color: #0073aa; margin: 0 0 0.5rem; }
.alength-b2b-section__desc { font-size: 0.9rem; color: #888; margin-bottom: 16px; }
.alength-b2b-section__empty { color: #888; font-size: 0.9rem; }

/* Volume Tiers */
.alength-volume-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.alength-volume-tier { background: #f0f7ff; border: 1px solid #cce0f0; border-radius: 8px; padding: 1rem; text-align: center; }
.alength-volume-tier__qty { font-size: 0.85rem; color: #555; margin-bottom: 4px; }
.alength-volume-tier__pct { font-size: 1.5rem; font-weight: 700; color: #0073aa; }

/* Quick Reorder Table */
.alength-reorder-table { width: 100%; border-collapse: collapse; }
.alength-reorder-table th, .alength-reorder-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.alength-reorder-table th { font-weight: 600; color: #333; background: #fafafa; }
.alength-reorder-table tr:hover { background: #f5f5f5; }
.alength-reorder-btn { display: inline-block; background: #0073aa; color: #fff !important; padding: 6px 16px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none; transition: background 0.2s; }
.alength-reorder-btn:hover { background: #005a80; }

/* Voucher Section */
.alength-voucher-section { background: #f0f7ff; border: 2px dashed #0073aa; padding: 30px; text-align: center; border-radius: 8px; margin: 30px 0; }
.alength-voucher-section h3 { color: #0073aa; margin-top: 0; }
.alength-voucher-code { font-size: 28px; font-weight: bold; color: #0073aa; font-family: monospace; letter-spacing: 3px; background: #fff; padding: 15px 30px; display: inline-block; border-radius: 4px; border: 1px solid #0073aa; }
.alength-voucher-discount { font-size: 20px; color: #2e7d32; font-weight: bold; margin-top: 10px; }
.alength-voucher-expires { font-size: 14px; color: #666; margin-top: 5px; }
.alength-voucher-claim-btn { background: #0073aa; color: #fff; border: none; padding: 12px 30px; border-radius: 4px; cursor: pointer; font-size: 16px; margin-top: 15px; }
.alength-voucher-claim-btn:hover { background: #005a80; }

/* Newsletter */
.alength-newsletter-form { display: flex; gap: 10px; max-width: 500px; margin: 20px 0; }
.alength-newsletter-form input[type="email"] { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 4px; }
.alength-newsletter-form button { background: #0073aa; color: #fff; border: none; padding: 12px 24px; border-radius: 4px; cursor: pointer; }
.alength-newsletter-form button:hover { background: #005a80; }

/* Product Tabs */
.alength-product-tabs { margin: 30px 0; }
.alength-product-tabs-nav { display: flex; gap: 0; border-bottom: 2px solid #eee; }
.alength-product-tabs-nav button { background: none; border: none; padding: 12px 20px; cursor: pointer; font-size: 14px; color: #666; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.alength-product-tabs-nav button.active { color: #0073aa; border-bottom-color: #0073aa; }
.alength-product-tab-content { padding: 20px 0; display: none; }
.alength-product-tab-content.active { display: block; }

/* Length Guide */
.alength-length-guide { background: #f9f9f9; padding: 20px; border-radius: 8px; margin: 20px 0; }
.alength-length-guide h4 { margin-top: 0; color: #0073aa; }
.alength-length-guide table { width: 100%; border-collapse: collapse; }
.alength-length-guide th, .alength-length-guide td { padding: 10px; text-align: left; border-bottom: 1px solid #ddd; }
.alength-length-guide th { background: #f0f0f0; font-weight: 600; }

/* Buyer Application Form */
.alength-buyer-form-wrap { max-width: 720px; margin: 0 auto; }
.alength-buyer-form-header { text-align: center; margin-bottom: 2rem; }
.alength-buyer-form-header h2 { font-size: 2rem; font-weight: 500; }
.alength-buyer-form-subtitle { color: #888; font-size: 0.95rem; line-height: 1.5; }
.alength-form-fieldset { border: 1px solid #e0e0e0; border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; background: #fafafa; }
.alength-form-fieldset legend { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: #0073aa; padding: 0 0.5rem; }
.alength-form-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.alength-form-row:last-child { margin-bottom: 0; }
.alength-form-field { flex: 1; }
.alength-form-field--half { flex: 0 0 calc(50% - 0.5rem); }
.alength-form-field--third { flex: 0 0 calc(33.333% - 0.667rem); }
.alength-form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.alength-form-field label .required { color: #c62828; }
.alength-form-field input[type="text"],
.alength-form-field input[type="email"],
.alength-form-field input[type="tel"],
.alength-form-field input[type="url"],
.alength-form-field select,
.alength-form-field textarea { width: 100%; padding: 0.65rem 0.85rem; border: 2px solid #e0e0e0; border-radius: 6px; font-size: 0.9rem; color: #333; background: #fff; transition: border-color 0.2s; box-sizing: border-box; }
.alength-form-field input:focus,
.alength-form-field select:focus,
.alength-form-field textarea:focus { border-color: #0073aa; outline: none; }
.alength-form-field input[readonly] { background: #f5f5f5; color: #888; cursor: not-allowed; }
.alength-form-hint { font-size: 0.78rem; color: #999; margin-top: 0.25rem; }
.alength-form-checkbox { display: flex !important; align-items: flex-start; gap: 0.5rem; font-weight: 400 !important; font-size: 0.85rem !important; line-height: 1.4; cursor: pointer; }
.alength-form-checkbox input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }
.alength-form-submit { text-align: center; margin-top: 1.5rem; }
.alength-buyer-form-notice { padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; font-size: 0.9rem; line-height: 1.5; }
.alength-buyer-form-notice p { margin: 0.25rem 0; }
.alength-buyer-form-notice--info { background: #e3f2fd; border: 1px solid #90caf9; color: #0d47a1; }
.alength-buyer-form-notice--success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #1b5e20; }
.alength-buyer-form-notice--warning { background: #fff8e1; border: 1px solid #ffe082; color: #e65100; }
.alength-buyer-form-notice--error { background: #ffebee; border: 1px solid #ef9a9a; color: #b71c1c; }

/* Responsive */
@media (max-width: 768px) {
    .alength-upgrade-cards { grid-template-columns: 1fr; }
    .alength-b2b-dashboard__stats { grid-template-columns: 1fr; }
    .alength-volume-tiers { grid-template-columns: 1fr; }
    .alength-newsletter-form { flex-direction: column; }
    .alength-voucher-code { font-size: 20px; padding: 10px 20px; }
    .alength-form-row { flex-direction: column; gap: 0; }
    .alength-form-field--half, .alength-form-field--third { flex: 1; }
    .alength-reorder-table { font-size: 0.8rem; }
    .alength-reorder-table th:nth-child(4), .alength-reorder-table td:nth-child(4) { display: none; }
}