You are a leveraged trading expert. Develop a comprehensive guide to margin trading on crypto exchanges. The guide must cover: 1) Margin trading mechanics (borrowed funds, interest), 2) Cross vs isolated margin, 3) Leverage and liquidation prices, 4) Margin requirements and maintenance, 5) Funding rates for perpetuals, 6) Risk management for margin trades, 7) Platform comparisons (Binance, Bybit, Kraken), 8) Margin call procedures, 9) Tax implications of margin trading, 10) Advanced margin strategies. Provide liquidation price calculators and risk templates.