Radar: Perfected mobile design - Native App Feel
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled

This commit is contained in:
2025-12-13 13:26:10 +01:00
parent c1db9727c7
commit 1a75802baa

View File

@ -207,32 +207,37 @@ export default function RadarPage() {
{/* ═══════════════════════════════════════════════════════════════════════ */}
{/* MOBILE HEADER - Premium App Style */}
{/* ═══════════════════════════════════════════════════════════════════════ */}
<header className="lg:hidden sticky top-0 z-40 bg-[#020202] border-b border-white/[0.06]" style={{ paddingTop: 'env(safe-area-inset-top)' }}>
<div className="px-5 py-4">
<div className="flex items-center justify-between">
{/* Brand */}
<div className="flex items-center gap-3">
<div className="relative">
<div className="w-10 h-10 bg-accent/10 border border-accent/20 flex items-center justify-center">
<Radio className="w-5 h-5 text-accent" />
</div>
<div className="absolute -top-0.5 -right-0.5 w-2.5 h-2.5 bg-accent rounded-full animate-pulse" />
<header
className="lg:hidden sticky top-0 z-40 bg-[#020202]/80 backdrop-blur-xl border-b border-white/[0.06]"
style={{ paddingTop: 'env(safe-area-inset-top)' }}
>
<div className="px-4 py-3 flex items-center justify-between">
{/* Brand */}
<div className="flex items-center gap-3">
<div className="relative">
<div className="w-9 h-9 bg-accent/10 border border-accent/20 rounded-xl flex items-center justify-center shadow-[0_0_15px_-3px_rgba(16,185,129,0.3)]">
<Radio className="w-4 h-4 text-accent" />
</div>
<div>
<h1 className="text-lg font-bold text-white tracking-tight">Radar</h1>
<p className="text-[10px] text-white/40 font-mono">Domain Intelligence</p>
<div className="absolute -top-0.5 -right-0.5 w-2 h-2 bg-accent rounded-full animate-pulse shadow-[0_0_8px_rgba(16,185,129,0.8)]" />
</div>
<div>
<h1 className="text-base font-bold text-white tracking-tight leading-none">Radar</h1>
<p className="text-[10px] text-white/40 font-medium tracking-wide mt-0.5">Live Intelligence</p>
</div>
</div>
{/* Stats Pills - Compact */}
<div className="flex items-center gap-2">
<div className="px-2.5 py-1 bg-white/[0.03] border border-white/[0.08] rounded-lg">
<div className="flex items-center gap-1.5">
<Target className="w-3 h-3 text-white/40" />
<span className="text-xs font-bold text-white tabular-nums">{totalDomains}</span>
</div>
</div>
{/* Stats Pills */}
<div className="flex items-center gap-2">
<div className="px-3 py-1.5 bg-white/[0.03] border border-white/[0.08]">
<div className="text-xs font-bold text-white tabular-nums">{totalDomains}</div>
<div className="text-[8px] text-white/30 uppercase tracking-wider">tracking</div>
</div>
<div className="px-3 py-1.5 bg-accent/10 border border-accent/20">
<div className="text-xs font-bold text-accent tabular-nums">{availableDomains.length}</div>
<div className="text-[8px] text-accent/60 uppercase tracking-wider">available</div>
<div className="px-2.5 py-1 bg-accent/10 border border-accent/20 rounded-lg">
<div className="flex items-center gap-1.5">
<CheckCircle2 className="w-3 h-3 text-accent" />
<span className="text-xs font-bold text-accent tabular-nums">{availableDomains.length}</span>
</div>
</div>
</div>
@ -242,7 +247,7 @@ export default function RadarPage() {
{/* ═══════════════════════════════════════════════════════════════════════ */}
{/* SEARCH SECTION */}
{/* ═══════════════════════════════════════════════════════════════════════ */}
<section className="px-5 lg:px-10 pt-6 lg:pt-10 pb-6">
<section className="px-4 lg:px-10 pt-4 lg:pt-10 pb-6">
{/* Desktop Hero Text */}
<div className="hidden lg:block mb-8">
<div className="flex items-center gap-3 mb-4">
@ -262,7 +267,7 @@ export default function RadarPage() {
{/* Desktop Glow */}
<div className="hidden lg:block absolute -inset-6 bg-gradient-to-tr from-accent/5 via-transparent to-accent/5 blur-3xl opacity-50 pointer-events-none" />
<div className="relative bg-[#0A0A0A] border border-white/[0.08] overflow-hidden">
<div className="relative bg-transparent lg:bg-[#0A0A0A] lg:border border-white/[0.08] overflow-hidden lg:rounded-none rounded-2xl">
{/* Terminal Header - Desktop only */}
<div className="hidden lg:flex items-center justify-between px-5 py-3 border-b border-white/[0.06] bg-black/40">
<span className="text-[10px] font-mono text-white/40 flex items-center gap-2">
@ -276,13 +281,13 @@ export default function RadarPage() {
</div>
</div>
{/* Search Input */}
<div className="p-4 lg:p-6">
{/* Search Input - App Style */}
<div className="lg:p-6">
<div className={clsx(
"relative border-2 transition-all duration-200",
"relative border transition-all duration-300 rounded-xl lg:rounded-none overflow-hidden",
searchFocused
? "border-accent/50 bg-accent/[0.02]"
: "border-white/[0.08] bg-white/[0.02]"
? "border-accent/50 bg-accent/[0.03] shadow-[0_0_20px_-5px_rgba(16,185,129,0.15)]"
: "border-white/[0.08] bg-white/[0.03]"
)}>
<div className="flex items-center">
<Search className={clsx(
@ -296,8 +301,8 @@ export default function RadarPage() {
onChange={(e) => setSearchQuery(e.target.value)}
onFocus={() => setSearchFocused(true)}
onBlur={() => setSearchFocused(false)}
placeholder="Search any domain..."
className="flex-1 bg-transparent px-4 py-4 lg:py-5 text-base lg:text-lg text-white placeholder:text-white/25 outline-none"
placeholder="Search domain..."
className="flex-1 bg-transparent px-3 py-4 text-base lg:text-lg text-white placeholder:text-white/20 outline-none font-medium"
/>
{searchQuery && (
<button
@ -312,65 +317,65 @@ export default function RadarPage() {
{/* Search Result */}
{searchResult && (
<div className="mt-4 animate-in fade-in slide-in-from-bottom-2 duration-200">
<div className="mt-3 animate-in fade-in slide-in-from-bottom-4 duration-300">
{searchResult.loading ? (
<div className="flex items-center justify-center gap-3 py-8 bg-white/[0.02] border border-white/[0.06]">
<div className="flex items-center justify-center gap-3 py-6 bg-white/[0.02] border border-white/[0.06] rounded-xl lg:rounded-none">
<Loader2 className="w-5 h-5 animate-spin text-accent" />
<span className="text-sm text-white/50">Checking availability...</span>
<span className="text-sm text-white/50 font-medium">Scanning network...</span>
</div>
) : (
<div className={clsx(
"border-2 overflow-hidden",
"border overflow-hidden rounded-xl lg:rounded-none shadow-2xl",
searchResult.is_available
? "border-accent/40 bg-accent/[0.03]"
: "border-white/[0.08] bg-white/[0.02]"
? "border-accent/30 bg-[#0A0A0A]"
: "border-white/[0.08] bg-[#0A0A0A]"
)}>
{/* Result Header */}
<div className={clsx(
"px-5 py-4 flex items-center justify-between",
searchResult.is_available ? "bg-accent/[0.05]" : "bg-white/[0.02]"
"px-5 py-4 flex items-center justify-between border-b",
searchResult.is_available ? "bg-accent/[0.03] border-accent/10" : "bg-white/[0.01] border-white/[0.04]"
)}>
<div className="flex items-center gap-3">
{searchResult.is_available ? (
<div className="w-10 h-10 bg-accent/20 border border-accent/30 flex items-center justify-center">
<div className="w-10 h-10 bg-accent/10 border border-accent/20 rounded-full flex items-center justify-center shrink-0">
<CheckCircle2 className="w-5 h-5 text-accent" />
</div>
) : (
<div className="w-10 h-10 bg-white/5 border border-white/10 flex items-center justify-center">
<div className="w-10 h-10 bg-white/5 border border-white/10 rounded-full flex items-center justify-center shrink-0">
<XCircle className="w-5 h-5 text-white/30" />
</div>
)}
<div>
<div className="text-base lg:text-lg font-semibold text-white">{searchResult.domain}</div>
<div className="min-w-0">
<div className="text-base lg:text-lg font-bold text-white truncate">{searchResult.domain}</div>
{!searchResult.is_available && searchResult.registrar && (
<div className="text-xs text-white/40">{searchResult.registrar}</div>
<div className="text-xs text-white/40 truncate">via {searchResult.registrar}</div>
)}
</div>
</div>
<span className={clsx(
"text-xs font-bold px-3 py-1.5",
"text-[10px] font-bold px-2.5 py-1 rounded-full uppercase tracking-wider shrink-0",
searchResult.is_available
? "bg-accent text-black"
: "bg-white/10 text-white/50"
? "bg-accent/10 text-accent border border-accent/20"
: "bg-white/5 text-white/40 border border-white/10"
)}>
{searchResult.is_available ? 'Available' : 'Taken'}
</span>
</div>
{/* Actions */}
<div className="p-4 flex flex-col sm:flex-row gap-3">
<div className="p-4 flex flex-col gap-3">
<button
onClick={handleAddToWatchlist}
disabled={addingToWatchlist}
className={clsx(
"flex-1 py-4 text-sm font-semibold flex items-center justify-center gap-2 transition-all active:scale-[0.98]",
"w-full py-3.5 text-sm font-bold rounded-lg flex items-center justify-center gap-2 transition-all active:scale-[0.98]",
searchResult.is_available
? "border border-white/20 text-white hover:bg-white/5"
: "border-2 border-accent text-accent hover:bg-accent/10"
? "bg-white/5 text-white border border-white/10 hover:bg-white/10"
: "bg-accent/10 text-accent border border-accent/20 hover:bg-accent/20"
)}
>
{addingToWatchlist ? <Loader2 className="w-5 h-5 animate-spin" /> : <Eye className="w-5 h-5" />}
{searchResult.is_available ? 'Add to Watchlist' : 'Track Domain'}
{addingToWatchlist ? <Loader2 className="w-4 h-4 animate-spin" /> : <Eye className="w-4 h-4" />}
{searchResult.is_available ? 'Add to Watchlist' : 'Track Availability'}
</button>
{searchResult.is_available && (
@ -378,10 +383,10 @@ export default function RadarPage() {
href={`https://www.namecheap.com/domains/registration/results/?domain=${searchResult.domain}`}
target="_blank"
rel="noopener noreferrer"
className="flex-1 py-4 bg-accent text-black text-sm font-bold flex items-center justify-center gap-2 hover:bg-white active:scale-[0.98] transition-all"
className="w-full py-3.5 bg-accent text-[#020202] text-sm font-bold rounded-lg flex items-center justify-center gap-2 hover:bg-white active:scale-[0.98] transition-all shadow-[0_0_20px_-5px_rgba(16,185,129,0.4)]"
>
Register Now
<ArrowRight className="w-5 h-5" />
<ArrowRight className="w-4 h-4" />
</a>
)}
</div>
@ -392,8 +397,8 @@ export default function RadarPage() {
{/* Hint */}
{!searchResult && (
<p className="text-xs text-white/20 mt-4 text-center lg:text-left">
Enter a domain to check availability instantly
<p className="text-xs text-white/30 mt-3 text-center lg:text-left font-medium">
Type a domain to check status instantly
</p>
)}
</div>
@ -402,29 +407,29 @@ export default function RadarPage() {
</section>
{/* ═══════════════════════════════════════════════════════════════════════ */}
{/* QUICK ACTIONS - Mobile */}
{/* QUICK ACTIONS - Mobile Grid */}
{/* ═══════════════════════════════════════════════════════════════════════ */}
<section className="lg:hidden px-5 pb-6">
<div className="grid grid-cols-3 gap-2">
<section className="lg:hidden px-4 pb-6">
<div className="grid grid-cols-3 gap-3">
{[
{ href: '/terminal/watchlist', icon: Eye, label: 'Watchlist', badge: availableDomains.length, accent: true },
{ href: '/terminal/market', icon: Gavel, label: 'Market' },
{ href: '/terminal/intel', icon: TrendingUp, label: 'Intel' },
{ href: '/terminal/watchlist', icon: Eye, label: 'Watchlist', badge: availableDomains.length, color: 'text-emerald-400', bg: 'bg-emerald-400/10', border: 'border-emerald-400/20' },
{ href: '/terminal/market', icon: Gavel, label: 'Market', color: 'text-blue-400', bg: 'bg-blue-400/10', border: 'border-blue-400/20' },
{ href: '/terminal/intel', icon: TrendingUp, label: 'Intel', color: 'text-amber-400', bg: 'bg-amber-400/10', border: 'border-amber-400/20' },
].map((item) => (
<Link
key={item.href}
href={item.href}
className={clsx(
"relative flex flex-col items-center justify-center gap-2 py-5 border transition-all active:scale-[0.97]",
item.accent
? "bg-accent/[0.05] border-accent/20"
: "bg-white/[0.02] border-white/[0.06]"
"relative flex flex-col items-center justify-center gap-2 py-4 rounded-xl border transition-all active:scale-[0.96]",
"bg-[#0A0A0A] border-white/[0.08]"
)}
>
<item.icon className={clsx("w-6 h-6", item.accent ? "text-accent" : "text-white/50")} />
<span className={clsx("text-xs font-medium", item.accent ? "text-accent" : "text-white/60")}>{item.label}</span>
<div className={clsx("w-10 h-10 rounded-full flex items-center justify-center", item.bg)}>
<item.icon className={clsx("w-5 h-5", item.color)} />
</div>
<span className="text-[11px] font-medium text-white/70">{item.label}</span>
{item.badge !== undefined && item.badge > 0 && (
<span className="absolute top-2 right-2 min-w-[18px] h-[18px] px-1 bg-accent text-black text-[10px] font-bold flex items-center justify-center">
<span className="absolute -top-1.5 -right-1.5 min-w-[20px] h-[20px] px-1 bg-accent text-[#020202] text-[10px] font-bold rounded-full flex items-center justify-center border-2 border-[#020202]">
{item.badge}
</span>
)}
@ -436,59 +441,62 @@ export default function RadarPage() {
{/* ═══════════════════════════════════════════════════════════════════════ */}
{/* STATUS BAR */}
{/* ═══════════════════════════════════════════════════════════════════════ */}
<section className="px-5 lg:px-10">
<section className="px-4 lg:px-10">
<div className="flex items-center justify-between py-3 lg:py-4 border-y border-white/[0.06] bg-white/[0.01]">
<div className="flex items-center gap-2">
<Wifi className="w-4 h-4 text-accent" />
<span className="text-xs text-white/40">Live monitoring</span>
<div className="relative flex h-2 w-2">
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-accent opacity-75"></span>
<span className="relative inline-flex rounded-full h-2 w-2 bg-accent"></span>
</div>
<span className="text-xs text-white/50 font-medium">Live Feed</span>
</div>
<div className="flex items-center gap-4 text-xs">
<span className="text-white/30">{marketStats.totalAuctions.toLocaleString()} auctions</span>
<span className="text-accent font-medium">{marketStats.endingSoon} ending soon</span>
<div className="flex items-center gap-4 text-xs font-mono">
<span className="text-white/30">{marketStats.totalAuctions.toLocaleString()} total</span>
<span className="text-accent">{marketStats.endingSoon} ending</span>
</div>
</div>
</section>
{/* ═══════════════════════════════════════════════════════════════════════ */}
{/* HOT AUCTIONS */}
{/* HOT AUCTIONS - Feed Style */}
{/* ═══════════════════════════════════════════════════════════════════════ */}
<section className="px-5 lg:px-10 py-6 lg:py-8 pb-28 lg:pb-10">
<div className="flex items-center justify-between mb-5">
<h2 className="text-sm font-semibold text-white flex items-center gap-2">
<section className="px-4 lg:px-10 py-6 pb-28 lg:pb-10">
<div className="flex items-center justify-between mb-4">
<h2 className="text-sm font-bold text-white uppercase tracking-wider flex items-center gap-2">
<Activity className="w-4 h-4 text-accent" />
Hot Auctions
Live Auctions
</h2>
<Link href="/terminal/market" className="text-xs text-accent hover:text-white active:text-white transition-colors flex items-center gap-1">
View all
<Link href="/terminal/market" className="text-xs font-medium text-accent hover:text-white active:text-white transition-colors flex items-center gap-1">
See all
<ChevronRight className="w-3 h-3" />
</Link>
</div>
{loadingData ? (
<div className="flex items-center justify-center py-16">
<div className="flex items-center justify-center py-12">
<Loader2 className="w-6 h-6 text-accent animate-spin" />
</div>
) : hotAuctions.length > 0 ? (
<div className="grid lg:grid-cols-2 gap-px bg-white/[0.06] border border-white/[0.06]">
<div className="grid grid-cols-1 lg:grid-cols-2 gap-3 lg:gap-px lg:bg-white/[0.06] lg:border lg:border-white/[0.06]">
{hotAuctions.map((auction, i) => (
<a
key={i}
href={auction.affiliate_url || '#'}
target="_blank"
rel="noopener noreferrer"
className="flex items-center gap-4 p-4 lg:p-5 bg-[#020202] hover:bg-white/[0.02] active:bg-white/[0.03] transition-colors group"
className="flex items-center gap-4 p-4 bg-[#0A0A0A] border border-white/[0.06] rounded-xl lg:rounded-none lg:border-0 hover:bg-white/[0.02] active:scale-[0.99] transition-all group shadow-sm"
>
<div className="w-10 h-10 lg:w-12 lg:h-12 bg-accent/10 border border-accent/20 flex items-center justify-center shrink-0">
<Gavel className="w-4 h-4 lg:w-5 lg:h-5 text-accent" />
<div className="w-10 h-10 lg:w-12 lg:h-12 bg-white/[0.03] border border-white/[0.06] rounded-lg lg:rounded-none flex items-center justify-center shrink-0 group-hover:border-accent/20 group-hover:bg-accent/5 transition-all">
<Gavel className="w-4 h-4 lg:w-5 lg:h-5 text-white/40 group-hover:text-accent" />
</div>
<div className="flex-1 min-w-0">
<div className="text-sm lg:text-base font-medium text-white truncate group-hover:text-accent transition-colors">
<div className="text-sm lg:text-base font-bold text-white truncate group-hover:text-accent transition-colors">
{auction.domain}
</div>
<div className="flex items-center gap-2 text-[11px] text-white/40">
<span>{auction.platform}</span>
<span className="text-white/20">·</span>
<span className="flex items-center gap-1">
<div className="flex items-center gap-2 text-[11px] text-white/40 mt-0.5">
<span className="uppercase tracking-wider">{auction.platform}</span>
<span className="text-white/10"></span>
<span className="flex items-center gap-1 text-white/60">
<Clock className="w-3 h-3" />
{auction.time_remaining}
</span>
@ -498,13 +506,13 @@ export default function RadarPage() {
<div className="text-base lg:text-lg font-bold text-accent font-mono">
${auction.current_bid.toLocaleString()}
</div>
<div className="text-[10px] text-white/30">current bid</div>
<div className="text-[9px] font-bold text-white/20 uppercase tracking-wider">current bid</div>
</div>
</a>
))}
</div>
) : (
<div className="text-center py-16 border border-dashed border-white/[0.08]">
<div className="text-center py-12 border border-dashed border-white/[0.08] rounded-xl">
<Gavel className="w-8 h-8 text-white/10 mx-auto mb-3" />
<p className="text-white/30 text-sm">No active auctions</p>
</div>
@ -536,26 +544,26 @@ export default function RadarPage() {
</section>
{/* ═══════════════════════════════════════════════════════════════════════ */}
{/* MOBILE BOTTOM NAV - Premium Tab Bar */}
{/* MOBILE BOTTOM NAV - Frosted Glass */}
{/* ═══════════════════════════════════════════════════════════════════════ */}
<nav
className="lg:hidden fixed bottom-0 left-0 right-0 z-50 bg-[#0A0A0A]/98 backdrop-blur-xl border-t border-white/[0.08]"
className="lg:hidden fixed bottom-0 left-0 right-0 z-50 bg-[#020202]/90 backdrop-blur-xl border-t border-white/[0.08]"
style={{ paddingBottom: 'env(safe-area-inset-bottom)' }}
>
<div className="flex items-stretch h-16">
<div className="flex items-stretch h-[60px]">
{mobileNavItems.map((item) => (
<Link
key={item.href}
href={item.href}
className={clsx(
"flex-1 flex flex-col items-center justify-center gap-1 relative transition-colors",
item.active ? "text-accent" : "text-white/40 active:text-white/60"
"flex-1 flex flex-col items-center justify-center gap-1 relative transition-colors active:scale-95",
item.active ? "text-accent" : "text-white/40 active:text-white/80"
)}
>
{item.active && (
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-8 h-0.5 bg-accent" />
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-8 h-0.5 bg-accent shadow-[0_0_10px_rgba(16,185,129,0.8)]" />
)}
<item.icon className="w-5 h-5" />
<item.icon className={clsx("w-5 h-5 transition-transform", item.active && "scale-110")} />
<span className="text-[10px] font-medium">{item.label}</span>
</Link>
))}
@ -563,7 +571,7 @@ export default function RadarPage() {
{/* Menu Button */}
<button
onClick={() => setMenuOpen(true)}
className="flex-1 flex flex-col items-center justify-center gap-1 text-white/40 active:text-white/60 transition-colors"
className="flex-1 flex flex-col items-center justify-center gap-1 text-white/40 active:text-white/80 active:scale-95 transition-all"
>
<Menu className="w-5 h-5" />
<span className="text-[10px] font-medium">Menu</span>
@ -572,141 +580,125 @@ export default function RadarPage() {
</nav>
{/* ═══════════════════════════════════════════════════════════════════════ */}
{/* MOBILE DRAWER MENU */}
{/* MOBILE DRAWER MENU - Slide Over */}
{/* ═══════════════════════════════════════════════════════════════════════ */}
{menuOpen && (
<div className="lg:hidden fixed inset-0 z-[100]">
{/* Backdrop */}
<div
className="absolute inset-0 bg-black/80 backdrop-blur-sm animate-in fade-in duration-200"
className="absolute inset-0 bg-black/60 backdrop-blur-sm animate-in fade-in duration-300"
onClick={() => setMenuOpen(false)}
/>
{/* Drawer Panel */}
<div className="absolute top-0 right-0 bottom-0 w-[85%] max-w-[320px] bg-[#0A0A0A] border-l border-white/[0.08] animate-in slide-in-from-right duration-300 flex flex-col" style={{ paddingTop: 'env(safe-area-inset-top)', paddingBottom: 'env(safe-area-inset-bottom)' }}>
<div className="absolute top-0 right-0 bottom-0 w-[85%] max-w-[320px] bg-[#0A0A0A] border-l border-white/[0.08] shadow-2xl animate-in slide-in-from-right duration-300 flex flex-col" style={{ paddingTop: 'env(safe-area-inset-top)', paddingBottom: 'env(safe-area-inset-bottom)' }}>
{/* Drawer Header */}
<div className="flex items-center justify-between p-5 border-b border-white/[0.08]">
<div className="flex items-center gap-3">
<Image src="/pounce-puma.png" alt="Pounce" width={32} height={32} className="object-contain" />
<div>
<h2 className="text-sm font-bold text-white">Pounce</h2>
<p className="text-[10px] text-white/40 font-mono">Terminal</p>
<h2 className="text-sm font-bold text-white tracking-wide">POUNCE</h2>
<p className="text-[10px] text-white/40 font-mono tracking-widest uppercase">Terminal</p>
</div>
</div>
<button
onClick={() => setMenuOpen(false)}
className="w-10 h-10 flex items-center justify-center text-white/40 hover:text-white active:text-white transition-colors"
className="w-10 h-10 flex items-center justify-center bg-white/5 rounded-full text-white/60 hover:text-white active:scale-95 transition-all"
>
<X className="w-5 h-5" />
</button>
</div>
{/* Navigation Sections */}
<div className="flex-1 overflow-y-auto py-4">
<div className="flex-1 overflow-y-auto py-6 space-y-8">
{drawerNavSections.map((section) => (
<div key={section.title} className="mb-6">
<div className="flex items-center gap-2 px-5 mb-2">
<div className="w-1 h-1 bg-accent rounded-full" />
<span className="text-[10px] font-mono text-white/30 uppercase tracking-widest">{section.title}</span>
<div key={section.title}>
<div className="flex items-center gap-2 px-6 mb-3">
<div className="w-1 h-3 bg-accent rounded-full" />
<span className="text-[11px] font-bold text-white/40 uppercase tracking-[0.2em]">{section.title}</span>
</div>
<div className="space-y-0.5">
<div className="space-y-1">
{section.items.map((item: any) => (
<Link
key={item.href}
href={item.href}
onClick={() => setMenuOpen(false)}
className="flex items-center gap-3 px-5 py-3 text-white/60 hover:text-white hover:bg-white/[0.03] active:bg-white/[0.05] transition-colors"
className="flex items-center gap-4 px-6 py-3.5 text-white/70 active:text-white active:bg-white/[0.03] transition-colors border-l-2 border-transparent active:border-accent"
>
<item.icon className="w-5 h-5 text-white/40" />
<span className="text-sm font-medium flex-1">{item.label}</span>
{item.isNew && (
<span className="px-2 py-0.5 text-[9px] font-bold bg-accent/20 text-accent border border-accent/20">
New
<span className="px-2 py-0.5 text-[9px] font-bold bg-accent text-[#020202] rounded-sm">
NEW
</span>
)}
<ChevronRight className="w-4 h-4 text-white/20" />
<ChevronRight className="w-4 h-4 text-white/10" />
</Link>
))}
</div>
</div>
))}
{/* Settings */}
<div className="border-t border-white/[0.08] pt-4 mt-2">
{/* Settings Group */}
<div className="pt-4 border-t border-white/[0.08] mx-6">
<Link
href="/terminal/settings"
onClick={() => setMenuOpen(false)}
className="flex items-center gap-3 px-5 py-3 text-white/60 hover:text-white hover:bg-white/[0.03] active:bg-white/[0.05] transition-colors"
className="flex items-center gap-3 py-3 text-white/60 active:text-white transition-colors"
>
<Settings className="w-5 h-5 text-white/40" />
<span className="text-sm font-medium flex-1">Settings</span>
<ChevronRight className="w-4 h-4 text-white/20" />
<Settings className="w-5 h-5" />
<span className="text-sm font-medium">Settings</span>
</Link>
{user?.is_admin && (
<Link
href="/admin"
onClick={() => setMenuOpen(false)}
className="flex items-center gap-3 px-5 py-3 text-amber-500/70 hover:text-amber-400 hover:bg-amber-500/5 active:bg-amber-500/10 transition-colors"
className="flex items-center gap-3 py-3 text-amber-500/80 active:text-amber-400 transition-colors"
>
<Shield className="w-5 h-5" />
<span className="text-sm font-medium flex-1">Admin Panel</span>
<ChevronRight className="w-4 h-4 text-amber-500/30" />
<span className="text-sm font-medium">Admin Panel</span>
</Link>
)}
</div>
</div>
{/* User Card */}
<div className="border-t border-white/[0.08] p-5">
{/* User Card - Bottom */}
<div className="p-5 bg-white/[0.02] border-t border-white/[0.08]">
<div className="flex items-center gap-3 mb-4">
<div className="w-10 h-10 bg-accent/10 border border-accent/20 flex items-center justify-center">
<div className="w-10 h-10 bg-gradient-to-br from-accent/20 to-accent/5 rounded-full flex items-center justify-center border border-accent/20">
<TierIcon className="w-5 h-5 text-accent" />
</div>
<div className="flex-1 min-w-0">
<p className="text-sm font-medium text-white truncate">
<p className="text-sm font-bold text-white truncate">
{user?.name || user?.email?.split('@')[0] || 'User'}
</p>
<p className={clsx(
"text-[10px] font-mono",
"text-[10px] font-mono uppercase tracking-wider",
tierName === 'Tycoon' ? "text-amber-400" :
tierName === 'Trader' ? "text-accent" :
"text-white/40"
)}>
{tierName}
{tierName} Plan
</p>
</div>
</div>
{/* Usage Bar */}
<div className="mb-4">
<div className="flex items-center justify-between text-[10px] font-mono text-white/30 mb-1">
<span>Usage</span>
<span>{subscription?.domains_used || 0}/{subscription?.domain_limit || 5}</span>
</div>
<div className="h-1 bg-white/10 w-full">
<div
className="h-full bg-accent transition-all duration-500"
style={{ width: `${Math.min(((subscription?.domains_used || 0) / (subscription?.domain_limit || 5)) * 100, 100)}%` }}
/>
</div>
</div>
{tierName === 'Scout' && (
<Link
href="/pricing"
onClick={() => setMenuOpen(false)}
className="flex items-center justify-center gap-2 w-full py-3 bg-accent text-black text-sm font-bold hover:bg-white active:scale-[0.98] transition-all mb-3"
className="flex items-center justify-center gap-2 w-full py-3 bg-white text-black text-sm font-bold rounded-lg active:scale-[0.98] transition-all mb-3 shadow-lg"
>
<Sparkles className="w-4 h-4" />
Upgrade Plan
<Sparkles className="w-4 h-4 text-accent" />
Upgrade Now
</Link>
)}
<button
onClick={() => { logout(); setMenuOpen(false) }}
className="flex items-center justify-center gap-2 w-full py-3 border border-white/10 text-white/50 text-sm font-medium hover:text-white hover:border-white/20 active:bg-white/5 transition-all"
className="flex items-center justify-center gap-2 w-full py-3 border border-white/10 rounded-lg text-white/50 text-xs font-bold uppercase tracking-wider hover:text-white active:bg-white/5 transition-all"
>
<LogOut className="w-4 h-4" />
Sign out