/* HTML mockups of RruGO app screens (how-to guide). Decorative: every .am-phone is aria-hidden.
   Colors follow the app theme (src/theme/colors.ts): primary #1A4FD6, success #10B981, warning #F59E0B. */
.am-phone { width: 270px; margin: 0 auto; padding: 9px; border-radius: 42px; background: #0f172a; box-shadow: 0 26px 54px #0f172a2b, inset 0 0 0 2px #334155; font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif; }
.am-screen { position: relative; display: flex; flex-direction: column; height: 520px; overflow: hidden; border-radius: 34px; background: #f5f7fa; color: #0f172a; text-align: left; line-height: 1.35; }
.am-screen--white { background: #fff; }
.am-body { flex: 1; min-height: 0; overflow: hidden; padding: 0 12px; display: flex; flex-direction: column; gap: 8px; }
.am-phone svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.am-status { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; height: 38px; padding: 0 22px; font-size: 11px; font-weight: 600; }
.am-island { width: 70px; height: 21px; border-radius: 12px; background: #0f172a; }
.am-sys { display: inline-flex; align-items: flex-end; gap: 2px; height: 9px; }
.am-sys b { width: 3px; border-radius: 1px; background: currentColor; }
.am-sys b:nth-child(1) { height: 4px; } .am-sys b:nth-child(2) { height: 6px; } .am-sys b:nth-child(3) { height: 9px; }
.am-dark .am-status { color: #fff; }

.am-head { display: flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 2px 14px 10px; }
.am-head strong { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.am-head .am-head-action { margin-left: auto; color: #1a4fd6; font-size: 11px; font-weight: 700; }
.am-title { padding: 4px 14px 10px; font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.am-sub { margin: -6px 14px 10px; font-size: 11px; color: #64748b; }

.am-card { background: #fff; border-radius: 16px; padding: 11px 12px; box-shadow: 0 4px 12px #0f172a0d; }
.am-label { display: block; font-size: 9.5px; font-weight: 600; color: #64748b; margin-bottom: 2px; }
.am-value { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; }
.am-value--muted { color: #94a3b8; font-weight: 500; }
.am-field { background: #fff; border: 1px solid #e2e8f0; border-radius: 13px; padding: 8px 11px; }
.am-field--focus { border-color: #1a4fd6; box-shadow: 0 0 0 3px #1a4fd61f; }
.am-row { display: flex; align-items: center; gap: 8px; }
.am-row > * { flex: 1; min-width: 0; }
.am-row > .am-dot, .am-row > b, .am-row > .am-avatar { flex: none; }
.am-split { display: grid; gap: 0; }
.am-split > * + * { border-top: 1px solid #f1f5f9; padding-top: 8px; margin-top: 8px; }
.am-dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid #1a4fd6; box-sizing: border-box; flex-shrink: 0; }
.am-dot--fill { background: #1a4fd6; }
.am-icon-blue { color: #1a4fd6; }

.am-btn { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px; border-radius: 13px; background: #1a4fd6; color: #fff; font-size: 12.5px; font-weight: 700; text-align: center; }
.am-btn--ghost { background: #fff; color: #0f172a; border: 1px solid #e2e8f0; }
.am-btn--dark { background: #0f172a; }
.am-btn--danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.am-btn--danger-solid { background: #dc2626; color: #fff; }
.am-or { display: flex; align-items: center; gap: 8px; font-size: 9.5px; color: #94a3b8; }
.am-or::before, .am-or::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.am-note { font-size: 9.5px; color: #64748b; text-align: center; }
.am-note b { color: #1a4fd6; }

.am-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.am-chip { padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid #e2e8f0; font-size: 10.5px; font-weight: 600; color: #475569; }
.am-chip--on { background: #1a4fd6; border-color: #1a4fd6; color: #fff; }
.am-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 9.5px; font-weight: 700; }
.am-pill--green { background: #dcfce7; color: #15803d; }
.am-pill--amber { background: #fef3c7; color: #b45309; }
.am-pill--blue { background: #eef2ff; color: #1a4fd6; }

/* Ride card, as in RideResultCard */
.am-ride-top { display: flex; justify-content: space-between; align-items: baseline; }
.am-ride-top b { font-size: 18px; font-weight: 800; letter-spacing: -.4px; }
.am-ride-top .am-price { font-size: 16px; color: #1a4fd6; }
.am-route { display: flex; align-items: center; gap: 6px; margin: 5px 0 8px; font-size: 10.5px; font-weight: 600; color: #334155; }
.am-route i { position: relative; flex: 1; height: 2px; background: #cbd5e1; border-radius: 2px; }
.am-route i::before, .am-route i::after { content: ''; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid #1a4fd6; background: #fff; box-sizing: border-box; }
.am-route i::before { left: -2px; } .am-route i::after { right: -2px; background: #1a4fd6; }
.am-person { display: flex; align-items: center; gap: 8px; }
.am-ride .am-person { padding-top: 8px; border-top: 1px solid #f1f5f9; }
.am-avatar { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: #eef2ff; color: #1a4fd6; font-size: 10px; font-weight: 700; }
.am-avatar--lg { width: 52px; height: 52px; font-size: 16px; }
.am-avatar--ok { box-shadow: 0 0 0 2px #10b981; }
.am-avatar--ok::after { content: ''; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: #10b981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/8px no-repeat; }
.am-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.am-name strong { font-size: 11px; font-weight: 700; }
.am-name small { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; color: #64748b; }
.am-star { width: 10px !important; height: 10px !important; fill: #f59e0b !important; stroke: none !important; }
.am-meta { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 600; color: #475569; white-space: nowrap; }
.am-meta svg { width: 11px; height: 11px; }

/* Stepper */
.am-step-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 600; color: #334155; }
.am-stepper { display: inline-flex; align-items: center; gap: 9px; }
.am-stepper i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #eef2ff; color: #1a4fd6; font-style: normal; font-weight: 700; font-size: 14px; line-height: 1; }
.am-stepper b { min-width: 24px; text-align: center; font-size: 13.5px; font-weight: 800; color: #0f172a; }

/* Bottom tab bar */
.am-tabbar { display: flex; flex-shrink: 0; justify-content: space-around; align-items: center; padding: 7px 6px 16px; background: #fff; border-top: 1px solid #eef2f7; }
.am-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 8.5px; font-weight: 600; color: #94a3b8; min-width: 0; }
.am-tab svg { width: 18px; height: 18px; }
.am-tab--on { color: #1a4fd6; }
.am-tab--plus span:first-child { display: grid; place-items: center; width: 34px; height: 34px; margin-top: -14px; border-radius: 50%; background: #1a4fd6; color: #fff; box-shadow: 0 6px 14px #1a4fd659; }
.am-tab--plus svg { width: 18px; height: 18px; stroke-width: 2.4; }
.am-tab--ring span:first-child { border-radius: 50%; box-shadow: 0 0 0 3px #1a4fd640; }

/* Dialog / bottom sheet over a dimmed screen */
.am-dim::before { content: ''; position: absolute; inset: 0; background: #0f172a73; z-index: 1; }
.am-sheet { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 8px; padding: 16px 14px 14px; border-radius: 24px; background: #fff; display: grid; align-content: start; gap: 9px; box-shadow: 0 -10px 30px #0f172a33; }
.am-sheet--center { top: 50%; bottom: auto; transform: translateY(-50%); }
.am-sheet h4 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -.2px; text-align: center; }
.am-sheet p { margin: 0; font-size: 11px; color: #475569; text-align: center; line-height: 1.45; }
.am-sheet-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto; border-radius: 50%; background: #eef2ff; color: #1a4fd6; }
.am-sheet-icon--red { background: #fef2f2; color: #dc2626; }
.am-sheet-icon--amber { background: #fef3c7; color: #d97706; }
.am-sheet-icon svg { width: 20px; height: 20px; }
.am-grabber { width: 36px; height: 4px; margin: -6px auto 2px; border-radius: 2px; background: #e2e8f0; }

/* Stars */
.am-stars { display: flex; justify-content: center; gap: 6px; }
.am-stars svg { width: 26px; height: 26px; fill: #f59e0b; stroke: none; }
.am-stars svg.off { fill: #e2e8f0; }

/* Chat */
.am-chat { display: flex; flex-direction: column; gap: 6px; }
.am-bubble { max-width: 78%; padding: 7px 10px; border-radius: 15px; font-size: 11px; line-height: 1.4; background: #fff; color: #0f172a; box-shadow: 0 2px 6px #0f172a0d; }
.am-bubble--me { align-self: flex-end; background: #1a4fd6; color: #fff; border-bottom-right-radius: 5px; }
.am-bubble--them { border-bottom-left-radius: 5px; }
.am-bubble small { display: block; font-size: 8.5px; font-weight: 700; color: #1a4fd6; margin-bottom: 1px; }
.am-composer { display: flex; align-items: center; gap: 7px; margin-top: auto; padding: 8px 10px; border-radius: 999px; background: #fff; border: 1px solid #e2e8f0; font-size: 10.5px; color: #94a3b8; }
.am-composer svg { margin-left: auto; color: #1a4fd6; }
.am-sysmsg { align-self: center; padding: 4px 9px; border-radius: 999px; background: #e2e8f0; font-size: 9px; font-weight: 600; color: #475569; text-align: center; }

/* List rows (settings, menus, reasons) */
.am-list { background: #fff; border-radius: 16px; box-shadow: 0 4px 12px #0f172a0d; overflow: hidden; }
.am-list-row { display: flex; align-items: center; gap: 9px; padding: 10px 12px; font-size: 11.5px; font-weight: 600; }
.am-list-row + .am-list-row { border-top: 1px solid #f1f5f9; }
.am-list-row > svg:last-child { margin-left: auto; color: #94a3b8; }
.am-list-row--danger { color: #dc2626; }
.am-radio { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #cbd5e1; flex-shrink: 0; box-sizing: border-box; }
.am-radio--on { border: 5px solid #1a4fd6; }
.am-textarea { min-height: 52px; font-size: 10.5px; color: #94a3b8; }
.am-otp { display: flex; justify-content: center; gap: 6px; }
.am-otp span { display: grid; place-items: center; width: 30px; height: 38px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; font-size: 16px; font-weight: 800; }
.am-otp span.am-otp--on { border-color: #1a4fd6; box-shadow: 0 0 0 3px #1a4fd61f; }

/* Welcome screen */
.am-welcome { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 0 14px 18px; background: linear-gradient(180deg, #1a4fd6 0%, #153eaa 55%, #0f2b78 100%); color: #fff; }
.am-welcome .am-logo { margin-bottom: auto; padding-top: 40px; text-align: center; font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.am-welcome h4 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.am-welcome p { margin: 0 0 6px; font-size: 11px; color: #dbe5ff; }
.am-welcome .am-or { color: #c7d5ff; }
.am-welcome .am-or::before, .am-welcome .am-or::after { background: #ffffff40; }
.am-welcome .am-note { color: #c7d5ff; }
.am-welcome .am-note b { color: #fff; }

/* How-to guide: the mockup replaces the old screenshot box */
.step-image.step-image--mock { width: auto; height: auto; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.step-card--text { padding-top: 26px; padding-bottom: 26px; }

@media (max-width: 760px) {
    .am-phone { width: 248px; padding: 8px; border-radius: 38px; }
    .am-screen { height: 480px; border-radius: 31px; }
}
