/* Invite friends (app-invite.js, founder 2026-10-10). Premium 3D card in the app's look; rounded corners need !important. */
.ai-inv { position: relative; margin: 22px 0; padding: 26px 28px; overflow: hidden; color: #cdd5e3; border-radius: 24px !important; background: radial-gradient(60% 90% at 0% 0%, rgba(34, 197, 94, 0.18), transparent 62%), radial-gradient(55% 90% at 100% 100%, rgba(251, 191, 36, 0.14), transparent 62%), linear-gradient(165deg, #0f1b3a 0%, #0a1226 55%, #070d1d 100%); border: 1px solid rgba(120, 170, 255, 0.24); box-shadow: 0 46px 90px -55px rgba(0, 0, 0, 0.95), 0 30px 70px -55px rgba(34, 197, 94, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08); animation: ai-in 0.6s ease-out both; scroll-margin-top: 80px; }
.ai-inv.is-settings { margin: 0 0 18px; }
.ai-inv.is-flash { animation: ai-flash 1.6s ease-out; }
.ai-wait, .ai-empty { margin: 0; color: #9aa6bd; font-size: 0.9rem; }
.ai-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ai-head h2 { margin: 0 0 4px; color: #fff; font: 700 1.35rem/1.25 "Space Grotesk", Inter, sans-serif; }
.ai-head p { margin: 0; color: #c3cad8; font-size: 0.93rem; line-height: 1.5; }
.ai-gift { display: grid; place-items: center; flex: none; width: 52px; height: 52px; color: #fff; background: linear-gradient(135deg, #22c55e, #14b8c9); border-radius: 16px !important; box-shadow: 0 14px 28px -12px rgba(34, 197, 94, 0.9); animation: ai-bob 4s ease-in-out infinite; }
.ai-gift svg { width: 26px; height: 26px; }
.ai-rules { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; perspective: 600px; }
.ai-rule { position: relative; display: flex; align-items: baseline; gap: 7px; padding: 9px 14px; border-radius: 14px !important; background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(120, 170, 255, 0.22); box-shadow: 0 14px 26px -18px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.1); transition: transform 0.25s; animation: ai-up 0.45s calc(0.1s + var(--i) * 0.08s) ease-out backwards; }
.ai-rule:hover { transform: translateY(-3px) rotateX(8deg); }
.ai-rule b { font: 700 1.15rem/1 "Space Grotesk", Inter, sans-serif; background: linear-gradient(100deg, #fff, #86efac); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-rule span { color: #c3cad8; font-size: 0.84rem; }
.ai-rule.is-done { border-color: rgba(34, 197, 94, 0.55); }
.ai-rule-ok { display: inline-grid; place-items: center; width: 18px; height: 18px; color: #fff; background: #22c55e; border-radius: 50% !important; align-self: center; }
.ai-rule-ok svg { width: 12px; height: 12px; }
.ai-link { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.ai-link input { flex: 1 1 280px; min-width: 0; height: 46px; padding: 0 14px; color: #fff; font: 500 0.92rem/1 Inter, sans-serif; background: rgba(4, 9, 22, 0.6) !important; border: 1px solid rgba(34, 197, 94, 0.4) !important; border-radius: 12px !important; outline: none; }
.ai-link input:focus { border-color: #22c55e !important; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22); }
.ai-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 16px; color: #e3e8f4; font: 600 0.9rem/1 Inter, sans-serif; text-decoration: none; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px !important; cursor: pointer; transition: transform 0.15s, filter 0.15s; }
.ai-btn svg { width: 17px; height: 17px; }
.ai-btn:hover { transform: translateY(-2px); }
.ai-btn.is-main { color: #fff; background: linear-gradient(135deg, #34d399, #16a34a); border: 0; box-shadow: 0 14px 28px -12px rgba(34, 197, 94, 0.95); }
.ai-btn.is-ok { background: linear-gradient(135deg, #38b6ff, #1f7bff); }
.ai-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.ai-panel { padding: 16px; border-radius: 18px !important; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09); }
.ai-panel h3 { margin: 0 0 10px; color: #fff; font-size: 1rem; }
.ai-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.ai-stat { padding: 10px; text-align: center; border-radius: 12px !important; background: rgba(4, 9, 22, 0.45); }
.ai-stat strong { display: block; color: #fff; font: 700 1.4rem/1.1 "Space Grotesk", Inter, sans-serif; font-variant-numeric: tabular-nums; }
.ai-stat span { color: #9aa6bd; font-size: 0.74rem; }
.ai-next { margin: 0 0 6px; color: #fde68a; font-size: 0.86rem; font-weight: 600; }
.ai-next.is-done { color: #86efac; }
.ai-bar { height: 8px; margin-bottom: 12px; overflow: hidden; border-radius: 999px !important; background: rgba(255, 255, 255, 0.08); }
.ai-bar i { display: block; width: 0; height: 100%; border-radius: inherit !important; background: linear-gradient(90deg, #22c55e, #fbbf24); transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ai-friends { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; max-height: 220px; overflow-y: auto; }
.ai-friends li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px !important; background: rgba(255, 255, 255, 0.03); }
.ai-av { display: grid; place-items: center; flex: none; width: 30px; height: 30px; color: #fff; font: 700 0.72rem/1 "Space Grotesk", Inter, sans-serif; background: linear-gradient(135deg, #1f7bff, #38b6ff); border-radius: 50% !important; }
.ai-fr-tx { flex: 1; min-width: 0; }
.ai-fr-tx strong { display: block; color: #fff; font-size: 0.86rem; }
.ai-fr-tx small { color: #9aa6bd; font-size: 0.74rem; }
.ai-friends em { padding: 3px 8px; color: #9aa6bd; font-style: normal; font-size: 0.72rem; border-radius: 999px !important; background: rgba(255, 255, 255, 0.06); }
.ai-friends em.is-built { color: #86efac; background: rgba(34, 197, 94, 0.14); }
.ai-top { display: grid; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.ai-top li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px !important; background: rgba(255, 255, 255, 0.03); }
.ai-top li.is-me { background: rgba(34, 197, 94, 0.12); box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.45); }
.ai-top a { flex: 1; min-width: 0; overflow: hidden; color: #fff; font-size: 0.88rem; font-weight: 600; text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.ai-top b { color: #86efac; font-size: 0.8rem; }
.ai-medal { display: grid; place-items: center; flex: none; width: 28px; height: 28px; color: #fff; font: 700 0.72rem/1 "Space Grotesk", Inter, sans-serif; background: rgba(255, 255, 255, 0.1); border-radius: 50% !important; }
.ai-medal.is-1 { color: #1a1205; background: linear-gradient(135deg, #fde68a, #f59e0b); }
.ai-medal.is-2 { color: #0f172a; background: linear-gradient(135deg, #f1f5f9, #94a3b8); }
.ai-medal.is-3 { background: linear-gradient(135deg, #fbbf24, #b45309); }
.ai-rank { margin: 0; color: #c3cad8; font-size: 0.84rem; }
@keyframes ai-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes ai-up { from { opacity: 0; transform: translateY(8px); } }
@keyframes ai-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-4deg); } }
@keyframes ai-flash { 0%, 100% { box-shadow: 0 46px 90px -55px rgba(0, 0, 0, 0.95); } 30% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.7), 0 0 60px -10px rgba(34, 197, 94, 0.8); } }
@media (max-width: 800px) { .ai-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ai-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .ai-rule { flex-direction: column; gap: 2px; padding: 9px 11px; } .ai-inv { padding: 20px 16px; border-radius: 20px !important; } .ai-head h2 { font-size: 1.15rem; } .ai-btn { flex: 1 1 auto; } .ai-acts { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .ai-inv, .ai-gift, .ai-rule { animation: none !important; } .ai-bar i { transition: none; } }
/* Its own page (invite-friends.html) */
.aip { padding: 8px 0 40px; }
.ai-inv.is-page { margin: 0; padding: 32px 34px; }
.ai-inv.is-page .ai-head h2 { font-size: 1.7rem; }
@media (max-width: 640px) { .ai-inv.is-page { padding: 20px 16px; } .ai-inv.is-page .ai-head h2 { font-size: 1.3rem; } }
/* The founder's view */
.ai-stats.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ai-top.is-long { max-height: 420px; overflow-y: auto; }
/* Extras (founder 2026-10-10, "Add them all"): level, welcome, ladder, contest, messages, picture/QR modal, founder chart */
.ai-level { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 7px 12px; color: #1a1205; font: 700 0.8rem/1 "Space Grotesk", Inter, sans-serif; background: linear-gradient(135deg, #fde68a, #f59e0b); border-radius: 999px !important; box-shadow: 0 10px 22px -10px rgba(245, 158, 11, 0.9); white-space: nowrap; }
.ai-level svg { width: 15px; height: 15px; }
.ai-welcome { display: grid; gap: 6px; justify-items: start; margin-bottom: 16px; padding: 14px 16px; border-radius: 16px !important; background: linear-gradient(120deg, rgba(34, 197, 94, 0.2), rgba(20, 184, 201, 0.12)); border: 1px solid rgba(34, 197, 94, 0.45); }
.ai-welcome strong { color: #fff; font-size: 1rem; }
.ai-welcome span { color: #d6deea; font-size: 0.88rem; }
.ai-welcome .ai-btn { margin-top: 4px; height: 40px; }
.ai-ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; counter-reset: s; }
.ai-step { position: relative; padding: 10px 12px; border-radius: 14px !important; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0.62; transition: transform 0.25s; }
.ai-step b { display: block; color: #fff; font: 700 0.95rem/1.2 "Space Grotesk", Inter, sans-serif; }
.ai-step span { color: #9aa6bd; font-size: 0.76rem; }
.ai-step.is-on { opacity: 1; border-color: rgba(34, 197, 94, 0.5); background: linear-gradient(160deg, rgba(34, 197, 94, 0.16), rgba(255, 255, 255, 0.02)); }
.ai-step.is-now { border-color: #fbbf24; box-shadow: 0 16px 30px -18px rgba(251, 191, 36, 0.9); transform: translateY(-3px); }
.ai-step.is-now b { color: #fde68a; }
.ai-more { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px 14px; color: #86efac; font-size: 0.88rem; font-weight: 600; text-decoration: none; border-radius: 14px !important; background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.3); }
.ai-more svg { flex: none; width: 17px; height: 17px; transition: transform 0.2s; }
.ai-more:hover svg { transform: translateX(4px); }
.ai-contest, .ai-inv > .ai-panel { margin-top: 16px; }
.ai-grid .ai-contest { margin-top: 0; }
.ai-contest { background: radial-gradient(70% 120% at 100% 0%, rgba(251, 191, 36, 0.14), transparent 60%), rgba(255, 255, 255, 0.04); border-color: rgba(251, 191, 36, 0.3); }
.ai-contest-h { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ai-contest-h h3 { margin: 0 0 4px; }
.ai-contest-h p { margin: 0; color: #fde68a; font-size: 0.88rem; }
.ai-cd { padding: 6px 11px; color: #fff; font: 700 0.82rem/1 "Space Grotesk", Inter, sans-serif; font-variant-numeric: tabular-nums; background: rgba(4, 9, 22, 0.6); border: 1px solid rgba(251, 191, 36, 0.4); border-radius: 999px !important; white-space: nowrap; }
.ai-mine { margin: 0 0 10px; color: #c3cad8; font-size: 0.86rem; }
.ai-msg-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ai-tab { padding: 7px 12px; color: #c3cad8; font: 600 0.82rem/1 Inter, sans-serif; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px !important; cursor: pointer; }
.ai-tab[aria-pressed="true"] { color: #fff; background: rgba(34, 197, 94, 0.22); border-color: rgba(34, 197, 94, 0.6); }
.ai-msg-tx { display: block; width: 100%; box-sizing: border-box; margin-bottom: 10px; padding: 12px 14px; color: #e3e8f4; font: 400 0.9rem/1.5 Inter, sans-serif; resize: vertical; background: rgba(4, 9, 22, 0.6) !important; border: 1px solid rgba(255, 255, 255, 0.14) !important; border-radius: 12px !important; }
.ai-help { flex: none; padding: 4px 9px; color: #93c5fd; font-size: 0.74rem; font-weight: 600; text-decoration: none; border: 1px solid rgba(56, 182, 255, 0.4); border-radius: 999px !important; }
.ai-help:hover { background: rgba(56, 182, 255, 0.14); }
.ai-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; background: rgba(2, 6, 16, 0.78); backdrop-filter: blur(6px); animation: ai-up 0.2s ease-out; }
.ai-modal-box { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px; color: #cdd5e3; border-radius: 20px !important; background: linear-gradient(165deg, #0f1b3a, #070d1d); border: 1px solid rgba(120, 170, 255, 0.25); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9); }
.ai-modal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ai-modal-h h3 { margin: 0; color: #fff; font: 700 1.1rem/1.2 "Space Grotesk", Inter, sans-serif; }
.ai-x { height: 36px; }
.ai-pic img, .ai-qr canvas { display: block; width: 100%; height: auto; margin-bottom: 12px; border-radius: 14px !important; }
.ai-qr canvas { max-width: 320px; margin: 0 auto 12px; }
.ai-qr p, .ai-pic p { margin: 10px 0 0; color: #9aa6bd; font-size: 0.86rem; }
.ai-qr .ai-acts { justify-content: center; }
.ai-prize { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.ai-prize input { flex: 1 1 220px; min-width: 0; height: 42px; padding: 0 12px; color: #fff; font: 500 0.88rem/1 Inter, sans-serif; background: rgba(4, 9, 22, 0.6) !important; border: 1px solid rgba(251, 191, 36, 0.4) !important; border-radius: 12px !important; }
.ai-prize .ai-btn { height: 42px; }
.ai-chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; margin-bottom: 16px; padding: 8px 4px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.ai-col { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.ai-col i { display: block; width: 100%; max-width: 26px; border-radius: 6px 6px 2px 2px !important; background: linear-gradient(180deg, #34d399, #16a34a); box-shadow: 0 10px 20px -10px rgba(34, 197, 94, 0.9); animation: ai-grow 0.8s ease-out both; transform-origin: bottom; }
.ai-col b { color: #fff; font-size: 0.72rem; }
.ai-col span { color: #7d8aa5; font-size: 0.62rem; white-space: nowrap; }
.ai-alerts { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ai-alerts li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px !important; background: rgba(255, 255, 255, 0.03); }
.ai-alerts strong { color: #fff; font-size: 0.86rem; }
.ai-alerts span { color: #9aa6bd; font-size: 0.76rem; white-space: nowrap; }
.ai-grid + .ai-grid { margin-top: 16px; }
@keyframes ai-grow { from { transform: scaleY(0); } }
@media (max-width: 640px) { .ai-ladder { grid-template-columns: 1fr 1fr; } .ai-level { margin-left: 0; } .ai-head { flex-wrap: wrap; } .ai-col span { font-size: 0.55rem; } .ai-chart { gap: 3px; } }
@media (prefers-reduced-motion: reduce) { .ai-col i, .ai-modal { animation: none !important; } }
