NexTrade AI is a web-based cryptocurrency trading, AI automated strategy, and affiliate investment platform. It gives self-directed retail traders and quant-curious investors a single instrument-grade surface for live market execution, automated bot allocation, wallet custody of funds, and multi-level affiliate earnings — all rendered in a premium dark-mode aesthetic with high-density data visualization.
The product intent is to make the operator feel like they are running a machine rather than browsing a website: real-time Binance market data, live PnL, bot yields, order-book depth, and tiered commission reporting are presented as instrument readouts, ruled data rows, and circular gauges rather than friendly cards.
Audience. Two accepted human roles operate the platform:
user) — the self-directed retail trader or quant-curious investor who signs up (optionally with a referral code), completes KYC, trades the live market, allocates capital to AI bots, manages deposits and withdrawals, and tracks affiliate earnings.admin) — the operator who supervises user accounts and KYC statuses, curates the AI bot / trading-strategy catalog, and reviews financial transactions and referral bonus records.The platform is delivered as a first-party web application with application-owned identity, JWT-protected routes, a Supabase/PostgreSQL relational backend with Row-Level Security, Binance market-data integration, a crypto payment gateway, and scheduled background automation for bot yield and commission processing.
NexTrade AI is a single first-party web application composed of an anonymous public entry surface, a dual-mode identity access surface, six authenticated trader destinations, and three administrator destinations. All authenticated destinations are protected by JWT session tokens and role-based access control limited to the user and admin roles.
Current delivery. The current release delivers:
LoginSignUp) with Sign In / Create Account tabs, Google and Apple ID SSO, password recovery, and optional referral code capture at enrollment.unverified, pending, and verified states.TRADING_PROFIT registration and downstream commission propagation.Actors and ownership. Human interaction is owned by first-party pages. Binance owns market data and, when the user enables it, automated execution on the user's own exchange account. The crypto payment gateway (Web3 Wallet Connect, NOWPayments, or Binance Pay API) owns deposit address generation and blockchain confirmation. Scheduled edge functions and database triggers own background yield and commission computation; these are system processes with no direct human interaction surface.
Narrow exclusions. No capabilities beyond those stated in the authoritative requirements are in scope. The platform does not add adjacent account-management, social, or portfolio-advisory features. Red #FF3B30 is a data state only and is never used as a brand or decorative colour. Automated API execution on user exchange accounts occurs only when the user explicitly enables it.
NexTrade AI is delivered as a first-party web application. Identity is application-owned: users self-enroll through the /login surface, and returning users verify through the same surface before reaching protected work. The anonymous Landing surface is the public entry point and explains the product before authentication; it does not expose protected state.
Protected destinations — /dashboard, /market, /ai-trading, /wallet, /affiliate, /settings, and the administrator destinations Users, Bot Management, and Transactions — require a valid JWT session token and are role-restricted. KYC verification is mandatory for profile completion and gates required platform participation.
Two external systems own work that NexTrade AI does not: Binance owns public market data feeds and, when enabled by the user, automated execution against the user's own exchange account; the crypto payment gateway owns deposit address generation and blockchain confirmation. Background automation — daily bot yield processing and the referral commission trigger — runs as scheduled edge functions and database triggers without a human interaction surface.
Everything described in this document is current. No future-horizon capabilities are defined.
/login via the emerald filled "Create Account" CTA; navigate to /login via the hairline-outlined "Sign In" secondary.LoginSignUp) with switchable "Sign In" / "Create Account" tabs driven by active tab state. Sign In fields: Email, Password, "Forgot Password?" trigger, "Sign In to NexTrade AI" primary submit. Create Account fields: Full Name, Email, Password, Confirm Password, optional Referral Code, "Create Account" primary submit. Third-party SSO buttons for Google and Apple ID.profiles (full_name, email, avatar_url, kyc_status, referral_code, referred_by, created_at); auth session token.referred_by on the new profile; session issuance on success./dashboard; a new account is routed to profile completion and KYC. Error — inline field-level errors for invalid credentials, mismatched passwords, duplicate email, or invalid referral code; SSO failures surface a retry affordance. Recovery — "Forgot Password?" initiates recovery; failed submissions preserve entered values./ai-trading, /market, /wallet, /affiliate, or /settings via the rail.wallets (available_balance, locked_balance, asset); investments (invested_amount, current_profit, status, started_at); ai_bots (name, risk_level, expected_daily_roi); transactions (type, amount, asset, status, created_at)./ai-trading; no transactions renders an empty ruled table. Success — balances, PnL, strategy cards, and transactions render with tabular numerals. Error — a muted inline notice with a retry control; partial data renders where available. Recovery — retry refetches; the page remains navigable.trades (symbol, side, type, entry_price, exit_price, quantity, pnl, status, created_at); Binance klines and ticker streams.GET /api/v3/klines; order-book depth bars with slow vertical drift; trade stream; execution panel with side, type, price, and quantity inputs; live price cells that flash on tick.ai_bots / trading_strategies; investments (invested_amount, current_profit, status, started_at); wallets (available_balance).investments record with status active./dashboard. Error — allocation below min_investment or above available balance surfaces an inline error and preserves the entered amount. Recovery — the user corrects the amount and resubmits.wallets (asset, available_balance, locked_balance, updated_at); transactions (type, amount, asset, tx_hash, status, created_at).WITHDRAWAL transaction with status PENDING; webhook-driven balance refresh on blockchain confirmation.available_balance and the transaction moves to COMPLETED; a withdrawal request appears as PENDING. Error — address generation failure or withdrawal rejection surfaces an inline error with a retry. Recovery — the user regenerates a single-use address or corrects the withdrawal request.profiles (referral_code, referred_by); referrals_and_bonuses (referrer_id, referee_id, level, bonus_amount, source_transaction_id, created_at); transactions (type = REFERRAL_BONUS).referral_code; team volume counter; tier breakdown table; concentric ring diagram with a slow amber tick looping the active ring.unverified / pending / verified status, Binance API key management with AES-256 encrypted storage, Security 2FA setup. Profile fields: full_name, email, avatar_url.profiles (full_name, email, avatar_url, kyc_status); encrypted Binance API key material.kyc_status from unverified to pending on submission; API key form that encrypts with AES-256 before storage and exposes an enable toggle for automated execution; 2FA setup panel.pending; an administrator decision moves it to verified; API keys save with a confirmation; 2FA enables with a confirmation. Error — upload failure, invalid key format, or 2FA setup failure surfaces an inline error. Recovery — the user retries the upload or re-enters the key.unverified, pending, verified), profile fields, and referral relationships.profiles (id, full_name, email, avatar_url, kyc_status, referral_code, referred_by, created_at).admin.is_active.ai_bots / trading_strategies.is_active change persists and removes the bot from the trader-facing catalog when deactivated. Error — a muted inline notice with retry. Recovery — retry refetches.admin.DEPOSIT, WITHDRAWAL, TRADING_PROFIT, REFERRAL_BONUS, LEVEL_BONUS), amount, asset, tx_hash, status (PENDING, COMPLETED, FAILED), created_at, plus referrals_and_bonuses records.PENDING or FAILED transaction.source_transaction_id.transactions; referrals_and_bonuses.admin.FR-1 — Dual-mode authentication surface (explicit)
As a Trader / Investor or Platform Administrator, I should reach a dual-mode auth component (LoginSignUp) with switchable "Sign In" and "Create Account" tabs driven by active tab state, so that I can either verify an existing session or establish a new one from a single surface.
/login./dashboard; successful account creation routes to profile completion and KYC.FR-2 — Sign In form (explicit) As a Trader / Investor or Platform Administrator, I should sign in with Email and Password using the "Sign In to NexTrade AI" primary submit, with a "Forgot Password?" trigger available, so that I can resume my protected work.
/dashboard.FR-3 — Create Account form (explicit) As a Trader / Investor, I should create an account with Full Name, Email, Password, Confirm Password, an optional Referral Code, and the "Create Account" primary submit, so that I can begin using the platform.
profiles record is created with a unique referral_code; when a Referral Code is supplied, referred_by is bound to the referring profile.FR-4 — Third-party SSO (explicit) As a Trader / Investor or Platform Administrator, I should authenticate with Google or Apple ID via the SSO option buttons, so that I can establish or resume a session without a password.
profiles record exists or is created.FR-5 — JWT-protected secure routes (explicit) As a Trader / Investor or Platform Administrator, I should have every secure route require a valid JWT session token, so that protected state is never reachable without an established identity.
/login./login to re-verify.FR-6 — Role-Based Access Control (explicit)
As a Platform Administrator, I should have access governed by RBAC with exactly the roles user and admin, so that administrative destinations are reachable only by administrators.
user-role sessions reach trader destinations; admin-role sessions reach Users, Bot Management, and Transactions.FR-7 — Mandatory KYC verification status (explicit)
As a Trader / Investor, I should have a mandatory KYC verification status with the states unverified, pending, and verified, so that my profile completion reflects my verification standing.
kyc_status is unverified on creation, moves to pending on document submission, and to verified on administrative approval.unverified with an inline error.FR-8 — Supabase/PostgreSQL relational schema with RLS (explicit) As a Platform Administrator, I should have the relational schema created in Supabase/PostgreSQL with full Row-Level Security enabled on all tables, so that each row is accessible only to its rightful owner.
FR-9 — profiles table (explicit)
As a Platform Administrator, I should have a profiles table with id (uuid, Primary Key, refs auth.users), full_name (text), email (text, unique), avatar_url (text), kyc_status (enum: unverified, pending, verified), referral_code (text, unique), referred_by (uuid, refs profiles.id), and created_at (timestamp), so that user identity, verification, and referral lineage are durably recorded.
FR-10 — wallets table (explicit)
As a Platform Administrator, I should have a wallets table with id (uuid, Primary Key), user_id (uuid, refs profiles.id), asset (text, e.g., 'USDT', 'BTC', 'ETH'), available_balance (numeric, default 0.00), locked_balance (numeric, default 0.00), and updated_at (timestamp), so that per-asset balances are durably recorded.
FR-11 — ai_bots / trading_strategies table (explicit)
As a Platform Administrator, I should have an ai_bots / trading_strategies table with id (uuid, Primary Key), name (text, e.g., 'Alpha Momentum Grid', 'Quant Scalper AI'), risk_level (enum: Low, Medium, High), min_investment (numeric), expected_daily_roi (numeric, percentage), active_users_count (integer), and is_active (boolean), so that the bot catalog is durably recorded.
FR-12 — investments table (explicit)
As a Platform Administrator, I should have an investments table with id (uuid, Primary Key), user_id (uuid, refs profiles.id), bot_id (uuid, refs ai_bots.id), invested_amount (numeric), current_profit (numeric), status (enum: active, paused, closed), and started_at (timestamp), so that each user's bot allocations are durably recorded.
FR-13 — trades table (explicit)
As a Platform Administrator, I should have a trades table with id (uuid, Primary Key), user_id (uuid, refs profiles.id), symbol (text, e.g., 'BTCUSDT'), side (enum: BUY, SELL), type (enum: MARKET, LIMIT), entry_price (numeric), exit_price (numeric, nullable), quantity (numeric), pnl (numeric), status (enum: OPEN, CLOSED, CANCELLED), and created_at (timestamp), so that every order and its outcome are durably recorded.
FR-14 — transactions table (explicit)
As a Platform Administrator, I should have a transactions table with id (uuid, Primary Key), user_id (uuid, refs profiles.id), type (enum: DEPOSIT, WITHDRAWAL, TRADING_PROFIT, REFERRAL_BONUS, LEVEL_BONUS), amount (numeric), asset (text), tx_hash (text, nullable), status (enum: PENDING, COMPLETED, FAILED), and created_at (timestamp), so that every financial movement is durably recorded.
FR-15 — referrals_and_bonuses table (explicit)
As a Platform Administrator, I should have a referrals_and_bonuses table with id (uuid, Primary Key), referrer_id (uuid, refs profiles.id), referee_id (uuid, refs profiles.id), level (integer, e.g., 1, 2, 3), bonus_amount (numeric), source_transaction_id (uuid, refs transactions.id), and created_at (timestamp), so that every tiered bonus is durably recorded and traceable to its source.
FR-16 — Binance public REST and WebSocket connection (explicit)
As a Trader / Investor, I should have the platform connect to the Binance Public REST API and WebSockets at wss://stream.binance.com:9443/ws, so that market data is live and authoritative.
FR-17 — Real-time ticker stream (explicit)
As a Trader / Investor, I should receive a real-time ticker stream (<symbol>@ticker) for live price updates on BTC/USDT, ETH/USDT, SOL/USDT, and BNB/USDT, so that I can act on current prices.
FR-18 — Historical candlestick data (explicit)
As a Trader / Investor, I should have historical candlestick data fetched via GET /api/v3/klines to render lightweight TradingView charts, so that I can read price structure before executing.
FR-19 — Secure Binance API key storage (explicit) As a Trader / Investor, I should have my private Binance API keys stored AES-256 encrypted in my settings for automated API execution on my exchange account if enabled, so that automation is possible without exposing my keys.
/settings.FR-20 — Crypto payment gateway deposit address generation (explicit) As a Trader / Investor, I should have deposit addresses generated through Web3 Wallet Connect (or NOWPayments / Binance Pay API) on TRC20, BEP20, or ERC20, so that I can fund my wallet.
/wallet.FR-21 — Deposit webhook auto-credit (explicit)
As a Trader / Investor, I should have my wallets.available_balance auto-credited by a direct deposit webhook handler upon receiving blockchain confirmations, so that my funds appear without manual intervention.
DEPOSIT transaction is created and moves to COMPLETED; available_balance increases.PENDING or FAILED and the balance unchanged./wallet and /dashboard.FR-22 — Real-time PnL computation (explicit) As a Trader / Investor, I should have edge functions compute real-time Profit and Loss using Unrealized PnL = (Current Price − Entry Price) × Quantity for BUY positions, so that my open exposure is always current.
/dashboard and /market and updates with live prices.FR-23 — Protocol execution fee (explicit) As a Trader / Investor, I should have a 0.1% protocol execution fee automatically deducted on closed trades, so that net returns are accurate.
FR-24 — Three-tier affiliate commission engine (explicit) As a Trader / Investor, I should have multi-level referral rewards distributed automatically whenever a user deposits or earns trading yield, so that my referral earnings accrue without manual claims.
/affiliate and in the referrer's USDT wallet.FR-25 — Referral commission database trigger (explicit)
As a Trader / Investor, I should have a database trigger function that, upon any yield generation or completed deposit, automatically computes Level 1–3 parents, creates the corresponding transactions record with type = REFERRAL_BONUS, and credits the referrer's USDT wallet, so that commissions are never missed.
REFERRAL_BONUS transaction and a referrals_and_bonuses record exist for each eligible level, and the referrer's USDT available_balance increases./affiliate and /wallet.FR-26 — Daily bot execution schedule (explicit)
As a Trader / Investor, I should have a daily cron job / scheduled edge function process my active investments, so that my bot allocations produce yield on schedule.
FR-27 — Daily yield credit and TRADING_PROFIT registration (explicit)
As a Trader / Investor, I should have the daily job calculate my daily percentage yield based on the bot's configured ROI range, credit my wallet with the yield, and register a TRADING_PROFIT transaction, so that my returns are visible and auditable.
investments.current_profit increases, the wallet balance increases, and a TRADING_PROFIT transaction exists./dashboard and /wallet.FR-28 — Daily yield triggers referral commissions (explicit) As a Trader / Investor, I should have daily bot processing trigger referral commission calculations up the 3-tier tree, so that my referrers earn on my bot yields.
REFERRAL_BONUS transactions are created for eligible Level 1–3 referrers./affiliate.FR-29 — Navbar / Sidebar (explicit) As a Trader / Investor or Platform Administrator, I should have a Navbar / Sidebar containing the Logo, Live Market Ticker, Navigation Links (Dashboard, AI Trading, Market, Wallet, Affiliate, Settings), Profile Avatar dropdown, Dark Mode toggle, and Logout, so that I can move between destinations and control my session.
FR-30 — Main Overview Dashboard (explicit)
As a Trader / Investor, I should see Total Portfolio Balance, a Net PnL card, Active AI Strategy cards, and a Recent Transactions table on /dashboard, so that I can assess my position at a glance.
FR-31 — Live Market & Trading (explicit)
As a Trader / Investor, I should have an embedded live candle chart, Order Book, Real-Time Trade Stream, and a Market/Limit Buy & Sell Execution Panel on /market, so that I can read the market and execute orders.
trades record is created with status OPEN; the order appears in the open-orders list.FR-32 — AI Trading Bots (explicit)
As a Trader / Investor, I should see a catalog of available trading bots with performance metrics and an "Invest Now" modal with a flexible allocation input on /ai-trading, so that I can allocate capital to a strategy.
investments record is created with status active; the wallet is debited; the bot's active_users_count increments.min_investment or above available balance surfaces an inline error and preserves the amount./dashboard.FR-33 — Wallet & Funds (explicit)
As a Trader / Investor, I should see an asset balance breakdown, a Deposit modal with single-use crypto QR code generation, and a Withdrawal request form on /wallet, so that I can move funds in and out.
WITHDRAWAL transaction with status PENDING.FR-34 — Multi-Level Affiliate Dashboard (explicit)
As a Trader / Investor, I should see a unique referral link sharing widget, a total team volume counter, and a Tier 1/2/3 breakdown table with active team count and bonus earnings on /affiliate, so that I can grow and monitor my referral network.
referral_code link; tiers populate with active counts and bonus earnings.FR-35 — User Profile & Security Settings (explicit)
As a Trader / Investor, I should have a KYC document upload portal, Binance API key management, and Security 2FA setup on /settings, so that I can complete verification and secure my account.
kyc_status moves to pending; API keys are stored AES-256 encrypted; 2FA is enabled.FR-36 — Administrative user supervision (required_inference) As a Platform Administrator, I should review user accounts and their KYC statuses on Users, so that verification decisions are made and recorded.
kyc_status values; a status change persists and is reflected for the affected user.admin.FR-37 — Administrative bot catalog oversight (required_inference) As a Platform Administrator, I should review and control the AI bot and trading-strategy catalog on Bot Management, so that only intended strategies are offered to traders.
is_active persists and removes a deactivated bot from the trader-facing catalog.admin.FR-38 — Administrative transaction review (required_inference) As a Platform Administrator, I should review and control financial transactions, referral bonuses, and related records on Transactions, so that financial activity remains correct and controlled.
admin.user)Product context. The Trader / Investor is a self-directed retail trader or quant-curious investor operating in a high-stakes, always-on market. They arrive either through a referral link or directly, and they expect the platform to behave like an instrument: live prices, current PnL, and bot yields that update without a page refresh.
Primary goal. Grow capital through a combination of manual market execution and automated bot allocation, while compounding referral earnings from the people they bring onto the platform.
Distinct accepted responsibilities.
referred_by), or sign in to resume; authenticate via Google or Apple ID if preferred.kyc_status from unverified to pending and awaiting verified./dashboard./market, then place MARKET or LIMIT BUY or SELL orders./ai-trading, then invest a flexible amount./wallet./affiliate./settings.Relevant inputs and decisions. Which symbol to trade and at what price; whether to use a market or limit order; which bot matches their risk appetite and how much to allocate; which network (TRC20, BEP20, ERC20) to deposit on; whether to enable automated API execution on their own exchange account; whether to share their referral link.
Interactions with other accepted participants. The Trader / Investor is the counterparty of the Platform Administrator, who reviews their KYC status and financial records. They are also the referrer or referee in the three-tier tree: their deposits and bot yields generate bonuses for their Level 1–3 referrers, and their own referral link generates bonuses for them from their referees' activity.
Observable success. Balances, positions, bot investments, and referral bonuses are accurately reflected; live market data drives their decisions; KYC reaches verified; deposits auto-credit on blockchain confirmation; daily bot yields appear as TRADING_PROFIT transactions; tiered bonuses appear as REFERRAL_BONUS transactions.
admin)Product context. The Platform Administrator operates the machine behind the market. They do not trade; they keep the platform's users, strategies, and money correct. Their work is supervisory and exception-driven — most of the time the system runs itself, and the administrator intervenes when a KYC submission needs a decision, a bot needs to be retired, or a transaction needs review.
Primary goal. Keep the platform's user base verified, its bot catalog intentional, and its financial records accurate, so that trading, yield, and commission activity remains correct and controlled.
Distinct accepted responsibilities.
kyc_status values on Users, and act on pending verifications.is_active.DEPOSIT, WITHDRAWAL, TRADING_PROFIT, REFERRAL_BONUS, and LEVEL_BONUS transactions on Transactions, act on PENDING or FAILED records, and trace a bonus to its source_transaction_id.Relevant inputs and decisions. Whether a KYC submission is approved; whether a bot should remain active; whether a pending or failed transaction should be resolved.
Interactions with other accepted participants. The Platform Administrator acts on the Trader / Investor's account state: approving KYC unblocks the trader's participation, deactivating a bot removes it from the trader-facing catalog, and resolving a transaction changes what the trader sees in their wallet and history.
Observable success. KYC statuses are current and correct; the trader-facing bot catalog contains only intended strategies; transaction records reconcile with wallet balances and referral bonus lineage.
/login with the "Create Account" tab active.profiles record is created with a unique referral_code; because a Referral Code was supplied, referred_by is bound to the referring profile, placing them in that referrer's Level 1 tier./settings and upload KYC documents through the KYC document upload portal. kyc_status moves from unverified to pending.unverified; they retry the upload.kyc_status becomes verified./login and the "Sign In" tab is active./dashboard./dashboard, the Trader / Investor opens /wallet and reviews the asset balance breakdown of available and locked balances per asset.wallets.available_balance and the DEPOSIT transaction moves to COMPLETED.REFERRAL_BONUS transactions, and credits each referrer's USDT wallet — 7% to Level 1, 3% to Level 2, and 1% to Level 3. Each referrer sees the bonus on /affiliate and /wallet.WITHDRAWAL transaction is created with status PENDING./wallet./market and selects a symbol from BTC/USDT, ETH/USDT, SOL/USDT, or BNB/USDT.GET /api/v3/klines), the Order Book depth, and the Real-Time Trade Stream. Price cells flash green on uptick and red on downtick.trades record is created with status OPEN, and the order appears in the open-orders list./market and /dashboard./dashboard./ai-trading and reviews the catalog of available trading bots with their performance metrics — name, risk level, minimum investment, expected daily ROI, and active users count.min_investment or above their available balance, an inline error appears and the entered amount is preserved. They correct it and resubmit.investments record is created with status active, the wallet is debited, and the bot's active_users_count increments./dashboard.investments.investments.current_profit, and registers a TRADING_PROFIT transaction.REFERRAL_BONUS transactions, and credits each referrer's USDT wallet — 7% to Level 1, 3% to Level 2, and 1% to Level 3./affiliate in their Tier 1/2/3 breakdown table and in their USDT wallet on /wallet./dashboard./affiliate and sees the unique referral link sharing widget, the total team volume counter, and the Tier 1/2/3 breakdown table with active team count and bonus earnings.referred_by to this Trader / Investor and placing them in Level 1./settings./login and reaches their role-restricted destinations.pending.kyc_status becomes verified, and the affected Trader / Investor can now complete their profile and participate.is_active on a bot that should no longer be offered. The change persists and the bot is removed from the trader-facing catalog on /ai-trading.DEPOSIT, WITHDRAWAL, TRADING_PROFIT, REFERRAL_BONUS, and LEVEL_BONUS types.PENDING or FAILED transaction. The status change persists and is reflected in the affected user's wallet and history.REFERRAL_BONUS record to its source_transaction_id to confirm the bonus lineage.Muse: MARQ by Garmin — luxury instrument aesthetic. The interface is a precision instrument, not a dashboard: dark titanium, one amber signal, gauges that read like a watch bezel. Trust is earned through instrumentation, not rounded friendliness.
Headline direction: Precision instrument, not a dashboard.
| Role | Token | Value |
|---|---|---|
| Background ground (60%) | --bg | #0B0E11 |
| Raised instrument panel (25%) | --surface | #141A20 |
| Panel bezel hairline | --bezel | #232A31 |
| Ruled data row divider | --rule | #1B2228 |
| Primary text (10%) | --text | #E8EAED |
| Muted labels / secondary data | --muted | #6B7681 |
| Functional signal (uptick, active, primary CTA, filled gauge arc) | --primary | #00C076 |
| Instrument accent (live/streaming, "AI is running" pulse, one hero number) | --accent | #F0A93B |
| Data state only (downtick, failed, warning, SELL) | --danger | #FF3B30 |
| Uptick flash | --flash-up | rgba(0,192,118,0.14) |
| Downtick flash | --flash-down | rgba(255,59,48,0.14) |
| Inset top highlight | --edge | rgba(255,255,255,0.04) |
Usage rules. The ground is never pure black — it stays a machined charcoal. Emerald #00C076 is the functional signal and is never used as decoration. Amber #F0A93B is the single hot highlight, reserved for live/streaming states, the "AI is running" pulse, and one hero-level number. Red #FF3B30 is strictly a data state and is never a brand or decorative colour. No gradients as backgrounds; a gradient appears only as a thin luminous edge on bezels.
tabular-nums with slashed zeroes. PnL figures use Saira Condensed 600 so a column of numbers aligns like a ruled dial.clamp(72px, 12vw, 128px) in Saira Condensed 700, with its label at 11px uppercase Barlow 500 in #6B7681 above it and a delta chip beside it.Instrument geometry. Panels are 10px-radius rounded rectangles with a 1px #232A31 bezel and a 1px inset top highlight reading as a machined edge. No pills, no blobs. Circular gauges are the recurring motif — stroke-width 6, emerald arc on a #232A31 track, with a small amber tick at the current value. Buttons are 8px-radius rectangles with hard 1px borders, never filled slabs; the primary CTA is the only filled emerald shape on any screen. Horizontal ruled data rows (1px #1B2228) replace card grids wherever data is tabular.
Strict 12-column grid, 24px gutters, 32px page padding at 1280px and 16px at 375px. A fixed 240px left instrument rail on desktop, collapsing to a bottom 5-item bar at 375px. Every page opens with a full-width readout strip — a single ruled row of 4–6 labelled values separated by 1px vertical rules, spanning the viewport edge to edge with no card behind it.
The interface is the imagery. Where a visual is needed it is diagrammatic and engineered: topographic contour lines drawn in #1B2228 behind the market chart bay, a macro titanium-brushed texture (SVG turbulence at 4% opacity) on the auth panel, thin radial tick marks around gauge rings, and schematic line-art for empty states (a bezel, a candlestick grid, a network node tree for the affiliate tree). No stock photography of people, no 3D coins, no neon glows, no illustration for its own sake. The one permitted photographic moment is a single full-bleed macro crop of a brushed-metal surface behind the login card, darkened to 8% luminance.
The cut instrument face. The public entry is a 60/40 split, not a centred hero.
Left 60%. On #0B0E11, a stacked three-line headline in Saira Condensed 700 set flush-left at clamp(44px, 9vw, 104px):
#E8EAED#00C076#E8EAEDBelow it sits a single ruled readout strip of four live figures — BTC/USDT, ETH/USDT, SOL/USDT, BNB/USDT — that streams in from the left edge and runs under the headline, its cells flashing green on uptick and red on downtick. Below that, one emerald filled CTA ("Create Account") and one hairline-outlined secondary ("Sign In"). The headline block bleeds off the left viewport edge at 1280px so the composition reads as a cut instrument face rather than a marketing hero.
Right 40%. A full-height #141A20 instrument panel with a 1px bezel containing the tabbed Sign In / Create Account form, topped by a circular gauge ring that sweeps to 100% on load with an amber tick — the only glowing element on the page. Behind the panel, a single full-bleed macro crop of brushed metal darkened to 8% luminance supplies the one permitted photographic moment.
Responsive behaviour. At 375px the panel stacks below the headline, the readout strip becomes a horizontally scrollable ticker, and the headline drops to 44px with the CTA full-width. All readable text and controls stay whole inside the viewport and their container at 375px, 768px, and 1280px; the bleed gesture is carried by the headline block and the readout strip, never by cropping a label or a control.
Scope. This concept recomposes only accepted content, states, and controls — the product proposition, the live Binance ticker figures, the dual-mode auth form, and the two entry CTAs. It introduces no new behaviour, page, or destination.
Interaction Model: Animated Motion Tempo: cinematic Hero Dimensionality: dimensional_css
Focal subject. The live readout strip of four market figures (BTC/USDT, ETH/USDT, SOL/USDT, BNB/USDT) streaming in from the left edge beneath the stacked headline, paired with the circular gauge ring on the right instrument panel.
Input → transformation → outcome thesis. Live Binance ticker frames arrive over the WebSocket → each readout cell's value updates and its background flashes rgba(0,192,118,0.14) on uptick or rgba(255,59,48,0.14) on downtick for 220ms with no easing curve beyond cubic-bezier(0.2,0,0,1) → the visitor reads a live, moving market before they have an account, and the gauge ring on the right sweeps to 100% over 700ms with an amber tick settling at its value.
Motion vocabulary. Precise and mechanical, at MARQ's cinematic ceiling but used with discipline. Scroll reveals are 12px translate-up with opacity, 320ms, staggered 60ms across readout-strip cells. Gauge arcs sweep to their value on mount over 700ms. The one continuous loop is the "AI running" indicator: a 2px amber tick that travels the circumference of an active bot's ring every 4s, plus a slow 0.4px/step vertical drift on the order-book depth bars. No parallax on data, no bounce, no particles.
Composed first frame. At rest, the headline sits flush-left with "AUTOMATE" in emerald, the readout strip holds four labelled figures separated by 1px vertical rules, the emerald "Create Account" CTA is the only filled shape, and the right panel's gauge ring rests at 0% on its #232A31 track with the amber tick at the origin.
Reduced-motion state. With prefers-reduced-motion, the readout strip stops streaming and shows whole items wrapped into rows or in a horizontally scrollable row (overflow-x: auto) whose further items are reached by scrolling; the gauge ring renders at its final value without sweeping; the amber tick holds still; scroll reveals render at final position with no translate.
NFR-1 — Row-Level Security on all tables (explicit) All seven tables must have full Row-Level Security enabled. Rationale: the source states RLS must be enabled on all database tables; user financial and identity data must not leak across accounts.
NFR-2 — JWT session tokens on secure routes (explicit) Every secure route must require a valid JWT session token. Rationale: the source states secure routes require JWT session tokens.
NFR-3 — AES-256 encryption of private Binance API keys (explicit) Private Binance API keys must be stored AES-256 encrypted. Rationale: the source states secure private API key storage (AES-256 encrypted) in user settings.
NFR-4 — Single-use deposit addresses (explicit) Deposit addresses must be single-use and generated per deposit via the crypto payment gateway. Rationale: the source states deposit addresses are single-use and generated per deposit.
NFR-5 — Fixed protocol execution fee (explicit) A 0.1% protocol execution fee must be deducted on closed trades. Rationale: the source states the fee is automatically deducted on closed trades.
NFR-6 — Fixed referral commission rates (explicit) Referral commission rates are fixed at 7% (Level 1), 3% (Level 2), and 1% (Level 3) on deposits and bot daily yields. Rationale: the source states these rates explicitly.
NFR-7 — Conditional automated API execution (explicit) Automated API execution on user exchange accounts must occur only if enabled by the user. Rationale: the source states automated API execution occurs on user exchange accounts if enabled.
NFR-8 — Role set limited to user and admin (explicit)
RBAC roles are limited to user and admin. Rationale: the source states the roles are user and admin.
NFR-9 — Mandatory KYC for profile completion (explicit) KYC verification is mandatory for profile completion. Rationale: the source states profile completion and mandatory KYC verification status.
NFR-10 — Live market data fidelity (explicit)
Market data must be sourced from the Binance Public REST API and WebSocket at wss://stream.binance.com:9443/ws, with the ticker stream (<symbol>@ticker) covering BTC/USDT, ETH/USDT, SOL/USDT, and BNB/USDT, and historical candles fetched via GET /api/v3/klines. Rationale: the source specifies these endpoints and symbols exactly.
NFR-11 — Readable text and controls at every viewport (explicit)
Headlines, wordmarks, labels, numbers, cards' text, and controls must stay entirely inside the viewport and their container at 375px, 768px, and 1280px, wrapping or scaling to fit, with no other element covering any part of them. Moving and scrollable content may cross the viewport or container edge by design and must show whole items under prefers-reduced-motion. Rationale: the creative direction states this rule and gives it precedence over cropping gestures for readable text and controls.
NFR-12 — Dark-mode-only presentation (explicit)
The interface must present the premium dark-mode aesthetic with background #0B0E11, primary emerald #00C076, warning red #FF3B30, and subtle gray muted elements, with high-density data visualizations. Rationale: the source states this aesthetic as a requirement.
Frontend (explicit where stated, otherwise default)
LoginSignUp), a fixed left instrument rail, and the seven trader-facing destinations plus three administrator destinations.Backend and data (explicit)
auth.users identity, JWT session tokens, and RBAC roles user and admin (explicit).investments (explicit).External integrations (explicit)
wss://stream.binance.com:9443/ws for ticker streams and GET /api/v3/klines for historical candles.Presentation defaults (Default — not specified by user)
Constraints (binding).
user and admin.#FF3B30 is a data state only and is never used as a brand or decorative colour.Assumptions (narrow, labeled).
admin role is provisioned by deployment or platform bootstrap rather than through the public /login enrollment form, since the source defines no administrator self-enrollment path.unverified, pending, and verified states but does not name the reviewing surface.admin role.Explicit exclusions.
NexTrade AI — The web-based cryptocurrency trading, AI automated strategy, and affiliate investment platform defined by this document.
LoginSignUp — The dual-mode authentication component with switchable "Sign In" and "Create Account" tabs driven by active tab state.
RBAC — Role-Based Access Control. NexTrade AI's roles are limited to user and admin.
JWT session token — The signed token issued on successful authentication that secures every protected route.
KYC — Know Your Customer. The mandatory identity verification with states unverified, pending, and verified.
RLS — Row-Level Security. Enabled on all seven database tables so each row is accessible only to its rightful owner.
profiles — The user identity table: id, full_name, email, avatar_url, kyc_status, referral_code, referred_by, created_at.
wallets — The per-asset balance table: id, user_id, asset, available_balance, locked_balance, updated_at.
ai_bots / trading_strategies — The bot catalog table: id, name, risk_level, min_investment, expected_daily_roi, active_users_count, is_active.
investments — The user-to-bot allocation table: id, user_id, bot_id, invested_amount, current_profit, status, started_at.
trades — The order table: id, user_id, symbol, side, type, entry_price, exit_price, quantity, pnl, status, created_at.
transactions — The financial movement table: id, user_id, type, amount, asset, tx_hash, status, created_at.
referrals_and_bonuses — The tiered bonus table: id, referrer_id, referee_id, level, bonus_amount, source_transaction_id, created_at.
Unrealized PnL — (Current Price − Entry Price) × Quantity, computed for BUY positions.
Protocol execution fee — The 0.1% fee automatically deducted on closed trades.
Level 1 / Level 2 / Level 3 — The three affiliate tiers: direct referral (7%), indirect referral (3%), and sub-referral (1%) on deposits and bot daily yields.
REFERRAL_BONUS — The transactions.type value created by the commission trigger when a deposit completes or a yield is generated.
TRADING_PROFIT — The transactions.type value registered when the daily bot job credits a user's wallet with yield.
Readout strip — The full-bleed ruled row of 4–6 labelled live figures at the top of every page, separated by 1px vertical rules with no card behind it.
Instrument rail — The fixed 240px left navigation rail on desktop, collapsing to a bottom 5-item bar at 375px, with a 2px emerald edge marker on the active item.
No completed page designs yet.
Completed design pages will appear here when they are ready to preview.
No completed page designs yet.
Completed design pages will appear here when they are ready to preview.
No comments yet. Be the first!