:root { --bg: #0B1020; --card: rgba(255,255,255,.06); --line: rgba(255,255,255,.12); --txt: #F1F5F9; --mut: #94A3B8; --brand: #F26522; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: radial-gradient(1000px 500px at 15% -10%, #1E1B4B 0%, transparent 60%), radial-gradient(800px 500px at 100% 0%, #3B0A45 0%, transparent 55%), var(--bg); color: var(--txt); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; overflow-x: hidden; }
.hidden { display: none !important; }
.orb { position: fixed; border-radius: 50%; filter: blur(80px); opacity: .35; pointer-events: none; animation: float 12s ease-in-out infinite; }
.o1 { width: 340px; height: 340px; background: #F26522; top: -120px; left: -90px; }
.o2 { width: 300px; height: 300px; background: #7C3AED; top: 30%; right: -120px; animation-delay: -4s; }
.o3 { width: 260px; height: 260px; background: #0EA5E9; bottom: -100px; left: 35%; opacity: .2; animation-delay: -8s; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-22px) } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }
@keyframes shake { 20%,60% { transform: translateX(-6px) } 40%,80% { transform: translateX(6px) } }

.center { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; position: relative; }
.card { width: 380px; max-width: 100%; padding: 30px 28px 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: rise .6s cubic-bezier(.2,.9,.3,1) both; }
.card.shake { animation: shake .4s; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #FF7A2F, #F26522); color: #fff; font-weight: 900; font-size: 22px; box-shadow: 0 6px 20px rgba(242,101,34,.45); }
.brand-name { font-size: 17px; font-weight: 900; letter-spacing: .5px; }
.brand-name b { color: var(--brand); }
.brand-sub { font-size: 11px; color: var(--mut); font-weight: 600; margin-top: 2px; }
label { display: block; margin: 14px 0 6px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--mut); }
input { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: rgba(0,0,0,.28); color: var(--txt); font-size: 15px; font-weight: 600; font-family: inherit; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(242,101,34,.18); }
input.code { text-align: center; font-size: 26px; letter-spacing: 8px; font-family: Consolas, 'Courier New', monospace; }
.hint { font-size: 12.5px; color: var(--mut); line-height: 1.55; font-weight: 600; }
.hint b { color: var(--txt); }
.btn { width: 100%; margin-top: 20px; padding: 14px; border: none; border-radius: 12px; background: linear-gradient(135deg, #FF7A2F, #F26522); color: #fff; font-weight: 900; font-size: 14px; letter-spacing: .4px; cursor: pointer; font-family: inherit; box-shadow: 0 10px 28px rgba(242,101,34,.4); transition: transform .15s, box-shadow .2s, opacity .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(242,101,34,.5); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.link { margin-top: 12px; background: none; border: none; color: var(--mut); font-weight: 700; font-size: 12px; cursor: pointer; font-family: inherit; }
.link:hover { color: var(--txt); }
.error { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(239,68,68,.15); border: 1px solid rgba(248,113,113,.45); color: #FECACA; font-size: 12.5px; font-weight: 700; }
.foot { margin-top: 18px; font-size: 11px; color: #64748B; font-weight: 600; text-align: center; }

.home { position: relative; min-height: 100vh; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; border-bottom: 1px solid var(--line); background: rgba(11,16,32,.6); backdrop-filter: blur(10px); }
.top .brand { margin: 0; }
.who { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; color: var(--mut); }
.ghost { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--txt); font-weight: 800; font-size: 12px; cursor: pointer; font-family: inherit; transition: background .2s; }
.ghost:hover { background: rgba(255,255,255,.14); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 56px 24px; }
h1 { margin: 0; font-size: 36px; font-weight: 900; letter-spacing: -1px; animation: rise .5s both; }
.sub { margin: 8px 0 32px; color: var(--mut); font-weight: 600; animation: rise .5s .08s both; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tile { --c: var(--brand); position: relative; display: block; padding: 24px; border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid var(--line); color: inherit; text-decoration: none; cursor: pointer; animation: rise .6s cubic-bezier(.2,.9,.3,1) both; transition: transform .3s cubic-bezier(.2,.9,.3,1.3), border-color .3s, box-shadow .3s; overflow: hidden; }
.tile::after { content: ''; position: absolute; inset: 0; background: radial-gradient(300px 120px at 20% 0%, var(--c), transparent 70%); opacity: .12; transition: opacity .3s; }
.tile:hover { transform: translateY(-8px); border-color: var(--c); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.tile:hover::after { opacity: .3; }
.tile .badge { position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--c); color: #0B1020; font-weight: 900; font-size: 20px; margin-bottom: 18px; box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.tile h2 { position: relative; z-index: 1; margin: 0 0 6px; font-size: 20px; font-weight: 900; }
.tile p { position: relative; z-index: 1; margin: 0 0 18px; font-size: 13px; line-height: 1.5; color: var(--mut); font-weight: 600; min-height: 38px; }
.tile .open { position: relative; z-index: 1; font-size: 12px; font-weight: 900; color: var(--c); letter-spacing: .6px; }
.empty { color: var(--mut); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
