:root{--line:#28304a;--muted:#9ca7c5}
.shorten-main{width:min(100% - 2.5rem,68rem);margin:0 auto;padding:2.5rem 0 4rem}
.shorten-main .hero{position:relative;min-height:330px;margin-top:0;padding:clamp(1.8rem,5vw,3.5rem);display:flex;align-items:center;isolation:isolate}
.shorten-hero-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr);align-items:center;gap:clamp(1.5rem,5vw,4rem);width:100%}
.shorten-hero-copy{position:relative;z-index:2}
.shorten-hero-copy .eyebrow{display:inline-flex;align-items:center;gap:.55rem;font-size:.72rem;font-weight:800;letter-spacing:.2em}
.shorten-hero-copy .eyebrow::before{content:"";width:1.4rem;height:2px;background:#00d4ff;box-shadow:0 0 14px #00d4ff}
.shorten-hero-copy h1{margin:.9rem 0 1rem;font-size:clamp(2.5rem,6vw,4.3rem);line-height:1.12;letter-spacing:-.065em}
.shorten-hero-copy .intro{max-width:35rem;margin:0;line-height:1.85}
.shorten-hero-points{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:1.5rem}
.shorten-hero-points span{padding:.42rem .75rem;border:1px solid rgba(255,255,255,.13);border-radius:99px;background:rgba(0,0,0,.22);color:rgba(255,255,255,.78);font-size:.75rem}
.shorten-hero-points span::before{content:"✦";margin-right:.4rem;color:#67e8f9}
.shorten-visual{position:relative;display:grid;justify-items:center;align-content:center;gap:.7rem;min-height:240px;overflow:hidden}
.shorten-visual-glow{position:absolute;width:240px;height:240px;border-radius:50%;background:radial-gradient(circle,#00d4ff25 0,rgba(0,102,255,.12) 38%,transparent 70%);filter:blur(3px)}
.shorten-link-card{position:relative;z-index:1;display:flex;align-items:center;gap:.65rem;width:min(100%,310px);padding:.9rem 1rem;border:1px solid rgba(255,255,255,.15);border-radius:14px;background:rgba(14,17,25,.86);box-shadow:0 14px 34px #0005;color:#dfe8f9;font:500 .76rem/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap}
.shorten-link-long{transform:translateX(-15px);color:#9ba7b9}.shorten-link-short{transform:translateX(14px);border-color:#00d4ff55;background:linear-gradient(110deg,#0e1a25,#151927);font-size:.9rem;color:#f4fbff}
.link-dot{flex:none;width:8px;height:8px;border-radius:50%;background:#ff777d;box-shadow:12px 0 #ffc66d,24px 0 #52dfad;margin-right:1.1rem}
.link-spark{color:#67e8f9;font-size:1.1rem}.shorten-link-arrow{position:relative;z-index:1;color:#67e8f9;font-size:1.4rem;text-shadow:0 0 15px #00d4ff}
.shorten-orbit{position:absolute;z-index:0;border:1px solid #00d4ff20;border-radius:50%;transform:rotate(-25deg)}.orbit-one{width:300px;height:115px}.orbit-two{width:360px;height:160px;transform:rotate(22deg)}
.shorten-panel{padding:clamp(18px,4vw,30px)}
.shorten-account-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:18px;border-bottom:1px solid var(--line);font-size:14px}
.shorten-account-row [hidden],.shorten-field[hidden]{display:none}
.shorten-main .button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;background:linear-gradient(100deg,#54d7f1,#8a9cff);color:#07111e;font-weight:800;text-decoration:none;padding:12px 18px;cursor:pointer}
.shorten-main .button.secondary,.site-page-control .button.secondary{display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:#252e47;color:#edf2ff;font-weight:750;text-decoration:none;padding:10px 14px;white-space:nowrap}
.shorten-main .button:disabled,.site-page-control .button:disabled{opacity:.55;cursor:not-allowed}
.site-page-control .header-user img{width:34px;height:34px;border-radius:50%;object-fit:cover}
.site-page-control .user-name{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}
.shorten-form{display:grid;gap:20px;margin-top:22px}
.shorten-field{display:grid;gap:8px;color:#e7ecfa;font-size:14px;font-weight:700}
.shorten-field>small{color:var(--muted);font-size:12px;font-weight:400;line-height:1.65}
.shorten-field input{width:100%;max-width:none;min-width:0}
.shorten-path{display:flex;align-items:center;gap:8px;min-width:0;padding:0 12px;border:1px solid #3a4666;border-radius:10px;background:#0c1222;color:#c9d5f1;font-size:13px;font-weight:500}
.shorten-path>span{flex:none}.shorten-path input{border:0;background:transparent}
.shorten-path:focus-within{outline:2px solid #69d7f3;border-color:transparent}.shorten-path input:focus{outline:0}
.shorten-form>.button{justify-self:start;min-width:190px;box-shadow:0 8px 25px #00d4ff24}
.shorten-form #status{min-height:1.5em;margin:0;font-size:13px}
.shorten-result{margin-top:16px;padding:15px;border:1px solid rgba(0,212,255,.25);border-radius:12px;background:rgba(0,212,255,.07);overflow-wrap:anywhere}
.shorten-result a{font-weight:750}.shorten-panel>.note{margin:20px 0 0;line-height:1.7}
.shorten-main>p.note{margin-top:18px;text-align:center;font-size:13px}
@media(max-width:760px){.shorten-main{width:min(100% - 1.25rem,68rem);padding-top:1rem}.shorten-main .hero{min-height:0}.shorten-hero-grid{grid-template-columns:1fr}.shorten-visual{min-height:190px}.shorten-hero-copy h1 br{display:none}}
@media(max-width:640px){.shorten-path{align-items:flex-start;flex-direction:column;gap:2px;padding:9px 12px}.shorten-path input{padding:8px 2px}.shorten-form>.button{width:100%;justify-self:stretch}.shorten-link-card{width:min(100%,300px);font-size:.68rem}}

.shorten-field{gap:10px}
.shorten-label{display:flex;align-items:center;gap:.6rem}
.field-icon{display:grid;place-items:center;width:27px;height:27px;border:1px solid #00d4ff35;border-radius:9px;background:linear-gradient(145deg,#00d4ff1b,#536bff16);color:#7ce9ff;font-size:17px;line-height:1}
.field-icon.path-icon{color:#b5a8ff;border-color:#a78bfa35;background:linear-gradient(145deg,#a78bfa1b,#536bff16)}
.field-required,.field-optional{margin-left:auto;padding:3px 8px;border:1px solid #ffffff14;border-radius:99px;color:#aeb9cc;font-size:10px;font-weight:650;letter-spacing:.04em}
.field-required{border-color:#00d4ff2b;color:#80e8ff;background:#00d4ff0b}
.input-shell{position:relative;display:flex;align-items:center;min-width:0;min-height:60px;padding:0 17px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:linear-gradient(115deg,rgba(9,14,24,.96),rgba(16,22,34,.96));box-shadow:inset 0 1px rgba(255,255,255,.035),0 8px 24px rgba(0,0,0,.12);transition:border-color .2s,box-shadow .2s,background .2s}
.input-shell::before{position:absolute;inset:0;z-index:0;border-radius:inherit;background:linear-gradient(110deg,#00d4ff1c,#8a9cff1b);content:"";opacity:0;transition:opacity .2s;pointer-events:none}
.input-shell:focus-within{border-color:#52dffc;box-shadow:0 0 0 3px #00d4ff1b,0 12px 28px #00d4ff12,inset 0 1px rgba(255,255,255,.06)}
.input-shell:focus-within::before{opacity:1}
.input-shell .input-prefix,.input-shell input,.input-status,.path-lock{position:relative;z-index:1}
.input-shell .input-prefix{flex:none;color:#70dff6;font:600 13px/1 ui-monospace,SFMono-Regular,Consolas,monospace}
.input-shell .input-prefix[hidden]{display:none}
.input-shell input{height:58px;padding:0 9px;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;color:#f4f7ff;font:500 15px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;outline:0!important}
.input-shell input::placeholder{color:#66738b;font:400 14px/1.5 system-ui,sans-serif;opacity:1}
.url-shell input{padding-left:10px}
.input-status{display:grid;flex:none;place-items:center;width:29px;height:29px;border:1px solid #ffffff12;border-radius:9px;background:#ffffff08;color:#8c9bb3;font-size:15px;transition:.2s}
.url-shell:focus-within .input-status{border-color:#00d4ff35;background:#00d4ff12;color:#72e8ff;transform:translate(1px,-1px)}
.path-shell .input-prefix{color:#baaaff}
.path-shell input{font-size:14px}
.path-lock{display:grid;flex:none;place-items:center;width:27px;height:27px;border:1px solid #a78bfa26;border-radius:9px;background:#a78bfa10;color:#b7a6ff;font-size:13px}
.input-shell:has(input:not(:placeholder-shown)):not(:focus-within) input:invalid{color:#ffb2bd}
.shorten-field>small{padding-left:2px}
@media(max-width:640px){.input-shell{min-height:56px;padding:0 13px}.input-shell input{height:54px;font-size:14px}.input-shell input::placeholder{font-size:12px}.input-status{width:26px;height:26px}}

.links-panel,.admin-panel{margin-top:1.25rem;padding:clamp(18px,3vw,28px)}
.list-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.2rem}
.list-heading h2{margin:.25rem 0;font-size:clamp(1.25rem,3vw,1.65rem)}
.list-heading p{margin:.3rem 0 0;font-size:.84rem}
.list-heading .eyebrow{font-size:.65rem}
.short-link-list{display:grid;gap:.8rem}
.short-link-card{min-width:0;padding:1rem 1.1rem;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:linear-gradient(130deg,rgba(255,255,255,.045),rgba(0,0,0,.14));transition:border-color .18s,transform .18s}
.short-link-card:hover{border-color:rgba(0,212,255,.3);transform:translateY(-1px)}
.short-link-card.is-custom{border-color:#aa8bfa55;background:linear-gradient(115deg,rgba(120,92,210,.14),rgba(0,212,255,.035) 70%,rgba(255,255,255,.025));box-shadow:inset 3px 0 #ad91ff}
.short-link-top{display:flex;align-items:center;justify-content:space-between;gap:.8rem;min-width:0}
.short-link-top time{flex:none;color:#8c98ad;font-size:.72rem}
.short-link-kind{display:flex;align-items:center;gap:.65rem;min-width:0}
.short-link-url{overflow:hidden;color:#dffaff;font:750 .95rem/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}
.is-custom .short-link-url{color:#e4d9ff}
.custom-badge,.random-badge{flex:none;padding:.28rem .6rem;border:1px solid #a78bfa55;border-radius:99px;background:#a78bfa15;color:#d4c5ff;font-size:.68rem;font-weight:750;white-space:nowrap}
.random-badge{border-color:#ffffff1b;background:#ffffff08;color:#adb8cb;font-weight:600}
.short-link-destination{display:flex;gap:.65rem;min-width:0;margin-top:.65rem;color:#96a3b9;font-size:.8rem}
.short-link-destination>span{flex:none;color:#738099}.short-link-destination a{overflow:hidden;color:#b9c7dc;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.short-link-destination a:hover{color:#8beaff}
.short-link-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.75rem}
.short-link-actions .button,.edit-destination .button{padding:.45rem .75rem;font-size:.75rem}
.shorten-main .button.danger{border:1px solid #ff718033;background:#702d3b44;color:#ffc7cf}
.shorten-main .button.danger:hover{border-color:#ff718080;background:#702d3b88}
.short-link-empty{display:grid;justify-items:center;gap:.45rem;padding:2.5rem 1rem;border:1px dashed rgba(255,255,255,.14);border-radius:14px;color:#9ca7bb;text-align:center}
.short-link-empty strong{color:#e8edf7}.short-link-empty>span:last-child{font-size:.82rem}.empty-icon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:.3rem;border:1px solid #00d4ff33;border-radius:14px;background:#00d4ff10;color:#70e5fc;font-size:1.35rem}
.pagination{display:flex;justify-content:center;align-items:center;gap:1rem;margin-top:1.1rem;color:#aeb9cb;font-size:.8rem}
.pagination .button{padding:.45rem .8rem;font-size:.75rem}.pagination .button:disabled{opacity:.35;cursor:default;transform:none}
.admin-panel[hidden]{display:none}.admin-search-form,.ban-tool form{display:flex;align-items:center;gap:.6rem}.admin-search-form{margin:1rem 0}.admin-search-form input,.ban-tool input,.edit-destination input{width:100%;max-width:none;min-height:44px;padding:.7rem .85rem;border:1px solid rgba(255,255,255,.15);border-radius:10px;background:#0c1222;color:#f4f6fb}.admin-search-form .button,.ban-tool .button{flex:none;padding:.7rem .95rem}
.ban-tools,.ban-lists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:1rem 0}.ban-tool,.ban-lists>div{min-width:0;padding:1rem;border:1px solid rgba(255,255,255,.1);border-radius:13px;background:rgba(0,0,0,.16)}
.ban-tool h3,.ban-lists h3{margin:0 0 .7rem;font-size:.95rem}.ban-list{display:grid;gap:.45rem;color:#aab5c9;font-size:.78rem}.ban-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.45rem 0;border-bottom:1px solid rgba(255,255,255,.07)}.ban-row:last-child{border:0}.ban-row code{overflow-wrap:anywhere;color:#d8e0ef}.ban-row .button{padding:.35rem .65rem;font-size:.7rem}
.short-link-meta{display:grid;gap:.25rem;margin-top:.7rem;color:#9da9bd;font-size:.74rem;overflow-wrap:anywhere}
.edit-destination{margin-top:.7rem}.edit-destination summary{width:fit-content;color:#80e7fa;font-size:.8rem;cursor:pointer}.edit-destination form{display:flex;gap:.55rem;margin-top:.6rem}.edit-destination input{min-width:0;font-size:.8rem}
.error-text{color:#ffabb7!important}
@media(max-width:700px){.shorten-main{padding-bottom:2rem}.short-link-top{align-items:flex-start;flex-direction:column;gap:.35rem}.short-link-kind{align-items:flex-start;flex-direction:column;gap:.45rem}.short-link-url{max-width:100%}.short-link-destination{display:grid;gap:.2rem}.short-link-actions{justify-content:flex-start;flex-wrap:wrap}.ban-tools,.ban-lists{grid-template-columns:1fr}.admin-search-form,.ban-tool form{align-items:stretch}.admin-search-form .button,.ban-tool .button{padding-inline:.75rem}.edit-destination form{align-items:stretch;flex-direction:column}.list-heading{align-items:flex-start}}
