/* DW-SME Ambassador pages — matches frontend-website theme (#002147, #ffb606) */

/* Compact breadcrumb hero (default site uses 150px vertical padding) */
.ambassador-breadcrumb-area {
    padding: 72px 0 64px !important;
    background-size: cover !important;
    background-position: center !important;
}

.ambassador-breadcrumb-area h1 {
    font-size: 30px !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}

.ambassador-breadcrumb-area .breadcrumb {
    padding-top: 10px !important;
    margin-top: 4px !important;
}

.ambassador-portal-area {
    background: #f4f6f9;
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

.ambassador-portal-nav {
    background: #002147;
    margin-bottom: 0;
}

.ambassador-portal-nav .container ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ambassador-portal-nav .container ul li a {
    display: block;
    padding: 11px 16px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.ambassador-portal-nav .container ul li a:hover,
.ambassador-portal-nav .container ul li a.active {
    color: #ffb606;
}

.ambassador-portal-nav .nav-logout {
    margin-left: auto;
}

.ambassador-portal-nav .nav-logout button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

.ambassador-portal-nav .nav-logout button:hover {
    border-color: #ffb606;
    color: #ffb606;
}

/* Apply stepper */
.amb-site-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 35px;
    position: relative;
}

.amb-site-stepper::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e7e7e7;
    z-index: 0;
}

.amb-site-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.amb-site-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e7e7e7;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
}

.amb-site-step.active .amb-site-step-dot,
.amb-site-step.done .amb-site-step-dot {
    background: #002147;
    color: #ffb606;
}

.amb-site-step-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
}

.amb-site-step.active .amb-site-step-label {
    color: #002147;
}

.amb-form-step-panel { display: none; }
.amb-form-step-panel.active { display: block; }

/* Status tracker (post-apply) */
.amb-status-tracker {
    max-width: 720px;
    margin: 0 auto 30px;
}

.amb-status-step {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.amb-status-step:last-child { border-bottom: none; }

.amb-status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
    font-size: 16px;
}

.amb-status-step.done .amb-status-icon {
    background: #002147;
    color: #ffb606;
}

.amb-status-step.current .amb-status-icon {
    background: #ffb606;
    color: #002147;
}

.amb-status-step.rejected .amb-status-icon {
    background: #dc3545;
    color: #fff;
}

/* Dashboard stat boxes */
.amb-dash-stat {
    background: #f8f9fa;
    border-left: 4px solid #ffb606;
    padding: 22px 20px;
    margin-bottom: 20px;
    text-align: center;
}

.amb-dash-stat h4 {
    font-size: 13px;
    text-transform: uppercase;
    color: #666;
    margin: 0 0 8px;
    font-weight: 600;
}

.amb-dash-stat .value {
    font-size: 28px;
    font-weight: 700;
    color: #002147;
    line-height: 1.1;
}

.amb-dash-stat .sub {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

.amb-dash-hero {
    background: linear-gradient(135deg, #002147 0%, #003366 100%);
    color: #fff;
    padding: 20px 22px;
    margin-bottom: 24px;
}

.amb-dash-hero h2 {
    color: #fff;
    margin: 0 0 6px;
    font-size: 22px;
}

.amb-dash-hero .meta {
    opacity: 0.85;
    font-size: 14px;
}

.amb-badge-active {
    display: inline-block;
    background: #ffb606;
    color: #002147;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
}

.amb-currency-tabs a {
    display: inline-block;
    padding: 4px 10px;
    margin: 4px 2px 0;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
}

.amb-currency-tabs a.active,
.amb-currency-tabs a:hover {
    background: #ffb606;
    border-color: #ffb606;
    color: #002147;
}

.amb-panel {
    background: #fff;
    border: 1px solid #e7e7e7;
    margin-bottom: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.amb-panel-head {
    padding: 16px 20px;
    border-bottom: 1px solid #e7e7e7;
    background: #fafafa;
}

.amb-panel-head h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #002147;
}

.amb-panel-body { padding: 20px; }

.amb-link-box {
    background: #f8f9fa;
    border: 1px solid #e7e7e7;
    padding: 12px;
    margin-bottom: 12px;
    word-break: break-all;
    font-size: 13px;
    font-family: monospace;
}

.amb-chip {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
}

.amb-chip-ok { background: #d4edda; color: #155724; }
.amb-chip-pend { background: #fff3cd; color: #856404; }

.amb-bonus-ring {
    --pct: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(#ffb606 calc(var(--pct) * 1%), #e7e7e7 0);
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
}

.amb-bonus-ring-inner {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #002147;
    font-size: 18px;
}

.amb-benefit-calc {
    background: #f8f9fa;
    border: 1px solid #e7e7e7;
    padding: 20px;
    margin-top: 20px;
}

.amb-benefit-calc .calc-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 14px;
}

.amb-benefit-calc .calc-row:last-child {
    border-bottom: none;
    font-weight: 700;
    color: #002147;
    font-size: 15px;
}

/* Dashboard v2 — prototype-inspired layout */
.amb-dash-top-hero {
    background: linear-gradient(135deg, #002147 0%, #003366 55%, #004080 100%);
    color: #fff;
    padding: 22px 24px 26px;
    margin: -10px 0 28px;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 33, 71, 0.25);
}

.amb-dash-top-meta {
    margin-bottom: 18px;
    font-size: 14px;
}

.amb-dash-top-meta strong {
    display: block;
    font-size: 18px;
    color: #fff;
    margin-bottom: 2px;
}

.amb-dash-top-meta span {
    opacity: 0.85;
}

.amb-dash-glass-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

.amb-dash-glass-row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .amb-dash-glass-row > .col-md-4 {
        width: 33.33333333%;
    }
}

.amb-dash-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 18px 16px;
    min-height: 148px;
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.amb-dash-glass .lab {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    opacity: 0.8;
    margin-bottom: 6px;
    font-weight: 600;
}

.amb-dash-glass .big {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 4px;
}

.amb-dash-glass .note {
    font-size: 12px;
    opacity: 0.75;
    line-height: 1.45;
}

.amb-dash-glass-bonus {
    text-align: center;
}

.amb-bonus-ring-light {
    background: conic-gradient(#ffb606 calc(var(--pct) * 1%), rgba(255, 255, 255, 0.2) 0) !important;
}

.amb-bonus-ring-light .amb-bonus-ring-inner {
    background: #003366;
    color: #fff;
    font-size: 16px;
}

.amb-dash-metrics {
    margin-bottom: 8px;
}

.amb-metric-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    padding: 18px 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    min-height: 110px;
}

.amb-metric-card .lab {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    font-weight: 600;
    margin-bottom: 8px;
}

.amb-metric-card .val {
    font-size: 28px;
    font-weight: 700;
    color: #002147;
    line-height: 1.1;
}

.amb-metric-card .val.amb-val-green {
    color: #198754;
}

.amb-metric-card .sub {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

.amb-ref-link-item {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}

.amb-ref-link-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.amb-ref-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 8px;
}

.amb-ref-link-row {
    --amb-ref-link-height: 40px;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.amb-ref-link-input {
    flex: 1 1 auto;
    min-width: 0;
    height: var(--amb-ref-link-height);
    min-height: var(--amb-ref-link-height);
    max-height: var(--amb-ref-link-height);
    padding: 0 12px;
    margin: 0;
    font-size: 13px;
    line-height: var(--amb-ref-link-height);
    font-family: monospace;
    background: #f8f9fa;
    border-radius: 4px 0 0 4px !important;
    border-right: 0;
    box-sizing: border-box;
    vertical-align: middle;
}

.amb-ref-link-actions {
    display: flex;
    flex-shrink: 0;
    height: var(--amb-ref-link-height);
}

.amb-ref-link-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--amb-ref-link-height);
    min-height: var(--amb-ref-link-height);
    max-height: var(--amb-ref-link-height);
    margin: 0;
    padding: 0 14px;
    border-radius: 0;
    white-space: nowrap;
    line-height: 1;
    box-sizing: border-box;
}

.amb-ref-link-actions .btn + .btn {
    margin-left: -1px;
}

.amb-ref-link-actions .amb-share-trigger,
.amb-ref-link-actions .amb-qr-trigger {
    width: 42px;
    min-width: 42px;
    padding: 0;
    background: #fff;
    border-color: #ccc;
    color: #002147;
    font-size: 16px;
}

.amb-ref-link-actions .amb-share-trigger:hover,
.amb-ref-link-actions .amb-qr-trigger:hover {
    background: #f4f6fa;
    border-color: #c5cdd8;
    color: #4c5fd7;
    z-index: 2;
}

.amb-ref-link-actions .amb-copy-link-btn {
    min-width: 72px;
    background: #002147;
    border-color: #002147;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    border-radius: 0 4px 4px 0;
}

.amb-ref-link-actions .amb-copy-link-btn:hover {
    background: #ffb606;
    border-color: #ffb606;
    color: #002147;
    z-index: 2;
}

.amb-ref-link-item.is-unavailable .amb-ref-link-input {
    background: #f1f5f9;
    color: #64748b;
}

.amb-ref-link-item.is-unavailable .amb-ref-link-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.amb-ref-link-unavailable-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #b45309;
}

.amb-ref-link-unavailable-note .fa-exclamation-circle {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Legacy alias if used elsewhere */
.amb-copy-group .form-control {
    font-size: 13px;
    font-family: monospace;
    background: #f8f9fa;
}

.amb-copy-group .btn-dark {
    background: #002147;
    border-color: #002147;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.amb-copy-group .btn-dark:hover {
    background: #ffb606;
    border-color: #ffb606;
    color: #002147;
}

.amb-qr-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.55);
}

.amb-qr-modal-overlay[hidden] {
    display: none !important;
}

body.amb-qr-modal-open {
    overflow: hidden;
}

.amb-qr-modal-dialog {
    width: 100%;
    max-width: 360px;
}

.amb-qr-modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.amb-qr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #edf0f4;
}

.amb-qr-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #002147;
}

.amb-qr-modal-close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
}

.amb-qr-modal-close:hover {
    color: #334155;
}

.amb-qr-modal-body {
    padding: 20px 18px 10px;
    text-align: center;
}

.amb-qr-label {
    margin: 0 0 14px;
    font-size: 13px;
    color: #64748b;
}

.amb-qr-canvas-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: #f1f5f9;
    box-shadow: inset 0 0 0 1px #e2e8f0;
    margin-bottom: 12px;
}

.amb-qr-canvas-wrap canvas.amb-qr-branded-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 6px 24px rgba(0, 33, 71, 0.14);
}

.amb-qr-url-break {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
    word-break: break-all;
    font-family: monospace;
}

.amb-qr-hint {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
}

.amb-qr-modal-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px 18px;
    border-top: 1px solid #edf0f4;
}

.amb-qr-modal-footer .btn-theme,
.amb-qr-modal-footer .amb-btn-teal {
    min-width: 96px;
}

.amb-share-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.55);
}

.amb-share-modal-overlay[hidden] {
    display: none !important;
}

body.amb-share-modal-open {
    overflow: hidden;
}

.amb-share-modal-dialog {
    width: 100%;
    max-width: 440px;
}

.amb-share-modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.amb-share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #edf0f4;
}

.amb-share-modal-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #002147;
}

.amb-share-modal-close {
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
}

.amb-share-modal-close:hover {
    color: #334155;
}

.amb-share-modal-body {
    padding: 18px;
}

.amb-share-label {
    margin: 0 0 14px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}

.amb-share-channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.amb-share-channel-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #002147;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.amb-share-channel-btn i {
    width: 18px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.amb-share-channel-btn span {
    line-height: 1.3;
    text-align: left;
}

.amb-share-channel-btn:hover,
.amb-share-channel-btn.is-copied {
    border-color: #002147;
    background: #f8fafc;
    color: #002147;
    text-decoration: none;
}

.amb-share-channel-btn.is-copied {
    background: #ecfdf5;
    border-color: #10b981;
    color: #047857;
}

.amb-share-channel-whatsapp i { color: #25d366; }
.amb-share-channel-facebook i { color: #1877f2; }
.amb-share-channel-telegram i { color: #229ed9; }
.amb-share-channel-instagram i { color: #e4405f; }
.amb-share-channel-youtube i { color: #ff0000; }
.amb-share-channel-email i { color: #64748b; }

.amb-share-hint {
    margin: 12px 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.amb-share-note {
    margin: 14px 0 0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.45;
}

.amb-share-empty {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 13px;
    color: #64748b;
    text-align: center;
    padding: 12px 0;
}

.amb-share-modal-footer {
    display: flex;
    justify-content: center;
    padding: 14px 18px 18px;
    border-top: 1px solid #edf0f4;
}

.amb-share-modal-footer .btn-theme {
    min-width: 96px;
}

.amb-dash-table thead th {
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
    border-bottom-width: 1px;
}

.amb-dash-table tbody td {
    vertical-align: middle !important;
    font-size: 14px;
}

.amb-payout-grid {
    margin-left: -6px;
    margin-right: -6px;
}

.amb-payout-grid > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
}

.amb-payout-cell {
    background: #f8f9fa;
    border: 1px solid #e7e7e7;
    padding: 12px 10px;
    margin-bottom: 12px;
    border-radius: 4px;
    text-align: center;
}

.amb-payout-cell span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
    font-weight: 600;
    margin-bottom: 4px;
}

.amb-payout-cell strong {
    font-size: 16px;
    color: #002147;
}

.amb-payout-cell.highlight {
    background: #002147;
    border-color: #002147;
}

.amb-payout-cell.highlight span {
    color: rgba(255, 255, 255, 0.75);
}

.amb-payout-cell.highlight strong {
    color: #ffb606;
}

.amb-payout-btn {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.amb-bonus-target {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.amb-bonus-target:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.amb-bonus-target.current {
    background: #fafcff;
    margin: 0 -20px;
    padding: 14px 20px;
    border-left: 3px solid #ffb606;
}

.amb-bonus-bar {
    height: 8px;
    margin-bottom: 0;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.amb-bonus-bar .progress-bar {
    border-radius: 4px;
}

.amb-benefit-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amb-benefit-opt {
    display: grid;
    grid-template-columns: 18px 1fr;
    column-gap: 12px;
    align-items: center;
    min-height: 62px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.amb-benefit-opt-text {
    display: block;
    line-height: 1.4;
    color: #334155;
}

.amb-benefit-opt input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-height: 0;
    max-width: 16px;
    max-height: 16px;
    margin: 0;
    padding: 0;
    border: 2px solid #94a3b8;
    border-radius: 50%;
    background: #fff;
    box-shadow: none;
    cursor: pointer;
    flex-shrink: 0;
    place-self: center start;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.amb-benefit-opt input[type="radio"]:checked {
    border-color: #002147;
    background: #002147;
    box-shadow: inset 0 0 0 3px #fff;
}

.amb-benefit-opt.active,
.amb-benefit-opt:hover {
    border-color: #002147;
    background: #f8fafc;
    box-shadow: 0 0 0 1px rgba(0, 33, 71, 0.06);
}

.amb-benefit-opt.active .amb-benefit-opt-text,
.amb-benefit-opt:hover .amb-benefit-opt-text {
    color: #002147;
}

.amb-benefit-calc .calc-title {
    font-size: 13px;
    font-weight: 600;
    color: #002147;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e7e7e7;
}

.amb-channel-line {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
}

.amb-channel-line:last-child {
    border-bottom: none;
}

.amb-login-box {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e7e7e7;
    padding: 35px 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.amb-login-remember {
    margin: 0 0 18px;
}

.amb-login-remember__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.amb-login-box input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 0;
    min-width: 16px;
    max-width: 16px;
    max-height: 16px;
    margin: 0;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    box-shadow: none;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #002147;
}

@media (max-width: 767px) {
    .ambassador-breadcrumb-area {
        padding: 56px 0 48px !important;
    }

    .ambassador-breadcrumb-area h1 {
        font-size: 24px !important;
    }

    .ambassador-portal-nav .container ul { flex-direction: column; }
    .ambassador-portal-nav .nav-logout { margin-left: 0; }
    .amb-site-stepper { flex-direction: column; gap: 12px; }
    .amb-site-stepper::before { display: none; }

    .amb-dash-top-hero {
        margin-left: -15px;
        margin-right: -15px;
        padding: 18px 16px 20px;
    }

    .amb-dash-glass .big {
        font-size: 24px;
    }

    .amb-metric-card .val {
        font-size: 22px;
    }
}

.amb-benefit-value-field.amb-benefit-value-muted {
    opacity: 0.65;
}

.amb-benefit-value-field.amb-benefit-value-muted input {
    background: #f5f5f5;
    cursor: not-allowed;
}

.amb-benefit-value-field input:not([readonly]) {
    background: #fff;
    cursor: text;
}

.amb-no-nice-select {
    display: block !important;
    width: 100%;
}

/* Safety net if theme nice-select ran before ambassador fields were marked */
select.amb-no-nice-select + .nice-select {
    display: none !important;
}

/* Apply form — native selects + checkbox (avoid theme nice-select / global input min-height issues) */
.amb-apply-form .form-group {
    margin-bottom: 20px;
}

.amb-apply-form select.form-control.amb-no-nice-select {
    display: block;
    width: 100%;
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    padding: 0 36px 0 15px;
    line-height: 48px;
    margin: 0;
    float: none;
    background-color: #fff;
    border: 1px solid #e7e7e7;
    border-radius: inherit;
    box-shadow: inherit;
    appearance: auto;
    -webkit-appearance: menulist;
    cursor: pointer;
    text-align: left;
    text-align-last: left;
}

.amb-apply-form select.form-control.amb-no-nice-select option {
    padding: 8px 12px;
    line-height: 1.4;
    text-align: left;
}

.amb-apply-terms {
    margin: 4px 0 0;
}

.amb-apply-terms__label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    user-select: none;
    line-height: 1.45;
}

.amb-apply-form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 0;
    min-width: 16px;
    max-width: 16px;
    max-height: 16px;
    margin: 3px 0 0;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    box-shadow: none;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #002147;
}

.amb-benefit-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.amb-benefit-sidebar .amb-panel + .amb-panel {
    margin-top: 24px;
}

.amb-panel-head-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.amb-panel-head-split h4 {
    margin: 0;
}

.amb-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.15);
    color: #4c5fd7;
    font-size: 13px;
    font-weight: 700;
}

.amb-program-type-pill {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 4px;
    background: #eef1f6;
    color: #6b7280;
    margin-bottom: 4px;
}

.amb-override-program-title {
    font-weight: 600;
    line-height: 1.35;
}

.amb-override-value {
    color: #4c5fd7;
    font-weight: 600;
    margin-top: 2px;
}

.amb-empty-overrides {
    border: 1px dashed #d8dee9;
    border-radius: 8px;
    padding: 20px;
    background: #fafbfc;
    text-align: center;
}

.amb-benefit-overrides-panel .amb-panel-body {
    padding-top: 16px;
}

.amb-overrides-table .amb-overrides-actions-col {
    width: 72px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.amb-override-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.amb-override-delete-form {
    display: inline-flex;
    margin: 0;
}

.amb-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #d8dee9;
    border-radius: 6px;
    background: #fff;
    color: #5b6472;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.amb-icon-btn:hover {
    background: #f4f6fa;
    border-color: #c5cdd8;
    color: #2d3748;
}

.amb-icon-btn-edit:hover {
    color: #4c5fd7;
    border-color: rgba(76, 95, 215, 0.35);
    background: rgba(76, 95, 215, 0.06);
}

.amb-icon-btn-delete {
    color: #c53030;
    border-color: #f1c5c5;
    background: #fff5f5;
}

.amb-icon-btn-delete:hover {
    color: #fff;
    background: #e53e3e;
    border-color: #e53e3e;
}

.amb-form-section-label {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.amb-form-highlight {
    animation: ambFormPulse 2s ease;
}

.amb-panel.amb-form-highlight {
    border-color: rgba(102, 126, 234, 0.45);
}

@keyframes ambFormPulse {
    0%, 100% { box-shadow: none; }
    15%, 45% { box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25); }
}

@media (max-width: 991px) {
    .amb-benefit-sidebar {
        margin-top: 24px;
        flex-direction: column;
    }

    .amb-benefit-overrides-panel {
        order: 1;
    }

    .amb-benefit-calc-panel {
        order: 2;
    }
}

.amb-dash-table .btn-xs {
    padding: 2px 8px;
    font-size: 12px;
}

