/* cry.best/bio · bio page dashboard (cry tokens from styles.css) */
.bio-app [hidden] { display: none !important; }
body.bio-app { background: var(--bg); min-height: 100vh; }
.bio-app svg { fill: currentColor; }
.bio-app input, .bio-app textarea, .bio-app select, .bio-app button { font: inherit; }

/* full-screen states */
.ba-full { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; position: relative; }
.ba-spin { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.1); border-top-color: #fff; animation: ba-rot .8s linear infinite; }
@keyframes ba-rot { to { transform: rotate(360deg); } }
.ba-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.ba-brand img { width: 30px; height: 30px; border-radius: 9px; }
.ba-brand em { font-style: normal; font-weight: 500; color: var(--zinc-500); font-size: 15px; }
.ba-login > .ba-brand { position: absolute; top: 22px; left: 24px; }
.ba-login::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 30%, rgba(166,196,236,.09), transparent 70%); pointer-events: none; }
.ba-hero { position: relative; max-width: 640px; text-align: center; }
.ba-kicker { display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--accent); padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(166,196,236,.25); background: rgba(166,196,236,.06); margin-bottom: 18px; }
.ba-hero h1 { font-size: clamp(38px, 7.5vw, 64px); line-height: 1.02; margin: 0 0 16px; letter-spacing: -.03em; }
.ba-hero p { color: var(--zinc-400); font-size: 17px; line-height: 1.6; margin: 0 auto 28px; max-width: 520px; }
.ba-login-btn { display: inline-flex; gap: 10px; align-items: center; }
.ba-login-btn svg { width: 20px; height: 20px; }
.ba-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 40px; text-align: left; }
.ba-feats div { padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.ba-feats b { font-size: 14px; }
.ba-feats span { font-size: 13px; color: var(--zinc-500); line-height: 1.4; }

/* app shell */
.ba-app { display: grid; grid-template-columns: 244px minmax(0, 1fr) 380px; min-height: 100vh; }
.ba-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 20px 14px; border-right: 1px solid var(--line); background: var(--bg); }
.ba-side > .ba-brand { padding: 4px 8px; }
.ba-nav { display: flex; flex-direction: column; gap: 2px; }
.ba-nav button { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 0; border-radius: 11px; background: none; color: var(--zinc-400); font-size: 15px; font-weight: 500; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.ba-nav button svg { width: 19px; height: 19px; flex: none; }
.ba-nav button:hover { color: #fff; background: rgba(255,255,255,.03); }
.ba-nav button.on { color: #fff; background: rgba(166,196,236,.1); box-shadow: inset 0 0 0 1px rgba(166,196,236,.18); }
.ba-nav button.on svg { color: var(--accent); }
.ba-side-card { margin-top: auto; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.ba-side-card > span { font-size: 13px; color: var(--zinc-500); }
.ba-me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.ba-me img { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.ba-me div { min-width: 0; flex: 1; line-height: 1.25; }
.ba-me b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba-me a { font-size: 12px; color: var(--zinc-500); text-decoration: none; }
.ba-me a:hover { color: #fff; }

.ba-main { min-width: 0; padding: 0 28px 120px; }
.ba-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 14px; background: linear-gradient(var(--bg) 70%, transparent); }
.ba-top h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.ba-top-actions { display: flex; gap: 8px; }
.ba-page { animation: ba-fade .25s ease both; }
@keyframes ba-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ba-h { font-size: 15px; font-weight: 600; color: var(--zinc-200); margin: 28px 0 12px; display: flex; align-items: baseline; gap: 8px; }
.ba-h small { font-size: 13px; font-weight: 400; color: var(--zinc-500); }
.ba-panel { padding: 20px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 12px; }
.ba-panel h2 { font-size: 17px; margin: 0 0 6px; }
.ba-panel.danger { border-color: rgba(242,63,67,.18); }
.ba-muted { color: var(--zinc-500); font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.ba-muted code { font-family: var(--mono); color: var(--zinc-400); }

/* buttons */
.ba-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg-3); color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, opacity .15s, transform .1s; white-space: nowrap; }
.ba-btn svg { width: 16px; height: 16px; }
.ba-btn:hover { background: #1d1e1f; border-color: rgba(255,255,255,.1); }
.ba-btn:active { transform: scale(.98); }
.ba-btn.block { width: 100%; }
.ba-btn.primary { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.ba-btn.primary:hover { background: #e9e9e9; }
.ba-btn.primary:disabled { opacity: .35; cursor: default; }
.ba-btn.accent { background: rgba(166,196,236,.12); border-color: rgba(166,196,236,.28); color: #dce8f8; }
.ba-btn.accent:hover { background: rgba(166,196,236,.2); }
.ba-btn.danger { color: #ff8a8d; border-color: rgba(242,63,67,.35); background: rgba(242,63,67,.06); }
.ba-btn.danger:hover { background: rgba(242,63,67,.14); }
.ba-icon-btn { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--zinc-400); cursor: pointer; }
.ba-icon-btn svg { width: 17px; height: 17px; }
.ba-icon-btn:hover { background: rgba(255,255,255,.06); color: #fff; }

/* overview */
.ba-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.ba-stat { padding: 18px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; position: relative; overflow: hidden; }
.ba-stat::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 140px; height: 140px; background: radial-gradient(circle, rgba(166,196,236,.08), transparent 70%); pointer-events: none; }
.ba-stat span { font-size: 13px; color: var(--zinc-500); }
.ba-stat b { font-size: 24px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba-stat small { font-size: 12px; color: var(--zinc-500); }
.ba-stat small a { color: var(--accent); text-decoration: none; }
.ba-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.ba-progress { height: 8px; border-radius: 8px; background: rgba(255,255,255,.06); overflow: hidden; margin: 14px 0 8px; }
.ba-progress i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, #7fa6d9, var(--accent), #e4eefb); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.ba-todo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba-todo button { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); color: #fff; text-align: left; font-size: 14px; cursor: pointer; transition: border-color .15s; }
.ba-todo button:hover { border-color: rgba(166,196,236,.3); }
.ba-todo button i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); flex: none; display: grid; place-items: center; }
.ba-todo button.done { color: var(--zinc-500); }
.ba-todo button.done i { background: var(--ok); border-color: var(--ok); }
.ba-todo button.done i::after { content: ""; width: 8px; height: 4px; border: 2px solid #0c0d0d; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.ba-quick { display: grid; gap: 8px; margin-top: 12px; }
.ba-quick button { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); color: var(--zinc-200); text-align: left; font-size: 14px; cursor: pointer; display: flex; justify-content: space-between; }
.ba-quick button::after { content: "→"; color: var(--zinc-500); }
.ba-quick button:hover { border-color: rgba(166,196,236,.3); color: #fff; }

/* media tiles */
.ba-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ba-tile { position: relative; aspect-ratio: 1 / .95; border-radius: 18px; background: var(--bg-2); border: 1.5px dashed rgba(255,255,255,.1); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: border-color .15s, background .15s; }
.ba-tile:hover, .ba-tile.drag { border-color: rgba(166,196,236,.45); background: #131516; }
.ba-tile .t-label { position: absolute; top: 10px; left: 12px; z-index: 2; font-size: 13px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.ba-tile .t-empty { flex: 1; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 30px 10px 10px; color: var(--zinc-500); font-size: 12px; line-height: 1.35; }
.ba-tile .t-empty svg { width: 28px; height: 28px; color: var(--zinc-400); }
.ba-tile .t-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-tile .t-media.contain { object-fit: contain; padding: 30%; }
.ba-tile.fallback .t-empty { position: relative; z-index: 1; background: rgba(17,18,18,.72); color: var(--zinc-400); }
.ba-tile .t-audio { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; padding: 34px 12px 12px; text-align: center; font-size: 12px; color: var(--zinc-400); background: radial-gradient(circle at 50% 40%, rgba(166,196,236,.14), transparent 70%); }
.ba-tile .t-audio svg { width: 30px; height: 30px; color: var(--accent); }
.ba-tile .t-audio span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ba-tile.has { border-style: solid; border-color: var(--line); }
.ba-tile.has::before { content: ""; position: absolute; inset: 0 0 auto; height: 50px; z-index: 1; background: linear-gradient(rgba(0,0,0,.6), transparent); }
.ba-tile .t-x { position: absolute; top: 7px; right: 7px; z-index: 3; width: 26px; height: 26px; border-radius: 8px; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; display: none; place-items: center; }
.ba-tile.has .t-x { display: grid; }
.ba-tile .t-x svg { width: 14px; height: 14px; }
.ba-tile .t-url { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; display: none; }
.ba-tile:hover .t-url, .ba-tile:focus-within .t-url { display: block; }
.ba-tile .t-url input { width: 100%; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.75); color: #fff; font-size: 12px; outline: none; }
.ba-tile .t-prog { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(12,13,13,.82); font-size: 13px; color: var(--zinc-200); }

/* forms */
.ba-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.ba-form .wide { grid-column: 1 / -1; }
.ba-f { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: 13px; color: var(--zinc-400); }
.ba-f > span { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-weight: 500; }
.ba-f > span i { font-style: normal; font-weight: 400; color: var(--zinc-500); font-size: 12px; text-align: right; }
.ba-f > span i a { color: var(--accent); }
.ba-f output { font-family: var(--mono); color: var(--zinc-200); font-size: 12px; }
.ba-f input:not([type]), .ba-f input[type="text"], .ba-f input[type="url"], .ba-f textarea, .ba-prefix {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); color: #fff; font-size: 15px; outline: none; transition: border-color .15s;
}
.ba-f textarea { resize: vertical; line-height: 1.5; min-height: 64px; }
.ba-f input:focus, .ba-f textarea:focus, .ba-prefix:focus-within { border-color: rgba(166,196,236,.5); }
.ba-f input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); outline: none; margin: 8px 0; }
.ba-f input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); cursor: pointer; }
.ba-f input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); cursor: pointer; }
.ba-f input[type="color"], .ba-colors input { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); cursor: pointer; }
.ba-f input[type="color"]::-webkit-color-swatch-wrapper, .ba-colors input::-webkit-color-swatch-wrapper { padding: 0; }
.ba-f input[type="color"]::-webkit-color-swatch, .ba-colors input::-webkit-color-swatch { border: 0; border-radius: 8px; }
.ba-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ba-prefix { display: flex; align-items: center; padding: 0 13px; }
.ba-prefix em { font-style: normal; color: var(--zinc-500); font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.ba-prefix input { flex: 1; min-width: 0; border: 0 !important; background: none !important; padding: 11px 0 11px 2px !important; }

.ba-seg { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); }
.ba-seg button { flex: 1; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: var(--zinc-400); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.ba-seg button:hover { color: #fff; }
.ba-seg button.on { background: rgba(255,255,255,.1); color: #fff; }
.ba-seg.mini button { padding: 5px 10px; font-size: 12px; }

/* layout picker */
.ba-layouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.ba-layouts button { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); color: var(--zinc-400); font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color .15s, color .15s; }
.ba-layouts button.on { border-color: rgba(166,196,236,.55); color: #fff; box-shadow: 0 0 0 3px rgba(166,196,236,.08); }
.lo { width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; background: linear-gradient(160deg, #191b22, #261a2c); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: relative; }
.lo::before { content: ""; position: absolute; border-radius: 6px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
.lo-card::before { inset: 18% 30%; }
.lo-wide::before { inset: 18% 12%; }
.lo-split::before { inset: 18% 14%; }
.lo-min::before { display: none; }
.lo b { position: relative; width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.55); }
.lo s { position: relative; height: 3px; width: 30%; border-radius: 3px; background: rgba(255,255,255,.3); }
.lo s + s { width: 20%; }
.lo-split { flex-direction: row; gap: 8px; }
.lo-split b { width: 16px; height: 16px; }

/* fonts */
.ba-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; max-height: 260px; overflow: auto; padding-right: 4px; }
.ba-fonts button { padding: 12px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); color: var(--zinc-200); font-size: 16px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba-fonts button.on { border-color: rgba(166,196,236,.55); color: #fff; background: rgba(166,196,236,.08); }

/* toggles */
.ba-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ba-tog { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; user-select: none; }
.ba-tog.inline { background: none; border: 0; padding: 0; margin-top: 4px; }
.ba-tog input { position: absolute; opacity: 0; pointer-events: none; }
.ba-tog i { position: relative; width: 38px; height: 22px; flex: none; border-radius: 22px; background: rgba(255,255,255,.12); transition: background .2s; }
.ba-tog i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s cubic-bezier(.3,1.4,.6,1); }
.ba-tog input:checked + i { background: var(--accent); }
.ba-tog input:checked + i::after { transform: translateX(16px); background: #0c0d0d; }
.ba-tog input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.ba-tog span { display: flex; flex-direction: column; font-size: 12px; color: var(--zinc-500); line-height: 1.35; }
.ba-tog b { font-size: 14px; color: #fff; font-weight: 500; }

/* effect cards */
.ba-fxgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ba-fxgrid.small { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.ba-fx { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 104px; padding: 14px 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); color: var(--zinc-400); font-size: 12px; cursor: pointer; overflow: hidden; transition: border-color .15s, transform .15s; }
.ba-fx:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.12); }
.ba-fx.on { border-color: rgba(166,196,236,.6); color: #fff; box-shadow: 0 0 0 3px rgba(166,196,236,.08); }
.ba-fx.on::after { content: ""; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.ba-fx .sample { font-size: 24px; font-weight: 700; color: #fff; position: relative; white-space: nowrap; }
.ba-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.ba-fx .lbl { position: relative; z-index: 1; }
.ba-fx .cur { width: 30px; height: 30px; display: grid; place-items: center; }
.ba-fx .cur svg, .ba-fx .cur img { width: 26px; height: 26px; }

/* sample name effects (same as the public page) */
.s-glow { text-shadow: 0 0 10px var(--g, #a6c4ec), 0 0 24px var(--g, #a6c4ec); }
.s-rainbow { background: linear-gradient(90deg, #ff5f6d, #ffc371, #47e891, #4fc3f7, #b388ff, #ff5f6d); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: ba-slide 6s linear infinite; }
.s-gradient { background: linear-gradient(90deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.s-shine { background: linear-gradient(100deg, #fff 40%, var(--accent) 50%, #fff 60%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: ba-slide 3s linear infinite; }
@keyframes ba-slide { to { background-position: -300% 0; } }
.s-glitch { animation: ba-glitch 2.2s infinite steps(1); }
@keyframes ba-glitch { 0%, 80%, 100% { text-shadow: none; transform: none; } 82% { text-shadow: -2px 0 #ff2a6d, 2px 0 #05d9e8; transform: translateX(1px); } 86% { text-shadow: 2px 0 #ff2a6d, -2px 0 #05d9e8; transform: translateX(-1px); } }
.s-sparkle { text-shadow: 0 0 8px var(--g, #a6c4ec); }
.s-sparkle::before, .s-sparkle::after { content: "✦"; position: absolute; font-size: 10px; color: #fff; animation: ba-twinkle 1.6s ease-in-out infinite; }
.s-sparkle::before { top: -6px; left: -8px; }
.s-sparkle::after { bottom: -4px; right: -10px; animation-delay: .8s; }
@keyframes ba-twinkle { 0%, 100% { opacity: 0; transform: scale(.5); } 50% { opacity: 1; transform: scale(1.1); } }
.s-typing { border-right: 2px solid #fff; overflow: hidden; max-width: 0; animation: ba-type 2.6s steps(4) infinite; }
@keyframes ba-type { 0% { max-width: 0; } 60%, 100% { max-width: 4ch; } }

/* links */
.ba-platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; }
.ba-plat { aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-3); cursor: pointer; transition: transform .15s, border-color .15s, background .15s; position: relative; }
.ba-plat:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.14); background: #1a1b1c; }
.ba-plat img, .ba-plat svg { width: 24px; height: 24px; }
.ba-plat[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 4px 8px; border-radius: 7px; background: #000; color: #fff; font-size: 12px; white-space: nowrap; z-index: 5; pointer-events: none; }
.ba-plat.custom { grid-column: span 3; aspect-ratio: auto; display: flex; gap: 10px; padding: 0 14px; justify-content: flex-start; text-align: left; color: var(--zinc-200); font-size: 13px; line-height: 1.3; }
.ba-plat.custom small { display: block; color: var(--zinc-500); font-size: 11px; }
.ba-mylinks { display: grid; gap: 8px; }
.ba-li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.ba-li.dragging { opacity: .4; }
.ba-li .grip { cursor: grab; color: var(--zinc-500); width: 18px; flex: none; display: grid; place-items: center; }
.ba-li .grip svg { width: 16px; height: 16px; }
.ba-li .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-3); display: grid; place-items: center; flex: none; }
.ba-li .ic img, .ba-li .ic svg { width: 20px; height: 20px; }
.ba-li .txt { min-width: 0; flex: 1; line-height: 1.3; }
.ba-li .txt b { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba-li .txt span { display: block; font-size: 12px; color: var(--zinc-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba-li .pill { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--zinc-400); flex: none; }
.ba-li .clicks { font-size: 12px; color: var(--zinc-500); flex: none; font-variant-numeric: tabular-nums; }

/* badges */
.ba-dcbadges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ba-dcbadges span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); font-size: 13px; }
.ba-dcbadges img { width: 18px; height: 18px; }
.ba-badgegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.ba-badge { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); color: var(--zinc-400); font-size: 13px; cursor: pointer; text-transform: capitalize; transition: border-color .15s, transform .15s; }
.ba-badge:hover { transform: translateY(-2px); }
.ba-badge svg { width: 26px; height: 26px; color: var(--zinc-400); }
.ba-badge.on { border-color: rgba(166,196,236,.6); color: #fff; }
.ba-badge.on svg { color: var(--accent); filter: drop-shadow(0 0 6px rgba(166,196,236,.6)); }

/* settings */
.ba-slug { display: flex; align-items: center; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); font-family: var(--mono); font-size: 15px; max-width: 460px; }
.ba-slug span { color: var(--zinc-500); }
.ba-slug input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: inherit; padding: 12px 0; outline: none; }
.ba-slug:focus-within { border-color: rgba(166,196,236,.5); }
.ba-note { padding: 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; background: rgba(88,101,242,.1); border: 1px solid rgba(88,101,242,.3); }
.ba-note.ok { background: rgba(143,214,168,.08); border-color: rgba(143,214,168,.3); }
.ba-note a { color: #b3bcff; font-weight: 600; }

/* preview */
.ba-preview { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: #08090a; }
.ba-pv-head { display: flex; align-items: center; gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--zinc-400); }
.ba-pv-head > span { flex: 1; font-weight: 600; color: var(--zinc-200); }
#pv-close { display: none; }
.ba-pv-body { flex: 1; display: grid; place-items: center; padding: 16px; min-height: 0; }
.ba-pv-body iframe { width: 100%; height: 100%; border: 0; border-radius: 22px; background: #07070a; box-shadow: 0 0 0 1px var(--line); }
.ba-preview.phone .ba-pv-body iframe { width: min(100%, 360px); height: min(100%, 720px); border-radius: 34px; box-shadow: 0 0 0 7px #1b1c1d, 0 20px 60px rgba(0,0,0,.6); }

/* save bar + toast */
.ba-savebar { position: fixed; z-index: 40; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-radius: 16px; background: #151617; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 16px 50px rgba(0,0,0,.6); font-size: 14px; animation: ba-up .25s cubic-bezier(.2,.8,.2,1); max-width: calc(100% - 24px); }
.ba-savebar span { color: var(--zinc-200); margin-right: 6px; }
@keyframes ba-up { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.ba-toast { position: fixed; z-index: 60; top: 18px; left: 50%; transform: translate(-50%, -20px); opacity: 0; padding: 10px 16px; border-radius: 12px; background: #fff; color: #000; font-size: 14px; font-weight: 500; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.ba-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ba-toast.err { background: #ff8a8d; }

/* dialog */
.ba-dialog { border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: #121314; color: #fff; padding: 0; width: min(440px, calc(100% - 24px)); box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.ba-dialog::backdrop { background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ba-dialog form { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.ba-dlg-head { display: flex; align-items: center; gap: 12px; }
.ba-dlg-head img { width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: var(--bg-3); }
.ba-dlg-head h3 { margin: 0; font-size: 18px; }
.ba-dlg-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ba-err { margin: 0; min-height: 18px; font-size: 13px; color: #ff8a8d; }

/* responsive */
@media (max-width: 1320px) {
  .ba-app { grid-template-columns: 236px minmax(0, 1fr); }
  .ba-preview { position: fixed; inset: 0; z-index: 50; height: auto; border: 0; background: rgba(5,5,6,.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: none; }
  .ba-preview.open { display: flex; }
  #pv-close { display: grid; }
  .ba-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (min-width: 1321px) { #btn-preview { display: none; } }
@media (max-width: 1100px) {
  .ba-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ba-cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ba-app { grid-template-columns: minmax(0, 1fr); }
  .ba-side { min-width: 0; position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(12,13,13,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .ba-side > .ba-brand em, .ba-side-card { display: none; }
  .ba-side > .ba-brand { padding: 0; font-size: 0; gap: 0; }
  .ba-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; gap: 4px; }
  .ba-me { flex: none; }
  .ba-nav::-webkit-scrollbar { display: none; }
  .ba-nav button { padding: 8px 11px; font-size: 13px; gap: 6px; flex: none; }
  .ba-nav button svg { width: 16px; height: 16px; }
  .ba-me { padding: 0; border: 0; background: none; }
  .ba-me div { display: none; }
  .ba-main { padding: 0 14px 120px; }
  .ba-top { top: 57px; padding: 14px 0 10px; }
  .ba-top h1 { font-size: 21px; }
  .ba-feats { grid-template-columns: 1fr 1fr; }
  .ba-layouts { grid-template-columns: repeat(2, 1fr); }
  .ba-todo { grid-template-columns: 1fr; }
  .ba-plat.custom { grid-column: 1 / -1; padding: 12px 14px; }
}
@media (max-width: 560px) {
  .ba-form { grid-template-columns: 1fr; }
  .ba-stats { gap: 8px; }
  .ba-stat { padding: 14px; }
  .ba-stat b { font-size: 19px; }
  .ba-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ba-tile { aspect-ratio: 4 / 3; }
  .ba-tile .t-empty { padding-top: 26px; gap: 4px; }
  .ba-tile .t-empty span:last-child { display: none; }
  .ba-li .pill, .ba-li .clicks { display: none; }
  .ba-savebar span { display: none; }
  .ba-preview.phone .ba-pv-body iframe { width: 100%; height: 100%; border-radius: 22px; box-shadow: 0 0 0 1px var(--line); }
}
@media (prefers-reduced-motion: reduce) { .s-rainbow, .s-shine, .s-glitch, .s-typing, .s-sparkle::before, .s-sparkle::after { animation: none; } .s-typing { max-width: none; border: 0; } }

/* layout preview for "row" */
.lo-row { flex-direction: row; gap: 8px; }
.lo-row::before { inset: 22% 10%; }
.lo-row b { width: 18px; height: 18px; }
.ba-select { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); color: #fff; font-size: 15px; outline: none; }
.ba-select option { background: #151617; }

/* themes */
.ba-scenes { display: grid; gap: 10px; margin-bottom: 12px; }
.ba-scene { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line); }
.sc-num { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 700; background: radial-gradient(circle at 35% 30%, var(--c), rgba(0,0,0,.6)); border: 1px solid rgba(255,255,255,.2); }
.sc-thumb { width: 74px; height: 52px; flex: none; border-radius: 10px; object-fit: cover; background: #1a1b1c; display: grid; place-items: center; color: var(--zinc-500); }
.sc-thumb svg { width: 20px; height: 20px; }
.sc-body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.sc-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sc-name { flex: 1; min-width: 100px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: #fff; font-size: 14px; outline: none; }
.sc-name:focus { border-color: rgba(166,196,236,.5); }
.sc-color { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--zinc-400); }
.sc-color input { width: 30px; height: 30px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; }
.sc-note { font-size: 12px; color: var(--zinc-500); }
.ba-btn.small { padding: 7px 11px; font-size: 13px; }

/* skills */
.ba-skills { display: grid; gap: 8px; margin: 14px 0 12px; }
.ba-skill { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 44px 34px 32px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); }
.ba-skill .sk-name { padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); color: #fff; font-size: 14px; outline: none; min-width: 0; }
.ba-skill input[type="range"] { width: 100%; accent-color: var(--accent); }
.ba-skill output { font-family: var(--mono); font-size: 12px; color: var(--zinc-200); text-align: right; }
.ba-skill input[type="color"] { width: 32px; height: 32px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; }
@media (max-width: 560px) {
  .ba-scene { flex-wrap: wrap; }
  .sc-body { flex-basis: 100%; order: 3; }
  .ba-skill { grid-template-columns: minmax(0, 1fr) 44px 34px 32px; }
  .ba-skill input[type="range"] { grid-column: 1 / -1; order: 5; }
}
.ba-ldcolor { display: flex; align-items: center; gap: 8px; }
.ba-ldcolor input[type="color"] { width: 44px; height: 38px; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-3); cursor: pointer; }
.ba-ldcolor span { font-family: var(--mono); font-size: 12px; color: var(--zinc-400); }

/* cry.best badges */
.ba-cbadges { display: grid; gap: 8px; }
.ba-cbadge { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line); }
.ba-cbadge > div { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; color: var(--zinc-500); line-height: 1.35; }
.ba-cbadge b { font-size: 14px; color: #fff; font-weight: 600; }
.ba-cbadge .ba-tog { margin: 0; }
.uid-pill { min-width: 40px; height: 30px; padding: 0 9px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font: 700 13px/1 var(--mono); color: #fff; }
.early-ic { width: 40px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,213,74,.08); border: 1px solid rgba(255,213,74,.25); }
.early-ic svg { width: 18px; height: 18px; fill: #ffd54a; filter: drop-shadow(0 0 5px rgba(255,213,74,.6)); }
.ba-domains { flex-wrap: wrap; max-width: 460px; }
.ba-domains button { font-family: var(--mono); }

/* page switcher */
.ba-pages select { width: 100%; padding: 9px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg-2); color: #fff; font: 500 14px/1.2 var(--font); outline: none; cursor: pointer; }
.ba-pages select option { background: #151617; }
@media (max-width: 860px) { .ba-pages { flex: none; } .ba-pages select { width: 120px; padding: 7px 8px; font-size: 12px; } }

/* staff image badges */
.ba-staff { font-size: 11px; font-weight: 600; color: #ffd54a; background: rgba(255,213,74,.1); border: 1px solid rgba(255,213,74,.25); padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.ba-extras { display: grid; gap: 8px; margin-bottom: 12px; }
.ba-extra { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1.3fr) auto 32px 32px; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); }
.ba-extra > img, .ba-extra-empty { width: 30px; height: 30px; object-fit: contain; display: grid; place-items: center; color: var(--zinc-500); }
.ba-extra-empty svg { width: 18px; height: 18px; }
.ba-extra input { min-width: 0; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); color: #fff; font-size: 13px; outline: none; }
@media (max-width: 560px) { .ba-extra { grid-template-columns: 34px minmax(0, 1fr) 32px 32px; } .ba-extra .ex-url, .ba-extra .ba-btn { grid-column: 2 / -1; } }

/* ---------- page menu (replaces the plain dropdown) ---------- */
.ba-pages { position: relative; }
.ba-page-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg-2); color: #fff; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.ba-page-btn:hover, .ba-page-btn[aria-expanded="true"] { border-color: rgba(166,196,236,.35); background: #141616; }
.ba-page-btn img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; flex: none; }
.ba-page-btn span { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.ba-page-btn b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba-page-btn small { font-size: 11px; color: var(--zinc-500); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba-page-btn .chev { width: 18px; height: 18px; color: var(--zinc-500); flex: none; transition: transform .2s; }
.ba-page-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.ba-page-menu { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); padding: 6px; border-radius: 14px; background: #131415; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 50px rgba(0,0,0,.6); animation: ba-fade .15s ease both; }
.pm-head { padding: 6px 8px 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--zinc-500); }
.pm-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--zinc-200); font-size: 14px; cursor: pointer; text-align: left; }
.pm-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.pm-item.on { background: rgba(166,196,236,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(166,196,236,.2); }
.pm-slug { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-uid { font-family: var(--mono); font-size: 12px; color: var(--zinc-500); }
.pm-new { width: 100%; display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 9px 10px; border-radius: 10px; border: 1px dashed rgba(166,196,236,.3); background: none; color: var(--accent); font-size: 14px; font-weight: 500; cursor: pointer; }
.pm-new:hover { background: rgba(166,196,236,.08); }
.pm-new svg { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .ba-pages { flex: none; width: 150px; }
  .ba-page-btn { padding: 5px 8px; gap: 7px; }
  .ba-page-btn img { width: 24px; height: 24px; }
  .ba-page-btn small { display: none; }
  .ba-page-menu { width: 240px; right: auto; }
}

/* ---------- badges ---------- */
.ba-extra { grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1.3fr) auto 32px 32px 32px; }
.ba-icon-btn.dim { color: var(--zinc-500); opacity: .7; }
.ba-granted { display: grid; gap: 8px; }
.ba-gb { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); }
.ba-gb img { width: 26px; height: 26px; object-fit: contain; }
.ba-gb b { flex: 1; font-size: 14px; font-weight: 500; }
.ba-gb.off img, .ba-gb.off b { opacity: .4; }

/* ---------- staff: badge library ---------- */
.ba-newbadge { display: grid; grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.ba-nb-img { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; border: 1.5px dashed rgba(255,255,255,.15); background: var(--bg-3); color: var(--zinc-400); cursor: pointer; padding: 0; overflow: hidden; }
.ba-nb-img svg { width: 20px; height: 20px; }
.ba-nb-img img { width: 30px; height: 30px; object-fit: contain; }
.ba-newbadge input, .ba-lb input { min-width: 0; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg-3); color: #fff; font-size: 14px; outline: none; }
.ba-newbadge input:focus, .ba-lb input:focus { border-color: rgba(166,196,236,.5); }
.ba-library { display: grid; gap: 8px; }
.ba-lb { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 260px) 32px; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.ba-lb > img { width: 34px; height: 34px; object-fit: contain; }
.lb-main { min-width: 0; display: grid; gap: 6px; }
.lb-title { padding: 7px 10px !important; font-weight: 600; background: transparent !important; border-color: transparent !important; }
.lb-title:hover, .lb-title:focus { border-color: var(--line) !important; background: var(--bg-3) !important; }
.lb-holders { display: flex; flex-wrap: wrap; gap: 5px; padding-left: 10px; }
.lb-holders small { font-size: 12px; color: var(--zinc-500); }
.lb-holder { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 9px; border-radius: 999px; background: rgba(166,196,236,.1); border: 1px solid rgba(166,196,236,.2); font: 12px/1.6 var(--mono); color: #dce8f8; }
.lb-holder button { width: 18px; height: 18px; border: 0; border-radius: 50%; background: none; color: var(--zinc-400); cursor: pointer; font-size: 13px; line-height: 1; }
.lb-holder button:hover { background: rgba(255,255,255,.1); color: #fff; }
.lb-give { display: flex; gap: 6px; }
.lb-give input { flex: 1; padding: 8px 10px; font-size: 13px; }
@media (max-width: 720px) {
  .ba-newbadge { grid-template-columns: 46px minmax(0, 1fr); }
  .ba-newbadge #nb-url, .ba-newbadge #nb-save { grid-column: 1 / -1; }
  .ba-lb { grid-template-columns: 40px minmax(0, 1fr) 32px; }
  .ba-lb .lb-give { grid-column: 1 / -1; }
}

/* ---------- log in / create account ---------- */
.ba-login { align-items: center; }
.ba-login-grid { position: relative; width: min(1080px, 100%); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 420px); gap: 56px; align-items: center; }
.ba-login-grid .ba-hero { text-align: left; max-width: none; }
.ba-login-grid .ba-hero p { margin-left: 0; }
.ba-login-grid .ba-feats { grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
.ba-auth { position: relative; padding: 28px; border-radius: 24px; background: linear-gradient(180deg, rgba(22,23,24,.92), rgba(15,16,17,.92)); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ba-auth::before { content: ""; position: absolute; inset: -1px; border-radius: 24px; padding: 1px; background: linear-gradient(160deg, rgba(166,196,236,.35), transparent 40%, transparent 70%, rgba(166,196,236,.15)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.ba-auth h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.ba-auth-sub { margin: 4px 0 20px; color: var(--zinc-500); font-size: 14px; }
.ba-dc-btn { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; background: #5865f2; color: #fff; text-decoration: none; box-shadow: 0 10px 30px -10px rgba(88,101,242,.8); transition: transform .15s, box-shadow .15s, background .15s; }
.ba-dc-btn:hover { background: #4f5bea; transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(88,101,242,.9); }
.ba-dc-btn > svg:first-child { width: 26px; height: 26px; flex: none; }
.ba-dc-btn span { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.ba-dc-btn b { font-size: 15px; }
.ba-dc-btn small { font-size: 12px; opacity: .8; }
.ba-dc-btn .go { width: 18px; height: 18px; opacity: .85; transition: transform .15s; }
.ba-dc-btn:hover .go { transform: translateX(3px); }
.ba-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--zinc-500); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.ba-or::before, .ba-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ba-auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); margin-bottom: 16px; }
.ba-auth-tabs button { position: relative; z-index: 1; padding: 9px; border: 0; background: none; color: var(--zinc-400); font-size: 14px; font-weight: 500; cursor: pointer; transition: color .2s; }
.ba-auth-tabs button.on { color: #fff; }
.ba-auth-tabs i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: rgba(255,255,255,.09); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.ba-auth-tabs.right i { transform: translateX(100%); }
#auth-form { display: grid; gap: 14px; }
#auth-form input, .ba-emailform input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); color: #fff; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
#auth-form input:focus, .ba-emailform input:focus { border-color: rgba(166,196,236,.55); box-shadow: 0 0 0 3px rgba(166,196,236,.1); }
.ba-pw { position: relative; }
.ba-pw input { padding-right: 46px !important; }
.ba-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--zinc-500); cursor: pointer; }
.ba-eye:hover { color: #fff; background: rgba(255,255,255,.06); }
.ba-eye svg { width: 18px; height: 18px; }
.ba-meter { display: flex; align-items: center; gap: 10px; margin-top: -6px; }
.ba-meter i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.ba-meter i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; transition: width .25s, background .25s; }
.ba-meter[data-s="1"] i::after { width: 25%; background: #ff8a8d; }
.ba-meter[data-s="2"] i::after { width: 50%; background: #ffd54a; }
.ba-meter[data-s="3"] i::after { width: 75%; background: var(--accent); }
.ba-meter[data-s="4"] i::after { width: 100%; background: var(--ok); }
.ba-meter span { font-size: 12px; color: var(--zinc-500); min-width: 58px; text-align: right; }
.ba-au-go { padding: 12px; font-size: 15px; }
.ba-auth-foot { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--zinc-500); }
.ba-auth-foot a { color: var(--accent); }
@media (max-width: 900px) {
  .ba-login-grid { grid-template-columns: 1fr; gap: 28px; max-width: 460px; }
  .ba-login-grid .ba-hero { text-align: center; }
  .ba-login-grid .ba-hero p { margin: 0 auto 4px; }
  .ba-login-grid .ba-feats { display: none; }
  .ba-login > .ba-brand { position: static; margin-bottom: 18px; }
  .ba-login { display: flex; flex-direction: column; justify-content: flex-start; padding-top: 24px; }
}
@media (max-width: 480px) { .ba-auth { padding: 20px; border-radius: 20px; } .ba-hero h1 { font-size: 36px; } }

/* ---------- login methods ---------- */
.ba-methods { display: grid; gap: 8px; }
.ba-method { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line); }
.ba-method > div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.ba-method b { font-size: 14px; }
.ba-method > div span { font-size: 12px; color: var(--zinc-500); overflow: hidden; text-overflow: ellipsis; }
.m-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.06); color: var(--zinc-200); }
.m-ic.dc { background: rgba(88,101,242,.18); color: #aab3ff; }
.m-ic svg { width: 18px; height: 18px; }
.m-ok { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(143,214,168,.15); color: var(--ok); font-size: 14px; font-weight: 700; }
.ba-emailform { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; padding: 16px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line); }
.ba-emailform > .ba-f:first-child, .ba-emailform .ba-err, .ba-emailform .ba-dlg-actions, .ba-emailform #ef-cur-row { grid-column: 1 / -1; }
.ba-emailform input { background: var(--bg-2); }
@media (max-width: 560px) { .ba-emailform { grid-template-columns: 1fr; } }

/* ---------- security reminder ---------- */
.ba-remind { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; margin-bottom: 12px; border-radius: 16px; background: linear-gradient(100deg, rgba(166,196,236,.12), rgba(166,196,236,.03)); border: 1px solid rgba(166,196,236,.25); animation: ba-fade .3s ease both; }
.rm-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: rgba(166,196,236,.15); color: var(--accent); }
.rm-ic svg { width: 20px; height: 20px; }
.ba-remind > div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.ba-remind b { font-size: 15px; }
.ba-remind > div span { font-size: 13px; color: var(--zinc-400); }
@media (max-width: 560px) { .ba-remind { flex-wrap: wrap; } .ba-remind > div { flex-basis: calc(100% - 60px); } .ba-remind .ba-btn { flex: 1; } }
