/* ARACS Technologies — custom styles (Tailwind handles the rest) */

/* Brand background pattern (kept from the original identity) */
.hero-pattern {
	background-color: #0D2133;
	background-image:
		radial-gradient(circle at 10% 50%, rgba(0, 151, 167, 0.14), transparent 40%),
		radial-gradient(circle at 90% 30%, rgba(0, 194, 168, 0.10), transparent 40%);
	position: relative;
}

.hero-pattern::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 50px 50px;
	pointer-events: none;
}

/* Circuit-trace underline used on the hero headline */
.trace {
	background-image: linear-gradient(90deg, #0097A7, #00C2A8);
	background-repeat: no-repeat;
	background-size: 100% 6px;
	background-position: 0 100%;
	padding-bottom: 6px;
}

/* One orchestrated entrance on page load (hero only) */
@keyframes rise {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.24s; }
.rise-4 { animation-delay: 0.36s; }

/* Hardware chip ticker in the hero */
@keyframes drift {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
.drift { animation: drift 28s linear infinite; width: max-content; }

/* Process: connecting rail between phase steps */
.rail { position: relative; }
.rail::before {
	content: '';
	position: absolute;
	left: 19px;
	top: 20px;
	bottom: 20px;
	width: 2px;
	background: linear-gradient(to bottom, #0097A7, #00C2A8);
	opacity: 0.35;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid #00C2A8;
	outline-offset: 3px;
}

/* Form fields on the dark card */
.field {
	width: 100%;
	background: rgba(13, 33, 51, 0.55);
	border: 1px solid rgba(0, 151, 167, 0.4);
	border-radius: 0.75rem;
	padding: 0.8rem 1rem;
	color: #fff;
	font-size: 0.95rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.field:focus {
	outline: none;
	border-color: #00C2A8;
	box-shadow: 0 0 0 3px rgba(0, 194, 168, 0.18);
}

/* Native dropdown lists, so long lists (58 wilayas, project types) stay readable */
.field option,
.field optgroup {
	background-color: #0D2133;
	color: #fff;
}
.field optgroup {
	color: #00C2A8;
	font-weight: 600;
}
.field option:disabled {
	color: #8ba1ad;
}
.field option:checked {
	background-color: #006B8D;
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.rise, .drift { animation: none; }
	html { scroll-behavior: auto !important; }
}

/* ---------- Interactive process ---------- */
.proc-phase { color: #6b7f8c; border-color: #d3e2e6; transition: color .3s, border-color .3s; }
.proc-phase[data-active="true"] { color: #006B8D; border-color: #0097A7; }

.proc-node { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; background: none; border: 0; cursor: pointer; padding: 0 .25rem; scroll-snap-align: center; }
.proc-node .dot {
	width: 3rem; height: 3rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center;
	background: #fff; border: 2px solid #cfe3e7; color: #0097A7; font-size: 1.35rem;
	transition: background .3s, border-color .3s, color .3s, transform .3s, box-shadow .3s;
}
.proc-node .lbl { font-size: .8rem; font-weight: 500; color: #6b7f8c; transition: color .3s; }
.proc-node:hover .dot { border-color: #0097A7; }
.proc-node[data-state="done"] .dot { background: #0097A7; border-color: #0097A7; color: #fff; }
.proc-node[data-state="done"] .lbl { color: #0D2133; }
.proc-node[aria-selected="true"] .dot { background: #0D2133; border-color: #00C2A8; color: #00C2A8; transform: scale(1.12); box-shadow: 0 0 0 6px rgba(0, 194, 168, .22); }
.proc-node[aria-selected="true"] .lbl { color: #0D2133; font-weight: 700; }

.proc-panel { transition: opacity .25s, transform .25s; }
.proc-panel.swap { opacity: 0; transform: translateY(8px); }

/* ---------- FAQ assistant ---------- */
.bot-panel { transform-origin: bottom right; animation: botIn .25s cubic-bezier(.22, 1, .36, 1); }
@keyframes botIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.bot-msg { width: fit-content; max-width: 86%; padding: .65rem .9rem; border-radius: 1rem; font-size: .9rem; line-height: 1.5; white-space: pre-line; }
.bot-msg.bot { background: #fff; color: #0D2133; border: 1px solid #e3edf0; border-end-start-radius: .25rem; }
.bot-msg.me { background: #006B8D; color: #fff; margin-inline-start: auto; border-end-end-radius: .25rem; }
.bot-act { display: inline-flex; align-items: center; gap: .4rem; margin: .5rem .4rem 0 0; padding: .4rem .85rem; border-radius: 9999px; font-size: .8rem; font-weight: 600; background: #00C2A8; color: #0D2133; text-decoration: none; transition: background .2s, color .2s; }
.bot-act:hover { background: #0D2133; color: #fff; }
.bot-chip { padding: .4rem .8rem; border-radius: 9999px; font-size: .8rem; font-weight: 500; background: #fff; color: #006B8D; border: 1px solid #b9d9e0; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.bot-chip:hover { background: #006B8D; color: #fff; border-color: #006B8D; }
.bot-typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: #0097A7; animation: botDot 1s infinite ease-in-out; }
.bot-typing span:nth-child(2) { animation-delay: .15s; }
.bot-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes botDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
	.bot-panel, .bot-typing span, .proc-panel, #proc-fill { animation: none !important; transition: none !important; }
}

/* Process: per-step timer bar */
@keyframes procbar { from { width: 0; } to { width: 100%; } }

/* Chat in Arabic: right-to-left, Arabic-capable font, mirrored send icon */
#bot-panel[dir="rtl"], #bot-launcher[lang="ar"] { font-family: 'Cairo', 'Poppins', sans-serif; }
#bot-panel[dir="rtl"] #bot-form i { transform: scaleX(-1); }

/* ---------- Capability stack ("chip to cloud") ---------- */
.layer { display: grid; gap: 1rem 1.5rem; padding-bottom: 2rem; }
.layer:last-child { padding-bottom: 0; }
@media (min-width: 1024px) { .layer { grid-template-columns: 3rem 15rem minmax(0, 1fr); } }
.layer-cards { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .layer-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .layer-cards { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); } }

.rail { display: none; }
@media (min-width: 1024px) { .rail { display: flex; flex-direction: column; align-items: center; align-self: stretch; } }
.rail-dot { width: 2.75rem; height: 2.75rem; flex-shrink: 0; border-radius: 9999px; display: flex; align-items: center; justify-content: center; background: #0D2133; color: #00C2A8; border: 2px solid #00C2A8; font-weight: 600; }
.rail-line { position: relative; flex: 1; width: 2px; margin: .4rem 0; border-radius: 2px; overflow: hidden; background: rgba(0, 151, 167, .25); }
.rail-line::after { content: ''; position: absolute; left: 0; right: 0; height: 40%; background: linear-gradient(to bottom, transparent, #00C2A8, transparent); animation: flow 2.6s linear infinite; }
@keyframes flow { from { top: -40%; } to { top: 100%; } }

.cap2 {
	position: relative; display: flex; flex-direction: column; gap: .75rem; text-align: left; cursor: pointer;
	padding: 1.25rem; border-radius: 1.25rem; background: #F2F7F8; border: 1px solid transparent;
	transition: background .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.cap2 .ico { width: 3rem; height: 3rem; border-radius: .9rem; background: #fff; color: #006B8D; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 1px 2px rgba(13, 33, 51, .08); transition: background .25s, color .25s; }
.cap2 .tick { position: absolute; top: 1rem; right: 1rem; width: 1.75rem; height: 1.75rem; border-radius: 9999px; border: 2px solid #b9d3d9; color: #6b7f8c; display: flex; align-items: center; justify-content: center; font-size: .9rem; transition: background .25s, border-color .25s, color .25s, transform .25s; }
.cap2:hover { background: #fff; border-color: rgba(0, 151, 167, .35); transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(0, 107, 141, .4); }
.cap2:hover .tick { border-color: #0097A7; color: #0097A7; }
.cap2[aria-pressed="true"] { background: #fff; border-color: #0097A7; box-shadow: 0 0 0 3px rgba(0, 194, 168, .18); }
.cap2[aria-pressed="true"] .ico { background: #006B8D; color: #fff; }
.cap2[aria-pressed="true"] .tick { background: #00C2A8; border-color: #00C2A8; color: #0D2133; transform: scale(1.1); }

/* ---------- Brand value icons: hover effect ---------- */
.val-icon {
	position: relative; width: 5rem; height: 5rem; border-radius: 1.4rem; display: flex; align-items: center; justify-content: center;
	font-size: 2.6rem; color: #00C2A8; background: rgba(255, 255, 255, .04); border: 1px solid rgba(0, 194, 168, .28);
	transition: transform .4s cubic-bezier(.22, 1, .36, 1), background .4s, color .4s, border-color .4s, box-shadow .4s;
}
.val-icon i { display: block; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.val-card { cursor: default; }
.val-card:hover .val-icon, .val-card:active .val-icon {
	transform: translateY(-8px);
	background: linear-gradient(135deg, #0097A7, #00C2A8); color: #0D2133; border-color: transparent;
	box-shadow: 0 16px 34px -10px rgba(0, 194, 168, .6), 0 0 0 8px rgba(0, 194, 168, .12);
}
/* Each icon moves in a way that suits it */
.val-card:hover [data-fx="bulb"] i, .val-card:active [data-fx="bulb"] i { transform: scale(1.18); filter: drop-shadow(0 0 8px rgba(255, 255, 255, .7)); }
.val-card:hover [data-fx="gear"] i, .val-card:active [data-fx="gear"] i { transform: rotate(180deg) scale(1.08); }
.val-card:hover [data-fx="users"] i, .val-card:active [data-fx="users"] i { transform: scale(1.15); }
.val-card:hover [data-fx="rocket"] i, .val-card:active [data-fx="rocket"] i { transform: translate(5px, -5px) scale(1.1); }
.val-card:hover [data-fx="chart"] i, .val-card:active [data-fx="chart"] i { transform: translateY(-4px) scale(1.15); }
.val-title { transition: color .3s; }
.val-card:hover .val-title { color: #00C2A8; }
.val-line { display: block; width: 1.5rem; height: 2px; margin-bottom: .75rem; border-radius: 2px; background: #00C2A8; transition: width .4s cubic-bezier(.22, 1, .36, 1); }
.val-card:hover .val-line { width: 3.5rem; }

@media (prefers-reduced-motion: reduce) {
	.val-icon, .val-icon i, .cap2, .cap2 .tick { transition: none !important; }
	.rail-line::after { animation: none; }
	.val-card:hover .val-icon, .val-card:hover .val-icon i, .cap2:hover, .cap2[aria-pressed="true"] .tick { transform: none !important; }
}

/* ---------- Hero circuit board ---------- */
.pcb-frame { position: relative; width: 100%; aspect-ratio: 5 / 4; container-type: inline-size; }
.pcb-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.pcb-hud { position: absolute; pointer-events: none; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(0, 194, 168, .75); font-weight: 500; }
.pcb-corner { position: absolute; width: 18px; height: 18px; pointer-events: none; border: 0 solid rgba(0, 194, 168, .55); }
.pcb-corner.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.pcb-corner.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.pcb-corner.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.pcb-corner.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.pcb-caption { text-align: center; margin-top: .5rem; min-height: 3.4rem; }
@media (max-width: 480px) { .pcb-hud { display: none; } }

/* ---------- Intro: IDE that writes, compiles and launches Project ARACS ---------- */
.pcb-btn { position: absolute; right: 0; top: -2.1rem; z-index: 6; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(190, 255, 248, .8); background: rgba(6, 20, 33, .75); border: 1px solid rgba(0, 194, 168, .4); border-radius: 9999px; padding: .35rem .8rem; cursor: pointer; transition: background .2s, color .2s; }
.pcb-btn:hover { background: #00C2A8; color: #06141f; }
.ide { position: absolute; inset: 0; z-index: 3; font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: max(8px, 1.65cqw); color: #cfe3e6; transition: opacity .7s ease, transform .7s ease, filter .7s ease; }
.ide.glitch { animation: ideGlitch .42s steps(2) 1; }
.ide.out { opacity: 0; transform: scale(1.05); filter: blur(8px); pointer-events: none; }
.ide.hide { display: none; }
@keyframes ideGlitch {
	0% { clip-path: inset(0); transform: none; } 20% { clip-path: inset(12% 0 60% 0); transform: translateX(-2%); }
	40% { clip-path: inset(55% 0 12% 0); transform: translateX(2.5%); } 60% { clip-path: inset(30% 0 35% 0); transform: translateX(-1.5%); }
	80% { clip-path: inset(5% 0 80% 0); transform: translateX(1%); } 100% { clip-path: none; transform: none; }
}
.ide-win { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: max(8px, 1.4cqw); background: #0b1620; border: 1px solid rgba(0, 194, 168, .3); box-shadow: 0 3cqw 8cqw -2cqw rgba(0, 0, 0, .7); }
.ide-title { display: flex; align-items: center; gap: 1em; padding: .65em .9em; background: #101e2a; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ide-title .dots i { display: inline-block; width: .8em; height: .8em; border-radius: 50%; margin-right: .4em; }
.ide-title .dots i:nth-child(1) { background: #ff5f56; } .ide-title .dots i:nth-child(2) { background: #ffbd2e; } .ide-title .dots i:nth-child(3) { background: #27c93f; }
.ide-name { flex: 1; text-align: center; color: #8fb0bd; }
.ide-st { color: #00C2A8; white-space: nowrap; }
.ide-body { display: flex; flex: 1; min-height: 0; }
.ide-act { width: 3.4em; flex-shrink: 0; background: #0a131c; display: flex; flex-direction: column; align-items: center; gap: 1.1em; padding-top: 1em; color: #5d7f8e; font-size: 1.5em; }
.ide-act .on { color: #00C2A8; }
.ide-side { width: 15em; flex-shrink: 0; background: #0d1822; border-right: 1px solid rgba(255, 255, 255, .05); padding: .8em .6em; font-size: .92em; color: #8fb0bd; overflow: hidden; }
.ide-side .h { letter-spacing: .14em; font-size: .82em; color: #5d7f8e; margin: 0 0 .7em; }
.ide-side .f { margin: 0; padding: .22em .3em; white-space: nowrap; }
.ide-side .i1 { padding-left: 1.2em; } .ide-side .i2 { padding-left: 2.4em; }
.ide-side .on { color: #fff; background: rgba(0, 194, 168, .13); }
.ide-main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ide-tabs { display: flex; flex-shrink: 0; background: #0d1822; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.ide-tabs span { padding: .6em 1em; color: #6f8fa0; border-right: 1px solid rgba(255, 255, 255, .05); white-space: nowrap; }
.ide-tabs .on { color: #fff; background: #0b1620; box-shadow: inset 0 -2px #00C2A8; }
.ide-code { display: flex; flex: 1; min-height: 0; overflow: hidden; padding: .7em .6em; line-height: 1.55; }
#ide-gut { color: #35586a; text-align: right; padding-right: .9em; white-space: pre; user-select: none; }
#ide-pre { margin: 0; font: inherit; white-space: pre; color: #d4e7e4; }
#ide-pre .kw { color: #c678dd; } #ide-pre .st { color: #98c379; } #ide-pre .fn { color: #61afef; } #ide-pre .nm { color: #d19a66; } #ide-pre .cm { color: #5c6c7a; font-style: italic; } #ide-pre .ty { color: #e5c07b; }
.ide .cur { display: inline-block; width: .55em; height: 1.1em; vertical-align: text-bottom; background: #00C2A8; animation: blink 1s steps(1) infinite; }
.ide-term { position: absolute; left: 0; right: 0; bottom: 0; height: 0; overflow: hidden; background: #08111a; border-top: 1px solid rgba(0, 194, 168, .35); transition: height .45s cubic-bezier(.22, 1, .36, 1); }
.ide-term.open { height: 48%; }
.ide-term .th { display: flex; justify-content: space-between; padding: .45em .8em; letter-spacing: .16em; font-size: .82em; color: #00C2A8; border-bottom: 1px solid rgba(255, 255, 255, .05); }
#ide-log { padding: .5em .8em; line-height: 1.5; white-space: nowrap; overflow: hidden; }
#ide-log b { color: #00C2A8; font-weight: 500; } #ide-log em { font-style: normal; color: #4ade80; } #ide-log .d { color: #61afef; } #ide-log .g { color: #fff; }
.ide-bar { margin: .3em .8em; height: .5em; border-radius: 1em; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ide-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0097A7, #00C2A8); }
.ide-status { display: flex; gap: 1.6em; flex-shrink: 0; padding: .4em .9em; background: #006B8D; color: #e8fbf8; font-size: .9em; }
.ide-status .ml-auto { margin-left: auto; }
.ide-load { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1em; border-radius: max(8px, 1.4cqw); background: rgba(5, 14, 22, .88); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.ide-load.on { opacity: 1; }
.ide-ring { width: 5.5em; height: 5.5em; border-radius: 50%; border: .3em solid rgba(0, 194, 168, .18); border-top-color: #00C2A8; animation: ideSpin .9s linear infinite; }
@keyframes ideSpin { to { transform: rotate(360deg); } }
.ide-load h4 { margin: 0; font-size: 1.5em; font-weight: 600; letter-spacing: .04em; color: #fff; }
.ide-load p { margin: 0; color: #8fb0bd; }
.ide-load .pb { width: 46%; height: .45em; border-radius: 1em; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ide-load .pb i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0097A7, #00C2A8); }
@container (max-width: 440px) { .ide-side, .ide-act { display: none; } .ide-term.open { height: 52%; } }
@media (prefers-reduced-motion: reduce) { .ide, .ide-term { transition: none; } .ide-ring, .ide .cur { animation: none; } }

/* =====================================================
   SCROLL ASSEMBLY: exploded-view parts fly together and snap into place as you scroll
   ===================================================== */
html.bx-on, html.bx-on body { overflow-x: clip; }
[data-bx] { pointer-events: none !important; transition: none !important; }
#bx-fx { position: fixed; left: 0; top: 0; z-index: 39; pointer-events: none; }
#bx-top { position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 70; pointer-events: none; background: linear-gradient(90deg, #0097A7, #00e6c8); box-shadow: 0 0 4px rgba(0, 230, 200, .7); }
@keyframes bxSnap { 0% { transform: scale(1.04); } 55% { transform: scale(.992); } 100% { transform: none; } }
@keyframes bxPop { 0% { outline: 2px solid rgba(0, 230, 200, .95); outline-offset: 0; } 100% { outline: 2px solid rgba(0, 230, 200, 0); outline-offset: 16px; } }
.bx-snap { animation: bxSnap .4s cubic-bezier(.2, 1.2, .4, 1), bxPop .6s ease-out; }
@media (prefers-reduced-motion: reduce) { #bx-fx, #bx-top { display: none !important; } }

/* =====================================================================
   ARACS inquiry flow — review modal, sending, "check your mail", error.
   Everything is namespaced .af-* and driven from main.js (openInquiryFlow).
   ===================================================================== */
@property --af-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

body.af-lock { overflow: hidden; }
.af-overlay, .af-overlay *, .af-overlay *::before, .af-overlay *::after { box-sizing: border-box; }
.af-inline-check, .af-inline-check * { box-sizing: border-box; }

.af-overlay {
	position: fixed; inset: 0; z-index: 10000;
	display: flex; align-items: center; justify-content: center;
	padding: 18px;
	font-family: Poppins, system-ui, sans-serif;
	background: rgba(3, 14, 22, 0);
	-webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
	transition: background .45s ease, backdrop-filter .45s ease, -webkit-backdrop-filter .45s ease;
}
.af-overlay.is-open {
	background: rgba(3, 14, 22, .8);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.af-overlay.is-closing {
	background: rgba(3, 14, 22, 0);
	-webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
}

/* Card ------------------------------------------------------------- */
.af-card {
	position: relative;
	width: min(100%, 560px);
	border-radius: 26px;
	background:
		radial-gradient(120% 60% at 100% 0%, rgba(0, 194, 168, .13), transparent 60%),
		linear-gradient(180deg, #0e2638 0%, #0a1c2b 100%);
	color: #fff; text-align: left;
	border: 1px solid rgba(0, 194, 168, .22);
	box-shadow: 0 50px 110px -25px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .03) inset;
	opacity: 0; transform: translateY(30px) scale(.94);
	transition: opacity .35s ease, transform .65s cubic-bezier(.2, 1.15, .3, 1);
}
.af-overlay.is-open .af-card { opacity: 1; transform: none; }
.af-overlay.is-closing .af-card {
	opacity: 0; transform: translateY(14px) scale(.97);
	transition: opacity .28s ease, transform .3s ease;
}
/* travelling light along the border */
.af-card::before {
	content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
	background: conic-gradient(from var(--af-a), transparent 0 72%, rgba(0, 194, 168, .95) 86%, rgba(255, 255, 255, .9) 90%, transparent 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	animation: afSpin 6s linear infinite; pointer-events: none;
}
.af-card[data-state="error"]::before {
	background: conic-gradient(from var(--af-a), transparent 0 72%, rgba(255, 107, 107, .95) 88%, transparent 100%);
}
@keyframes afSpin { to { --af-a: 360deg; } }

.af-inner {
	position: relative; z-index: 1;
	max-height: calc(100dvh - 36px);
	overflow-y: auto; overscroll-behavior: contain;
	border-radius: inherit; padding: 22px 24px 24px;
	scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent;
}

/* Top bar: stepper + close ------------------------------------------ */
.af-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.af-steps { flex: 1; display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 8px; min-width: 0; }
.af-steps li.af-step { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: #6f8796; transition: color .4s; white-space: nowrap; }
.af-steps .af-dot {
	width: 28px; height: 28px; flex: none; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-size: 14px;
	background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
	transition: background .4s, border-color .4s, color .4s, box-shadow .4s, transform .5s cubic-bezier(.2, 1.4, .4, 1);
}
.af-steps .af-line { flex: 1; height: 2px; min-width: 14px; border-radius: 2px; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; }
.af-steps .af-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #00c2a8, #4de0c6); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.3, .8, .3, 1); }
.af-steps .af-line.is-full::after { transform: scaleX(1); }
.af-step.is-active { color: #fff; }
.af-step.is-active .af-dot { background: rgba(0, 194, 168, .18); border-color: #00c2a8; color: #4de0c6; box-shadow: 0 0 0 5px rgba(0, 194, 168, .12); transform: scale(1.08); }
.af-step.is-done { color: #9fd9cf; }
.af-step.is-done .af-dot { background: #00c2a8; border-color: #00c2a8; color: #05202b; }
.af-step.is-error { color: #ff9b9b; }
.af-step.is-error .af-dot { background: rgba(255, 107, 107, .16); border-color: #ff6b6b; color: #ff8a8a; box-shadow: 0 0 0 5px rgba(255, 107, 107, .12); }

.af-x {
	flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1);
	background: rgba(255, 255, 255, .04); color: #b9ccd6; font-size: 18px; cursor: pointer;
	display: flex; align-items: center; justify-content: center; transition: .25s;
}
.af-x:hover { background: rgba(255, 255, 255, .1); color: #fff; transform: rotate(90deg); }
.af-card[data-state="sending"] .af-x { opacity: 0; pointer-events: none; }

/* Panels --------------------------------------------------------------- */
.af-stage { position: relative; }
.af-panel[hidden] { display: none; }
.af-panel.is-active { animation: afPanelIn .6s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes afPanelIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.af-h { margin: 0 0 6px; font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; outline: none; }
.af-sub { margin: 0; color: #a9bfcb; font-size: 14px; line-height: 1.6; }
.af-center { text-align: center; }
.af-center .af-sub { max-width: 380px; margin-inline: auto; }

/* Review ----------------------------------------------------------------- */
.af-review-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.af-badge-ico {
	width: 46px; height: 46px; flex: none; border-radius: 15px; display: flex; align-items: center; justify-content: center;
	font-size: 24px; color: #4de0c6; background: rgba(0, 194, 168, .13); border: 1px solid rgba(0, 194, 168, .3);
	animation: afFloat 3.2s ease-in-out infinite;
}
@keyframes afFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.af-emailbox {
	position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px;
	padding: 14px 14px 14px 16px; margin-bottom: 16px; border-radius: 16px;
	background: linear-gradient(135deg, rgba(255, 183, 3, .12), rgba(255, 183, 3, .04));
	border: 1px solid rgba(255, 183, 3, .42);
	animation: afRowIn .6s cubic-bezier(.2, .9, .25, 1) both;
}
.af-emailbox::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .09) 50%, transparent 70%); transform: translateX(-120%); animation: afSweep 3.6s ease-in-out 1s infinite; pointer-events: none; }
@keyframes afSweep { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.af-emailbox .af-mail-ico { width: 42px; height: 42px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; background: rgba(255, 183, 3, .18); color: #ffc866; }
.af-emailbox .af-eyebrow { margin: 0 0 1px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffc866; }
.af-emailbox .af-mail-val { display: block; font-size: 15.5px; font-weight: 700; color: #fff; word-break: break-all; line-height: 1.35; }
.af-emailbox .af-mail-note { display: block; margin-top: 2px; font-size: 12px; color: #c9d6dc; line-height: 1.45; }
.af-emailbox .af-edit { margin-left: auto; position: relative; z-index: 1; }

.af-group { margin-bottom: 14px; }
.af-group-title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #4de0c6; }
.af-group-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .12), transparent); }
.af-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 6px 10px 4px; border-radius: 12px; transition: background .2s; animation: afRowIn .55s cubic-bezier(.2, .9, .25, 1) both; animation-delay: calc(var(--i, 0) * 55ms + 120ms); }
.af-row:hover { background: rgba(255, 255, 255, .035); }
@keyframes afRowIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.af-row-ico { width: 32px; height: 32px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #7fcfc4; background: rgba(255, 255, 255, .05); }
.af-row-body { flex: 1; min-width: 0; }
.af-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #7f96a3; margin-bottom: 1px; }
.af-value { display: block; font-size: 14.5px; line-height: 1.5; color: #eaf5f7; word-break: break-word; white-space: pre-wrap; }
.af-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.af-more { margin-top: 4px; padding: 0; border: 0; background: none; color: #4de0c6; font-size: 12px; font-weight: 600; cursor: pointer; }
.af-more:hover { text-decoration: underline; }
.af-chip { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; vertical-align: 1px; background: rgba(37, 211, 102, .14); color: #6ee7a0; }
.af-chip.is-off { background: rgba(255, 255, 255, .07); color: #8ea4b0; }
.af-edit {
	flex: none; width: 32px; height: 32px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04);
	color: #a9bfcb; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .22s;
}
.af-edit:hover { background: rgba(0, 194, 168, .16); border-color: rgba(0, 194, 168, .5); color: #4de0c6; transform: translateY(-1px) rotate(-8deg); }

.af-check { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 11px 13px; border-radius: 14px; cursor: pointer; user-select: none; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .3s, background .3s; }
.af-check:hover { border-color: rgba(0, 194, 168, .45); }
.af-check input { position: absolute; opacity: 0; pointer-events: none; }
.af-box { width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, .35); display: flex; align-items: center; justify-content: center; transition: .25s; }
.af-box svg { width: 14px; height: 14px; }
.af-box path { fill: none; stroke: #05202b; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .35s ease .05s; }
.af-check input:checked + .af-box { background: #00c2a8; border-color: #00c2a8; box-shadow: 0 0 0 5px rgba(0, 194, 168, .15); }
.af-check input:checked + .af-box path { stroke-dashoffset: 0; }
.af-check:has(input:checked) { background: rgba(0, 194, 168, .08); border-color: rgba(0, 194, 168, .5); }
.af-check input:focus-visible + .af-box { outline: 2px solid #00c2a8; outline-offset: 3px; }
.af-check-text { font-size: 12.5px; line-height: 1.5; color: #cddae0; }
.af-check.is-shake { animation: afShake .5s; border-color: #ffb703; }
@keyframes afShake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

.af-foot { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 10px; margin: 16px -24px -24px; padding: 18px 24px 24px; background: linear-gradient(180deg, rgba(10, 28, 43, 0), #0a1c2b 30%); }
.af-foot-col { flex-direction: column; gap: 10px; }
.af-foot-btns { display: flex; gap: 10px; }
.af-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 18px; border-radius: 13px; font: 600 14.5px Poppins, system-ui, sans-serif; cursor: pointer; text-decoration: none; transition: transform .25s, box-shadow .3s, background .3s, opacity .3s, border-color .3s; }
.af-btn:active { transform: scale(.97); }
.af-btn-ghost { background: transparent; color: #d7e6ec; border: 1px solid rgba(255, 255, 255, .18); }
.af-btn-ghost:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); }
.af-btn-primary { flex: 1.4; border: 0; color: #05202b; background: linear-gradient(135deg, #00c2a8, #4de0c6); box-shadow: 0 10px 28px -10px rgba(0, 194, 168, .7); font-weight: 700; }
.af-btn-primary[aria-disabled="true"] { opacity: .42; box-shadow: none; filter: saturate(.6); }
.af-btn-primary:not([aria-disabled="true"]):hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(0, 194, 168, .85); }
.af-btn-primary:not([aria-disabled="true"])::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-130%); animation: afSweep 2.8s ease-in-out infinite; pointer-events: none; }
.af-btn-amber { background: linear-gradient(135deg, #ffb703, #ffd166); color: #2a1c00; border: 0; font-weight: 700; box-shadow: 0 10px 28px -10px rgba(255, 183, 3, .7); }
.af-btn-amber:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(255, 183, 3, .85); }
.af-btn-wide { flex: 1; }

/* Sending ------------------------------------------------------------------ */
.af-sending { padding: 6px 0 4px; }
.af-flight { width: min(100%, 340px); margin: 6px auto 22px; }
.af-flight svg { display: block; width: 100%; height: auto; overflow: visible; }
.af-trail { fill: none; stroke: url(#afTrailGrad); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 3 9; animation: afDash 1s linear infinite; }
@keyframes afDash { to { stroke-dashoffset: -24; } }
.af-node-ring { fill: none; stroke: rgba(0, 194, 168, .5); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: afPing 2s ease-out infinite; }
.af-node-ring.d2 { animation-delay: 1s; }
@keyframes afPing { from { transform: scale(1); opacity: .9; } to { transform: scale(2.3); opacity: 0; } }
.af-status { margin: 14px 0 0; min-height: 22px; font-size: 15px; font-weight: 600; color: #fff; }
.af-status span { display: inline-block; animation: afStatus .5s ease both; }
@keyframes afStatus { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.af-bar { width: min(100%, 260px); height: 5px; margin: 18px auto 14px; border-radius: 9px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.af-bar i { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, transparent, #00c2a8, #4de0c6, transparent); animation: afBar 1.35s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes afBar { from { transform: translateX(-110%); } to { transform: translateX(270%); } }
.af-keep { margin: 0; font-size: 12px; color: #7f96a3; }

/* Success -------------------------------------------------------------------- */
.af-hero { position: relative; width: 112px; height: 112px; margin: 10px auto 16px; display: flex; align-items: center; justify-content: center; }
.af-ring { position: absolute; inset: 14px; border-radius: 50%; border: 2px solid rgba(0, 194, 168, .55); opacity: 0; animation: afRipple 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }
.af-ring.r2 { animation-delay: .8s; } .af-ring.r3 { animation-delay: 1.6s; }
@keyframes afRipple { 0% { transform: scale(.8); opacity: 0; } 15% { opacity: .9; } 100% { transform: scale(2); opacity: 0; } }
.af-check-svg { position: relative; width: 96px; height: 96px; overflow: visible; filter: drop-shadow(0 0 18px rgba(0, 194, 168, .45)); }
.af-check-fill { fill: rgba(0, 194, 168, .14); opacity: 0; animation: afFade .5s ease .55s forwards; }
.af-check-circle { fill: none; stroke: #00c2a8; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 252; stroke-dashoffset: 252; transform: rotate(-90deg); transform-origin: 48px 48px; animation: afDraw .8s cubic-bezier(.4, .1, .2, 1) .1s forwards; }
.af-check-mark { fill: none; stroke: #4de0c6; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: afDraw .5s cubic-bezier(.4, .1, .2, 1) .75s forwards; }
@keyframes afDraw { to { stroke-dashoffset: 0; } }
@keyframes afFade { to { opacity: 1; } }
.af-confetti { position: absolute; inset: 0; pointer-events: none; }
.af-confetti i { position: absolute; left: 50%; top: 50%; width: var(--s, 8px); height: calc(var(--s, 8px) * .5); border-radius: 2px; background: var(--c); opacity: 0; animation: afConf 1.5s cubic-bezier(.12, .7, .3, 1) var(--d, .7s) forwards; }
@keyframes afConf {
	0% { transform: translate(-50%, -50%) scale(.2) rotate(0); opacity: 1; }
	55% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--r)); opacity: 1; }
	100% { transform: translate(calc(-50% + var(--dx) * 1.1), calc(-50% + var(--dy) + 70px)) scale(.9) rotate(calc(var(--r) * 1.6)); opacity: 0; }
}

.af-mailcard { position: relative; display: flex; align-items: center; gap: 16px; margin: 20px 0 14px; padding: 16px; text-align: left; border-radius: 18px; background: linear-gradient(135deg, rgba(255, 183, 3, .13), rgba(255, 183, 3, .04)); border: 1px solid rgba(255, 183, 3, .5); animation: afRowIn .7s cubic-bezier(.2, .9, .25, 1) 1s both; }
.af-mailcard .af-eyebrow { margin: 0 0 2px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffc866; }
.af-mailcard h4 { margin: 0 0 3px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.af-mailcard p.af-to { margin: 0; font-size: 13px; color: #d4dee3; word-break: break-all; }
.af-mailcard p.af-to b { color: #ffd98a; }
.af-envelope { position: relative; width: 78px; height: 56px; flex: none; margin-top: 10px; perspective: 400px; }
.af-env-back, .af-env-front, .af-env-flap { position: absolute; inset: 0; border-radius: 6px; }
.af-env-back { background: #d99a06; }
.af-env-front { background: linear-gradient(160deg, #ffd166, #ffb703); clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%); z-index: 3; }
.af-env-flap { background: linear-gradient(180deg, #ffe08a, #ffc22e); clip-path: polygon(0 0, 100% 0, 50% 55%); transform-origin: top center; z-index: 4; animation: afFlap 4.6s ease-in-out 1.6s infinite; }
.af-letter { position: absolute; left: 9px; right: 9px; top: 7px; bottom: 6px; z-index: 2; padding: 7px 7px 0; border-radius: 4px; background: #fff; display: flex; flex-direction: column; gap: 4px; animation: afLetter 4.6s ease-in-out 1.6s infinite; }
.af-letter i { display: block; height: 3px; border-radius: 3px; background: #c9d5db; } .af-letter i:nth-child(2) { width: 70%; } .af-letter i:nth-child(3) { width: 45%; background: #00c2a8; }
.af-notif { position: absolute; z-index: 6; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%; background: #ff5d5d; color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 0 rgba(255, 93, 93, .6); animation: afNotif 1.6s ease-out infinite; }
@keyframes afNotif { 0% { box-shadow: 0 0 0 0 rgba(255, 93, 93, .6); transform: scale(1); } 15% { transform: scale(1.18); } 70%, 100% { box-shadow: 0 0 0 11px rgba(255, 93, 93, 0); transform: scale(1); } }
@keyframes afFlap { 0%, 12% { transform: rotateX(0); z-index: 4; } 24%, 76% { transform: rotateX(180deg); z-index: 1; } 90%, 100% { transform: rotateX(0); z-index: 4; } }
@keyframes afLetter { 0%, 14% { transform: translateY(0); } 30%, 72% { transform: translateY(-20px); } 90%, 100% { transform: translateY(0); } }

.af-todo { list-style: none; margin: 0 0 4px; padding: 0; text-align: left; counter-reset: afn; }
.af-todo li { display: flex; gap: 13px; padding: 11px 4px; animation: afRowIn .6s cubic-bezier(.2, .9, .25, 1) both; animation-delay: calc(1.25s + var(--i) * .14s); }
.af-todo li + li { border-top: 1px dashed rgba(255, 255, 255, .09); }
.af-num { width: 28px; height: 28px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #4de0c6; background: rgba(0, 194, 168, .13); border: 1px solid rgba(0, 194, 168, .35); }
.af-todo strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 1px; }
.af-todo p { margin: 0; font-size: 13px; line-height: 1.55; color: #a9bfcb; }
.af-todo p b { color: #e8f4f6; font-weight: 600; word-break: break-all; }
.af-todo li.af-spam .af-num { color: #ffc866; background: rgba(255, 183, 3, .13); border-color: rgba(255, 183, 3, .45); font-size: 16px; }
.af-todo li.af-spam .af-num i { animation: afSpam 1.3s ease-in-out infinite; }
@keyframes afSpam { 0%, 100% { transform: scale(1); opacity: .65; } 50% { transform: scale(1.22); opacity: 1; } }
.af-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; animation: afRowIn .6s cubic-bezier(.2, .9, .25, 1) 1.8s both; }
.af-actions .af-btn { flex: 1 1 160px; }
.af-wrong { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: #8ea4b0; animation: afRowIn .6s ease 2s both; }
.af-wrong a { color: #4de0c6; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Error ------------------------------------------------------------------------ */
.af-err-ico { width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #ff8a8a; background: rgba(255, 107, 107, .12); border: 1px solid rgba(255, 107, 107, .4); animation: afShake .6s .15s; }
.af-details { margin: 12px 0 0; text-align: left; font-size: 12px; color: #7f96a3; }
.af-details summary { cursor: pointer; width: max-content; margin-inline: auto; }
.af-details p { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); word-break: break-word; }
.af-contact { display: grid; gap: 8px; margin: 18px 0 4px; text-align: left; }
.af-contact a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 13px; color: #e8f4f6; text-decoration: none; font-size: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); transition: .22s; }
.af-contact a:hover { border-color: rgba(0, 194, 168, .55); transform: translateX(3px); }
.af-contact a i { font-size: 20px; color: #4de0c6; }
.af-contact strong { display: block; font-weight: 600; line-height: 1.2; } .af-contact small { color: #8ea4b0; font-size: 12.5px; }

/* Field highlight after "edit" jump ---------------------------------------------- */
.af-flash { animation: afFlash 1.7s ease-out; }
@keyframes afFlash { 0% { box-shadow: 0 0 0 0 rgba(0, 194, 168, .8); border-color: #00c2a8; } 70% { box-shadow: 0 0 0 12px rgba(0, 194, 168, 0); border-color: #00c2a8; } 100% { box-shadow: 0 0 0 0 rgba(0, 194, 168, 0); } }

/* Inline success card (the page, after the modal is closed) ------------------------- */
.af-inline-check { width: 76px; height: 76px; margin-bottom: 16px; }
.af-inline-check .af-check-svg { width: 76px; height: 76px; }
.af-inline-note { display: flex; gap: 12px; align-items: flex-start; max-width: 440px; padding: 14px 16px; border-radius: 14px; text-align: left; background: rgba(255, 183, 3, .08); border: 1px solid rgba(255, 183, 3, .45); }
.af-inline-note i { flex: none; font-size: 24px; color: #ffc866; animation: afFloat 2s ease-in-out infinite; }
.af-inline-note p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #e8f4f6; }
.af-inline-note b { word-break: break-all; }

/* Phones: bottom sheet ------------------------------------------------------------------- */
@media (max-width: 560px) {
	.af-overlay { align-items: flex-end; padding: 0; }
	.af-card { width: 100%; border-radius: 26px 26px 0 0; transform: translateY(100%); transition: opacity .3s ease, transform .6s cubic-bezier(.2, 1, .3, 1); }
	.af-inner { max-height: 94dvh; padding: 18px 18px calc(20px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; }
	.af-foot { margin: 16px -18px calc(-20px - env(safe-area-inset-bottom)); padding: 16px 18px calc(20px + env(safe-area-inset-bottom)); }
	.af-steps li.af-step > span:last-child { display: none; }
	.af-step.is-active > span:last-child { display: inline; }
	.af-h { font-size: 20px; }
	.af-mailcard { flex-direction: column; text-align: center; }
	.af-envelope { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
	.af-card::before, .af-badge-ico, .af-emailbox::after, .af-btn-primary::after, .af-ring, .af-node-ring, .af-trail,
	.af-env-flap, .af-letter, .af-notif, .af-todo li.af-spam .af-num i, .af-inline-note i, .af-bar i { animation: none !important; }
	.af-panel.is-active, .af-row, .af-emailbox, .af-mailcard, .af-todo li, .af-actions, .af-wrong { animation-duration: .01s !important; animation-delay: 0s !important; }
	.af-check-circle, .af-check-mark { animation-duration: .01s !important; animation-delay: 0s !important; }
	.af-check-fill { animation-duration: .01s !important; animation-delay: 0s !important; }
	.af-confetti { display: none; }
	.af-letter { transform: translateY(-20px); }
	.af-overlay, .af-card { transition-duration: .01s !important; }
}

