/* crmai.css — world-class ambassador look */
.crmai-welcome { text-align: center; padding: 8px 4px 40px; }
.crmai-hero { padding: 24px 0 32px; }
.crmai-hero__badge { display: inline-block; padding: 4px 14px; background: #eef2ff; color: #4338ca; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; margin-bottom: 16px; }
.crmai-hero__title { font-size: 30px; font-weight: 700; line-height: 1.2; color: #0a0a0a; margin-bottom: 12px; letter-spacing: -0.6px; }
.crmai-hero__lede { font-size: 16px; color: #555; line-height: 1.6; margin-bottom: 24px; }
.crmai-hero__cta { display: flex; justify-content: center; }

.crmai-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 32px; }
.crmai-stat { background: #fff; border: 1px solid #ececec; border-radius: 12px; padding: 16px 10px; text-align: center; }
.crmai-stat__num { font-size: 22px; font-weight: 700; color: #1a1a1a; }
.crmai-stat__label { font-size: 11px; color: #777; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.4px; }

.crmai-how { text-align: left; background: #fff; border: 1px solid #ececec; border-radius: 12px; padding: 20px; }
.crmai-how__title { font-size: 17px; font-weight: 600; margin-bottom: 12px; color: #1a1a1a; }
.crmai-how__steps { list-style: decimal inside; line-height: 1.9; color: #444; font-size: 14px; }

.crmai-types { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 720px) { .crmai-types { grid-template-columns: repeat(3, 1fr); } }
.crmai-type { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: #fff; border: 1px solid #ececec; border-radius: 14px; padding: 22px 18px; cursor: pointer; transition: all 0.15s; text-align: left; }
.crmai-type:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); border-color: #c8cbe4; }
.crmai-type--featured { border-color: #ca8a04; background: linear-gradient(180deg, #fffbeb 0%, #fff 100%); }
.crmai-type__icon { font-size: 32px; }
.crmai-type__name { font-size: 18px; font-weight: 700; color: #1a1a1a; }
.crmai-type__sub { font-size: 13px; color: #777; }
.crmai-type__earn { font-size: 13px; font-weight: 600; color: #15803d; background: #f0fdf4; padding: 4px 10px; border-radius: 6px; margin-top: 4px; }
.crmai-type__perks { list-style: none; margin-top: 8px; padding: 0; font-size: 12px; color: #555; line-height: 1.7; }
.crmai-type__perks li::before { content: "✓ "; color: #15803d; font-weight: 700; }

.crmai-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.crmai-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.crmai-field { display: flex; flex-direction: column; gap: 4px; }
.crmai-field > span, .crmai-field > legend { font-size: 13px; font-weight: 600; color: #333; }
.crmai-field input, .crmai-field select { font-size: 15px; padding: 10px 12px; border: 1px solid #d1d1d1; border-radius: 8px; font-family: inherit; background: #fff; }
.crmai-field input:focus, .crmai-field select:focus { outline: none; border-color: #4338ca; box-shadow: 0 0 0 3px rgba(67,56,202,0.15); }
.crmai-field--apps { background: #fafafa; padding: 12px; border-radius: 8px; border: 1px solid #ececec; }
.crmai-field--apps label { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; margin-top: 6px; font-size: 14px; }
.crmai-form--veteran .crmai-field > span { font-size: 15px; }
.crmai-form--veteran .crmai-field input, .crmai-form--veteran .crmai-field select { font-size: 17px; padding: 12px 14px; }
.crmai-veteran-title { font-size: 26px; }
.crmai-veteran-sub { font-size: 15px; }

.crmai-btn { font-family: inherit; font-size: 14px; font-weight: 600; padding: 10px 18px; border: 1px solid #d1d1d1; background: #fff; color: #1a1a1a; border-radius: 8px; cursor: pointer; transition: all 0.15s; }
.crmai-btn:hover { background: #f5f5f5; }
.crmai-btn--primary { background: #0a0a0a; color: #fff; border-color: #0a0a0a; padding: 12px 24px; font-size: 15px; }
.crmai-btn--primary:hover { background: #333; }
.crmai-btn--block { width: 100%; padding: 14px; font-size: 16px; }
.crmai-btn--wa { background: #25D366; color: #fff; border-color: #25D366; }
.crmai-btn--wa:hover { background: #1eb754; }
.crmai-btn--ghost { color: #999; border: none; background: transparent; }

.crmai-dash { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 32px; }
.crmai-dash__hero { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #ececec; border-radius: 14px; padding: 18px; }
.crmai-dash__avatar { width: 56px; height: 56px; border-radius: 50%; background: #4338ca; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.crmai-dash__id { flex: 1; min-width: 0; }
.crmai-dash__namerow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crmai-dash__name { font-size: 17px; font-weight: 700; color: #0a0a0a; }
.crmai-dash__tier { background: #fef3c7; color: #92400e; font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.crmai-dash__code { background: #f5f5f5; color: #555; font-size: 11px; padding: 3px 9px; border-radius: 999px; font-family: ui-monospace, monospace; }
.crmai-dash__about { font-size: 12px; color: #777; margin-top: 4px; }

.crmai-dash__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.crmai-metric { background: #fff; border: 1px solid #ececec; border-radius: 12px; padding: 14px 12px; }
.crmai-metric__label { font-size: 11px; color: #777; text-transform: uppercase; letter-spacing: 0.4px; }
.crmai-metric__num { font-size: 22px; font-weight: 700; color: #0a0a0a; margin-top: 4px; }
.crmai-metric__trend { font-size: 11px; color: #15803d; margin-top: 4px; }

.crmai-card { background: #fff; border: 1px solid #ececec; border-radius: 12px; padding: 16px; }
.crmai-card__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.crmai-card__head h3 { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.crmai-card__hint { font-size: 11px; color: #777; }
.crmai-card__note { font-size: 12px; color: #777; margin-top: 8px; }
.crmai-card--actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; }

.crmai-share { display: flex; gap: 8px; flex-wrap: wrap; }
.crmai-share__link { margin-top: 10px; padding: 8px 10px; background: #f5f5f5; border-radius: 6px; font-size: 12px; color: #555; font-family: ui-monospace, monospace; word-break: break-all; }

.crmai-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.crmai-list li { display: flex; align-items: center; gap: 10px; }
.crmai-list__empty { color: #999; font-size: 13px; font-style: italic; }
.crmai-list__icon { font-size: 16px; }
.crmai-list__text { flex: 1; min-width: 0; }
.crmai-list__title { font-size: 13px; color: #1a1a1a; }
.crmai-list__sub { font-size: 11px; color: #777; margin-top: 2px; }
.crmai-list__amount { font-size: 13px; font-weight: 700; color: #15803d; }

.crmai-twocol { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .crmai-twocol { grid-template-columns: 1fr 1fr; } }

.crmai-progress { height: 8px; background: #f0f0f0; border-radius: 999px; overflow: hidden; }
.crmai-progress__fill { height: 100%; background: #4338ca; transition: width 0.3s; }

.crmai-lb { width: 100%; font-size: 13px; border-collapse: collapse; }
.crmai-lb td { padding: 6px 0; }
.crmai-lb td:nth-child(1) { width: 30px; }
.crmai-lb td:nth-child(3) { text-align: right; font-weight: 700; color: #0a0a0a; }
.crmai-lb tr.is-me { background: #eef2ff; color: #4338ca; font-weight: 600; }
.crmai-lb tr.is-me td { padding: 8px 8px; }

[data-app="crm"] .qp-brand { color: #4338ca; }
