<?php
session_start();

$lang = $_SESSION['lang'] ?? 'en'; // Default to English
if (isset($_GET['lang'])) {
    $lang = $_GET['lang'] === 'zh' ? 'zh' : 'en';
    $_SESSION['lang'] = $lang;
}

$translations = [
    'zh' => [
        'home' => '首页',
        'market' => '行情',
        'second_contract' => '秒合约',
        'spot' => '现货交易',
        'contract' => '合约交易',
        'mining' => '挖矿',
        'swap' => '闪兑',
        'personal' => '个人中心',
        'login' => '登入',
        'register' => '注册',
        'logout' => '退出',
        'language' => '语言选择',
        'footer_about' => '关于',
        'footer_product' => '产品',
        'footer_support' => '支持',
        'about_us' => '关于我们',
        'news' => '新闻中心',
        'terms' => '服务条款',
        'help' => '帮助中心',
        'privacy' => '法律与隐私',
        'submit_request' => '提交请求',
        'api_doc' => '接口文档',
        'fee_structure' => '费率标准',
        'app_download' => '应用下载',
        'system_status' => '系统状态',
        'normal' => '正常',
        'cookie_policy' => '隐私政策',
        'platform_advantage' => '为什么选择BYRO',
        'partners' => '合作伙伴',
        'deposit' => '充值',
        'withdraw' => '提现',
        'assets' => '资产',
        'enter_verify_code' => '请输入验证码',
        'verify_code_error' => '验证码错误或已过期',
        'agree_terms_error' => '请同意服务协议',
        'mobile_verify' => '手机验证码',
        'email_verify' => '邮箱验证码',
        3 => '通过',
        4 => '拒绝',
        'login_admin_error' => '管理员请通过后台页面登录',
        'fill_full_info' => '请填写完整信息',
        'verification_code' => '验证码',
        'agree_tos_privacy' => '我已阅读并同意<a href="/tos.php" class="text-primary text-decoration-none">《服务协议》</a>和<a href="/legal.php" class="text-primary text-decoration-none">《隐私政策》</a>',
        'register_now' => '立即注册',
        'resend' => '重新发送',
        'send_failed' => '发送失败',
        'invalid_email' => '无效的邮箱地址',
        'invalid_mobile' => '无效的手机号码',
        'congrats_won' => '恭喜你获利',
        'sorry_lost' => '很遗憾亏损',
        'trade_won' => '交易获利',
        'trade_lost' => '交易亏损',
        'confirm' => '确 认',
        'buy' => '买',
        'sell' => '卖',
        'confirm_swap' => '确认兑换',
        'cancel' => '取消',
        'approx' => '约等于',
        'cookie_policy_title' => '隐私政策',
        'cookie_policy_content' => '<h3>1. 什么是隐私数据？</h3><p>隐私数据是您访问网站时存储在您的计算机或移动设备上的信息。它们广泛用于使网站运行或更高效地运行。</p>',
        'recharge_msg_fiat' => "用户ID：%uid% 申请充值金额：%amount% %currency%=%res% USDT",
        'recharge_msg_crypto' => "用户ID：%uid% 申请充值金额：%amount% USDT (%network%)",
        'withdraw_msg_fiat' => "用户ID：%uid% 申请提现金额：%amount% USDT=%res% %currency%",
        'withdraw_msg_crypto' => "用户ID：%uid% 申请提现金额：%amount% USDT (%network%)",
        'select_network' => '选择网络',
        'address_copied' => '地址已复制',
        'withdrawal_password_error' => '提现密码错误',
        'withdraw_pwd_placeholder' => '请输入提现密码',
        'recharge_amount_label' => '充值金额',
        'withdraw_amount_label' => '提现金额',
        'i_have_paid' => '我已付款',
        'enter_amount' => '请输入金额',
        'crypto_recharge_warning' => '请仅向此地址发送 USDT。发送其他资产可能会导致永久丢失。',
        'recharge_steps' => '充值步骤',
        'security_tips' => '安全提示',
        'est_receive_fiat' => '预计收到法币',
        'withdraw_steps' => '提现步骤',
        'withdraw_password' => '提现密码',
        'coin' => '币种',
        'address' => '地址',
        'network' => '网络',
        'fiat_amount' => '法币金额',
        'recharge_amount' => '充值金额',
        'withdraw_amount' => '提现金额',
        'withdraw_address' => '提现地址',
        'min_withdraw_hint' => '最小提现金额 10 USDT',
        'secure' => '安全',
        'fast' => '极速',
        'support_247' => '全天候支持',
        'market_name' => '行情',
        'trading' => '交易',
        'status_normal' => '系统状态：正常',
        'copyright' => '© 2023-2026 BYRO. 版权所有。',
        'back' => '返回',
        'crypto_withdraw' => '加密货币提现',
        'fiat_withdraw' => '法币提现',
        'to_receive' => '预计到账',
        'confirm_order' => '确认订单',
        'select_currency' => '选择币种',
        'fiat_recharge' => '法币充值',
        'crypto_recharge' => '加密货币充值',
        'est_usdt' => '预计 USDT',
        'enter_address' => '请输入地址',
        'enter_password' => '请输入密码',
        'request_sent' => '请求已发送，请检查聊天。',
        'cs_connect_fail' => '连接失败，请刷新。',
        'copy_success' => '复制成功',
        'market_view' => '查看市场',
        'prof_terminal' => '专业终端',
        'prof_terminal_desc' => '高性能交易引擎，毫秒级响应。',
        'inst_security' => '机构级安全',
        'inst_security_desc' => '多层加密和冷存储方案，确保资产安全。',
        'advantage_1_title' => '合规运营',
        'advantage_1_desc' => '全球合规化运营，冷热钱包隔离。',
        'advantage_2_title' => '深度流动性',
        'advantage_2_desc' => '毫秒级撮合引擎，流动性充足。',
        'advantage_3_title' => '全天候支持',
        'advantage_3_desc' => '多语言客服全天候在线。',
        'advantage_4_title' => '多元化产品',
        'advantage_4_desc' => '涵盖现货、合约、秒合约和挖矿。',
        'popular_markets' => '热门市场',
        'view_more' => '更多',
        'why_choose_us' => '为什么选择我们',
        'footer_desc' => 'BYRO是全球领先的数字资产交易平台，为个人和机构提供安全、可靠的交易服务。',
        'hero_title' => '全球领先的数字资产平台',
        'hero_subtitle' => '在BYRO开启您的加密货币之旅，安全、稳定、可靠。',
        'get_started' => '立即开启',
        'account_exists' => '账号已存在或数据库错误',
        'pwd_mismatch' => '两次输入的密码不一致',
        'join_secure' => '加入全球领先的交易平台',
        'have_account' => '已有账号？',
        'usd_name' => '美元',
        'eur_name' => '欧元',
        'gbp_name' => '英镑',
        'cny_name' => '人民币',
        'jpy_name' => '日元',
        'krw_name' => '韩元',
        'hkd_name' => '港币',
        'twd_name' => '新台币',
        'sgd_name' => '新加坡元',
        'myr_name' => '林吉特',
        'thb_name' => '泰铢',
        'vnd_name' => '越南盾',
        'recharge_step1' => '选择您想要充值的币种和网络。',
        'recharge_step2' => '复制充值地址或扫描二维码。',
        'recharge_step3' => '完成转账后，等待网络确认。',
        'recharge_step4' => '如有任何问题，请联系在线客服。',
        'recharge_tip1' => '请务必核对充值网络，错误的地址将导致资产丢失。',
        'recharge_tip2' => '充值完成后，请妥善保存转账凭证。',
        'recharge_tip3' => '请勿向他人透露您的账户私密信息。',
        'recharge_tip4' => '充值由系统自动到账，高峰期可能有延迟。',
        'withdraw_step1' => '选择提现币种并输入提现地址。',
        'withdraw_step2' => '输入您想要提现的金额。',
        'withdraw_step3' => '确认费用并提交提现申请。',
        'withdraw_step4' => '财务人员将在审核后处理您的请求。',
        'withdraw_tip1' => '提现前请确保地址完全正确。',
        'withdraw_tip2' => '错误的提现地址将无法追回资产。',
        'withdraw_tip3' => '提现申请一旦提交，无法撤回。',
        'withdraw_tip4' => '如有延误，请联系全天候在线客服。',
        'withdraw_fee' => '手续费',
        'unit_seconds' => '秒',
        'trading_pair' => '交易对',
        'leverage' => '杠杆',
        'buy_up' => '买入/做多',
        'buy_price' => '买入价',
        'sell_short' => '卖出/做空',
        'sell_price' => '卖出价',
        'long' => '做多',
        'short' => '做空',
        'close' => '平仓',
        'settling' => '结算中...',
        'amount_limit_error' => '金额超出限制 (%min% - %max%)',
        'settlement_price' => '结算价',
        'warning' => '警告',
        'high' => '最高',
        'low' => '最低',
        'chinese' => '中文',
        'english' => '英文',
        'qr_code' => '二维码',
        'bitcoin' => 'BTC',
        'ethereum' => 'ETH',
        'tether' => 'USDT',
        'binance_coin' => 'BNB',
        'solana' => 'SOL',
        'ripple' => 'XRP',
        'cardano' => 'ADA',
        'dogecoin' => 'DOGE',
        'polkadot' => 'DOT',
        'polygon' => 'MATIC',
        'avalanche' => 'AVAX',
        'chainlink' => 'LINK',
        'shiba_inu' => 'SHIB',
        'tron' => 'TRX',
        'bitcoin_cash' => 'BCH',
        'litecoin' => 'LTC',
        'uniswap' => 'UNI',
        'site_title' => '全球领先的数字资产交易平台',
        'unverified' => '未认证',
        '0' => '审核中',
        'verified' => '已认证',
        'real_name' => '实名认证',
        'credit_score' => '信用分',
        'last_price' => '最新价',
        'change_24h' => '24小时涨跌',
        'vol_24h' => '24小时成交额',
        'welcome_back' => '欢迎回来',
        'forgot_password' => '忘记密码？',
        'reset_password' => '找回密码',
        'account_not_found' => '账号不存在',
        'pwd_reset_success' => '密码已重置，请登录',
        'no_account' => '没有账号？',
        'invalid_account_pwd' => '账号或密码错误',
        'account' => '账号 / 邮箱',
        'password' => '密码',
        'mobile_number' => '手机号码',
        'confirm_password' => '确认密码',
        'send_code' => '发送验证码',
        'email' => '电子邮箱',
        'email_placeholder' => '请输入电子邮箱',
        'registration_verify' => '注册验证',
        'mobile_reg' => '手机注册',
        'email_reg' => '邮箱注册',
        'mobile_recovery' => '手机找回',
        'email_recovery' => '邮箱找回',
        'uploading' => '正在上传...',
        'uid' => '用户ID',
        'recharge' => '充值',
        'withdrawal' => '提现',
        'binary_win' => '秒合约获利',
        'binary_loss' => '秒合约亏损',
        'flash_exchange' => '闪兑',
        'contract_settle' => '合约结算',
        'contract_margin' => '合约保证金',
        'fill_all_fields' => '请填写所有字段',
        'kyc_submitted' => '实名认证资料已提交，请等待审核',
        'kyc_pending_desc' => '您的实名认证正在审核中，通常需要 24 小时内完成。',
        'full_name' => '全名',
        'enter_full_name' => '请输入全名',
        'id_number' => '证件号码',
        'enter_id_number' => '请输入证件号码',
        'id_front' => '证件正面',
        'id_back' => '证件反面',
        'id_handheld' => '手持证件照',
        'upload' => '点击上传',
        'kyc_steps' => '认证步骤',
        'kyc_step1' => '填写您的真实姓名和身份证号。',
        'kyc_step2' => '上传您的身份证正反面照片。',
        'kyc_step3' => '上传您手持身份证的照片，确保面部清晰。',
        'submit' => '提交',
        'kyc_instructions' => '请确保上传的照片清晰可见，光线充足，不要遮挡关键信息。认证成功后将无法修改，请务必填写真实信息。',
        'online_support' => '在线客服',
        'type_message' => '输入消息...',
        'welcome_support' => '欢迎来到BYRO支持中心！有什么可以帮您的？',
        'mining_desc' => '专业的云挖矿和质押平台，加入成千上万的用户。',
        'mining_profit' => '挖矿收益',
        'mining_return' => '本金退回',
        'mining_invest' => '参加挖矿',
        'mining_rebate' => '挖矿返佣',
        'spot_buy' => '现货买入',
        'spot_sell' => '现货卖出',
        'transfer_in' => '转入',
        'transfer_out' => '转出',
        'mining_pool' => '矿池',
        'day' => '天',
        'flexible' => '活期',
        'est_apy' => '预计年化',
        'min_deposit' => '起购金额',
        'lock_period' => '锁定周期',
        'principal_protected' => '本金保障',
        'daily_payouts' => '每日派息',
        'why_mining' => '为什么选择BYRO挖矿？',
        'adv_hardware' => '先进硬件',
        'adv_hardware_desc' => '我们使用最新的矿机，最大化收益。',
        'auto_compound' => '自动复利',
        'auto_compound_desc' => '每日收益自动再投资。',
        'real_time_monitor' => '实时监控',
        'real_time_monitor_desc' => '实时追踪您的算力和收益。',
        'calc_profit' => '计算您的收益',
        'calc_desc' => '输入投资金额以估算每日收益',
        'amount_to_invest' => '投资金额',
        'daily_profit' => '每日利润',
        'monthly_profit' => '每月利润',
        'try_calc' => '开始计算',
        'app_desc' => '随时随地进行交易。通过BYRO移动应用掌控您的数字资产。',
        'download_on' => '下载于',
        'get_it_on' => '立即获取',
        'scan_download' => '扫码下载',
        'real_time_alerts' => '实时行情推送',
        'full_trading_features' => '全功能交易体验',
        'two_fa_security' => '双重身份验证',
        'live_chat_247' => '24/7 在线客服',
        'our_mission' => '我们的使命',
        'mission_content' => '让数字资产交易对每个人、每个地方都变得触手可及、安全且直观。我们相信区块链的力量能够改变全球金融格局。',
        'global_presence' => '全球业务',
        'presence_content' => 'BYRO在新加坡、伦敦和东京设有办事处，服务于多元化的全球社区。我们符合国际标准，并优先考虑用户资产的安全。',
        'users' => '用户管理',
        'countries' => '国家',
        'daily_volume' => '每日交易量',
        'about_content' => 'BYRO是成立于 2023 年的全球领先数字货币交易所。',
        'news_content' => '获取BYRO的最新动态、上市公告和市场洞察。',
        'announcement' => '公告',
        'read_more' => '阅读更多',
        'newsletter' => '新闻通讯',
        'newsletter_desc' => '订阅以获取最新的加密见解，直接发送到您的收件箱。',
        'email_address' => '邮箱地址',
        'join' => '加入',
        'popular_topics' => '热门话题',
        'effective_date' => '生效日期：2023年2月16日',
        'tos_1_title' => '1. 条款说明',
        'tos_1_content' => '本服务协议（“协议”）是您与 BYRO 平台（“我们”或“我们的”）之间具有法律约束力的协议。通过访问、使用或点击“注册”我们的任何服务，即表示您已阅读、理解并接受本协议中规定的所有条款。',
        'tos_2_title' => '2. 账户开设与安全',
        'tos_2_content' => '您必须年满 18 岁方可注册账户。您负责维护您账户的机密性，并对在您的账户下发生的所有活动承担全部责任。我们保留随时拒绝服务、终止账户或更改资格标准的权利。',
        'tos_3_title' => '3. 交易风险披露',
        'tos_3_content' => '数字资产交易具有极高的风险。价格波动剧烈且不可预测。杠杆交易可能导致超出初始投资的损失。在进行交易前，请确保您充分了解相关风险，BYRO 不提供任何投资、法律或财务建议。',
        'tos_4_title' => '4. 合规性与法律',
        'tos_4_content' => '您同意遵守您所在司法管辖区的所有适用法律和法规。BYRO 致力于反洗钱（AML）和反恐融资（CTF）合规，并可能要求您提供详细的身份证明信息（KYC）。',
        'tos_5_title' => '5. 服务变更与终止',
        'tos_5_content' => '我们可能会随时修改、暂停或中断服务的任何部分，恕不另行通知。如果我们认为您违反了本协议，我们保留限制、暂停或中断您访问全部或部分服务的权利。',
        'tos_6_title' => '6. 知识产权',
        'tos_6_content' => 'BYRO 平台上的所有内容，包括文本、图形、标识、按钮图标、图像、音频剪辑、数字下载和数据编译，均为 BYRO 或其内容供应商的财产，受国际版权法保护。',
        'tos_7_title' => '7. 免责声明',
        'tos_7_content' => '服务按“原样”和“可用”基础提供。我们不保证服务将不间断、及时、安全或无错误。您对服务的使用及您通过服务进行的任何交易均由您自行承担风险。',
        'tos_8_title' => '8. 赔偿',
        'tos_8_content' => '对于因您违反本协议或您对服务的使用而导致的任何索赔、损失、责任、损害、费用或成本（包括合理的律师费），您同意对 BYRO 及其附属公司、高级职员、董事、雇员和代理人进行赔偿并使其免受损害。',
        'last_updated' => '最后更新：2026年2月21日',
        'privacy_1_title' => '1. 信息收集范围',
        'privacy_1_content' => '我们收集的信息包括但不限于：身份信息（姓名、证件照）、联系信息（邮箱、手机号）、财务信息、设备信息以及您在使用我们服务时的交易记录。这些信息用于确保平台安全及提供更好的服务。',
        'privacy_2_title' => '2. 信息使用目的',
        'privacy_2_content' => '我们使用您的信息来：处理您的交易、验证您的身份、向您发送系统通知、改进我们的产品以及遵守适用的法律法规要求。',
        'privacy_3_title' => '3. 信息存储与保护',
        'privacy_3_content' => '我们采用行业领先的技术手段保护您的个人数据，包括多重加密存储和冷备份。除非法律要求或经您明确同意，我们不会向任何第三方出售或出租您的个人信息。',
        'privacy_4_title' => '4. 您的权利与选择',
        'privacy_4_content' => '您有权访问、更正或要求删除我们持有的您的个人数据。您可以随时在账户设置中管理您的隐私首选项，或联系我们的支持团队获取帮助。',
        'privacy_5_title' => '5. 政策变更通知',
        'privacy_5_content' => '我们可能会不时更新本隐私政策。任何重大变更都将通过平台公告或发送电子邮件的方式通知您。建议您定期查看本页面以了解最新信息。',
        'privacy_6_title' => '6. Cookie 的使用',
        'privacy_6_content' => '我们使用 Cookie 和类似技术来收集有关您对我们网站的使用的其他数据。您可以指示浏览器停止接受 Cookie，但如果您这样做，可能无法使用我们服务的某些部分。',
        'issue_type' => '问题类型',
        'account_access' => '账户访问',
        'dep_with_issue' => '充值/提现',
        'trading_issue' => '交易问题',
        'bug_report' => '错误报告',
        'other' => '其他',
        'subject' => '主题',
        'description' => '描述',
        'submit_ticket' => '提交工单',
        'support_response_time' => '我们的典型响应时间在 2 小时内。对于紧急问题，请使用右下角的实时聊天。',
        'api_intro' => '引言',
        'api_auth' => '身份验证',
        'api_market_data' => '行情数据',
        'api_trade_endpoints' => '交易接口',
        'api_errors' => '错误代码',
        'api_intro_desc' => '欢迎使用接口。我们的接口允许您以编程方式访问市场数据、管理您的账户并执行交易。我们使用先进的架构确保稳定性。',
        'api_auth_desc' => '所有私有接口都需要密钥身份验证。您可以在账户个人资料设置中生成密钥。',
        'api_get_ticker' => '获取行情',
        'api_get_ticker_desc' => '返回指定交易对的最新价格和 24 小时成交量。',
        'api_place_order' => '下单',
        'api_payload_example' => '数据示例：',
        'tier' => '等级',
        'trading_vol_30d' => '30天交易量',
        'maker_fee' => '挂单费',
        'taker_fee' => '吃单费',
        'regular' => '普通',
        'spot_fees' => '现货交易费率',
        'contract_fees' => '合约交易费率',
        'trade_spot' => '现货',
        'trade_contract' => '合约',
        'trade_binary' => '秒合约',
        'search' => '搜索',
        'profit' => '收益',
        'buy_up' => '看涨',
        'buy_down' => '看跌',
        'expected_profit' => '预期收益',
        'purchase_amount' => '买入金额',
        'cycle' => '周期',
        'cycle_settlement' => '周期结算',
        'available_balance' => '可用余额',
        'balance' => '余额',
        'kyc' => '实名认证',
        'security' => '安全中心',
        'reg_certificate' => '注册证书',
        'platform_certificate' => '平台注册证书',
        'no_certificate_yet' => '暂无证书',
        'trade' => '交易',
        'view_full_image' => '查看高清原图',
        'failed' => '失败',
        'success' => '成功',
        'direction' => '方向',
        'order' => '订单',
        'insufficient_balance' => '余额不足',
        'limit' => '限价',
        'amount' => '数量',
        'operation' => '操作',
        'action' => '操作',
        'frozen' => '冻结',
        'converted_to' => '折合',
        'asset_records' => '资产记录',
        'no_records_found' => '暂无记录',
        'type' => '类型',
        'status' => '状态',
        'time' => '时间',
        'hot' => '热门',
        'executing' => '进行中',
        'running' => '运行中',
        'pool_name' => '矿池名称',
        'my_mining_orders' => '我的矿池订单',
        'won' => '盈利',
        'loss' => '亏损',
        'total' => '总计',
        'orders' => '订单',
        'all' => '全部',
        'completed' => '已完成',
        'pnl' => '盈亏',
        'completed' => '已完成',
        'lost' => '亏损',
        '0' => '审核中',
        '3' => '已通过',
        '4' => '已拒绝',
        'cancelled' => '已取消',
        'hosting' => '托管中',
        'today_profit' => '今日收益',
        'total_profit' => '累计收益',
        'order_count' => '订单数',
        'btc_mining_pool' => 'BTC 矿池',
        'eth_mining_pool' => 'ETH 矿池',
        'usdt_mining_pool' => 'USDT 矿池',
        'bnb_mining_pool' => 'BNB 矿池',
        'sol_mining_pool' => 'SOL 矿池',
        'avax_mining_pool' => 'AVAX 矿池',
        'app_store' => '苹果商店',
        'google_play' => '谷歌商店',
        'android_apk' => '安卓应用',
        'ios_install' => '苹果安装',
        'sec_contract' => '秒合约',
        'sec_contract_desc' => '预测涨跌，秒级结算',
        'app_guide_step1' => '使用手机相机或浏览器扫描上方二维码，或直接点击下载按钮获取安装包。',
        'app_guide_step2' => '下载完成后，在手机设置中开启“允许安装未知来源应用”权限，以确保顺利安装。',
        'app_guide_step3' => '安装完成后，打开 APP 并登录您的账户，即可开始全球领先的数字资产交易之旅。',
        'app_install_auth' => '授权安装',
        'app_experience_now' => '立即体验',
        'support_anywhere' => '随时随地支持',
        'app_mockup_desc' => '在BYRO移动应用中掌控您的数字资产。随时随地进行交易。',
        'scan_qr_to_download' => '扫码下载',
        'vol_unit' => '万',
        'from' => '从',
        'to' => '到',
        'rate' => '汇率',
        'price_impact' => '价格影响',
        'slippage' => '滑点',
        'swap_now' => '立即闪兑',
        'start_mining' => '开始挖矿',
        'time_fs' => '分时',
        'time_1m' => '1分',
        'time_5m' => '5分',
        'time_15m' => '15分',
        'time_30m' => '30分',
        'time_1h' => '1小时',
        'time_4h' => '4小时',
        'time_1d' => '1天',
        'time_1w' => '1周',
        'indicators' => '指标',
        'chart' => '图表',
        'depth' => '深度',
        'price' => '价格',
        'quantity' => '数量',
        'open_orders' => '当前委托',
        'settlement_history' => '历史记录',
        'details' => '详情',
        'confirm_close_pos' => '确认平仓吗？',
        'pos_closed' => '仓位已平',
        'order_in_progress' => '订单进行中',
        'current_price' => '当前价格',
        'opening_price' => '开仓价格',
        'final_price_settlement' => '最终价格以结算时为准',
        'error_msg_placeholder' => '错误消息',
        'unauthorized' => '未授权',
        'invalid_amount' => '无效金额',
        'account_frozen' => '账号已冻结',
        'invalid_action' => '无效操作',
        'request_failed' => '请求失败',
        'vip_level' => 'VIP等级',
        'level' => '等级',
        'recharge_to_upgrade' => '还需充值 %amount% USDT 升级到 VIP %level%',
        'highest_level' => '已达到最高等级',
        'USDT' => 'USDT',
        'BTC' => 'BTC',
        'ETH' => 'ETH',
        'BNB' => 'BNB',
        'SOL' => 'SOL',
        'XRP' => 'XRP',
        'ADA' => 'ADA',
        'DOGE' => 'DOGE',
        'DOT' => 'DOT',
        'MATIC' => 'MATIC',
        'LINK' => 'LINK',
        'SHIB' => 'SHIB',
        'TRX' => 'TRX',
        'BCH' => 'BCH',
        'LTC' => 'LTC',
        'UNI' => 'UNI',
        'security_level' => '安全等级',
        'login_password' => '登录密码',
        'old_password' => '原密码',
        'new_password' => '新密码',
        'confirm_new_password' => '确认新密码',
        'set_password' => '设置密码',
        'binding_phone' => '手机绑定',
        'google_verification' => '谷歌验证',
        'binding_mailbox' => '邮箱绑定',
        'update' => '修改',
        'low' => '低',
        'medium' => '中',
        'high' => '高',
        'bound' => '已绑定',
        'not_bound' => '未绑定',
        'copy' => '复制',
        'old_pwd_incorrect' => '原密码不正确',
        'pwd_changed_success' => '密码修改成功',
        'trade_pwd_updated' => '交易密码已更新',
        'security_step1' => '为了您的资产安全，请务必绑定手机和邮箱，并开启谷歌验证。',
        'security_step2' => '请妥善保管您的登录密码和交易密码，切勿泄露给他人。',
        'trade_password' => '交易密码',
        'aud_name' => '澳大利亚元',
        'cad_name' => '加拿大元',
        'chf_name' => '瑞士法郎',
        'brl_name' => '巴西雷亚尔',
        'rub_name' => '俄罗斯卢布',
        'inr_name' => '印度卢比',
        'zar_name' => '南非兰特',
        'try_name' => '土耳其里拉',
        'aed_name' => '阿联酋迪拉姆',
        'sar_name' => '沙特里亚尔',
        'mxn_name' => '墨西哥比索',
        'php_name' => '菲律宾比索',
        'idr_name' => '印尼盾',
        'platform_home' => '平台首页',
        'admin_panel' => '超级管理后台',
        'agent_panel' => '代理管理后台',
        'finance_management' => '充提管理',
        'finance_details' => '财务明细',
        'sec_contract_management' => '秒合约管理',
        'contract_trading' => '合约交易',
        'spot_trading' => '现货交易',
        'exchange_management' => '兑换管理',
        'mining_management' => '挖矿管理',
        'ai_control' => 'AI控盘',
        'backend_settings' => '后台设置',
        'personal_settings' => '个人设置',
        'agents' => '代理管理',
        'processing' => '处理中...',
        'swap_processing_desc' => '请稍候，正在为您完成兑换',
        'swap_success_desc' => '您的兑换已成功完成！',
        'unknown_error' => '发生未知错误',
        'rate_fetch_failed' => '获取汇率失败（服务商问题）',
        'matching_account' => '正在为您匹配充值账户',
        'matching_desc' => '系统正在为您分配专属收款账户，请耐心等待。 匹配成功后，页面将自动更新收款信息。 请勿关闭当前页面。',
        'matched_successfully' => '匹配成功',
        'matched_desc_short' => '您的充值订单已匹配成功。 客服正在为您发送收款账户信息，请稍候。 页面将自动显示收款账户，请勿刷新或关闭页面。',
        'recharge_final_title' => '请按照以下账户信息进行转账',
        'recharge_final_notice' => '请严格按照页面展示的收款账户信息进行转账。 请勿分笔转账或修改信息，转账完成后，请点击“完成转账”按钮。 转账完成后请提交转账凭证给在线客服，方便第一时间为你确认到账。',
        'bank_name' => '银行名称',
        'payee_name' => '收款姓名',
        'account_number' => '收款账户',
        'transfer_note' => '备注',
        'copy_info' => '复制',
        'transfer_steps_title' => '转账说明',
        'step_1' => '打开您的银行 APP 或支付应用',
        'step_2' => '按照匹配金额准确转账至上方账户',
        'step_3' => '务必填写转账备注（如有）并保留凭证',
        'step_4' => '转账完成后在聊天框告知客服或等待系统同步',
        'recharge_success_title' => '申请已提交',
        'recharge_success_text' => '您的充值申请已收到，请等待审核通过。',
        'recharge_instruction_1' => '系统正在为您分配专属收款账户，请耐心等待',
        'recharge_instruction_2' => '匹配期间请勿刷新页面或重复提交订单',
        'recharge_instruction_3' => '若超过倒计时仍未匹配成功，请及时联系在线客服',
        'recharge_instruction_4' => '转账金额需与订单金额保持一致，请勿分笔转账或修改金额',
        'recharge_instruction_5' => '若您已完成付款，点击完成转账按钮，请及时将转账凭证提供给在线客服',
        'finished_transfer' => '完成转账',
        'matching_instructions' => '匹配说明',
        'matching_system_active' => '匹配系统已激活',
        'high_encryption' => '高等级加密',
        'online' => '在线',
        'ip' => 'IP:',
        'news_title_1' => 'BYRO正式上线全新秒合约交易系统',
        'news_title_2' => '关于新增多种支付方式的公告',
        'news_title_3' => 'BYRO获得数字货币运营牌照',
        'news_title_4' => '提升账户安全：启用谷歌身份验证器',
        'news_title_5' => '2026年市场研究报告：加密货币的未来',
        'news_desc_1' => '我们很高兴地宣布，BYRO全新的秒合约系统已正式上线，提供更快的结算速度。',
        'news_desc_2' => '为了方便全球用户，我们新增了包括本地银行转账在内的多种法币充值方式。',
        'news_desc_3' => 'BYRO致力于合规化运营，近期已成功获得关键市场的运营许可。',
        'news_desc_4' => '用户的资产安全是我们的首要任务，我们建议所有用户开启谷歌二次验证。',
        'news_desc_5' => '深入了解2026年加密货币市场的发展趋势和潜在机会。',
        'news_meta' => '发布于 2026年2月21日 • 公告',
        'help_subtitle' => '在这里您可以找到有关使用BYRO的所有问题的答案',
        'help_search_placeholder' => '搜索问题、功能或教程...',
        'getting_started' => '新手入门',
        'getting_started_desc' => '了解如何注册账户并开始您的第一笔交易。',
        'dep_with_title' => '充值与提现',
        'dep_with_desc' => '关于如何存入资金和提取资产的详细指南。',
        'trading_tutorials' => '交易教程',
        'trading_tutorials_desc' => '掌握现货、合约和秒合约的交易技巧。',
        'sec_acc_title' => '账户安全',
        'sec_acc_desc' => '保护您的账户免受未经授权的访问。',
        'api_doc_title' => '接口文档',
        'api_doc_desc' => '为开发者提供的完整 API 集成文档。',
        'contact_sup_title' => '联系支持',
        'contact_sup_desc' => '如果您遇到问题，我们的团队将全天候为您服务。',
        'matched_successfully' => '匹配成功',
        'account_received' => '已接收到收款账户',
        'getting_account_details' => '正在获取账户详情',
        'receiving_bank' => '收款银行',
        'receiving_account' => '收款账号',
        'receiving_name' => '收款姓名',
        'recharge_final_notice' => '请按照页面展示的账户进行转账',
        'remaining_time' => '剩余时间',
        'secure_pay' => '安全支付',
        'encrypted_channel' => '加密通道',
        'complete_transfer' => '完成转账',
        'waiting_allocation' => '正在分配中',
        'waiting_countdown' => '等待倒计时',
        'secure_channel' => '安全加密通道',
        'waiting_system_allocation' => '等待系统分配账户',
        'recharge_request_submitted' => '充值申请已提交',
        'recharge_request_submitted_text' => '您的充值申请已成功提交，请耐心等待审核。',
        'matched_desc_short' => '系统已为您分配专属收款账户，请等待详情显示。',
        'fees_content' => 'BYRO采用透明的费率结构，旨在为用户提供最具竞争力的交易成本。',
        'demo_title' => '最专业的数字资产交易所',
        'demo_subtitle' => '更低的手续费、更快的交易速度和更强大的 API，BYRO 助您触达每笔交易的极限',
        'margin_trading' => '杠杆交易',
        'perpetual_contract' => '永续合约',
        'option_trading' => '期权交易',
        'order_book' => '订单簿',
        'buy_btc' => '买入 BTC',
        'network_status_normal' => '网络状态正常',
        'latency' => '延迟',
        'api_connected' => 'API: 已连接',
        'buy_btn' => '买入',
        'sell_btn' => '卖出',
        'futures_trading' => '合约交易',
        'binary_trading' => '秒合约',
        'leverage' => '杠杆',
        'cycle' => '周期',
        'quantity' => '数量',
        'seconds' => '秒',
        'profit' => '收益',
        'buy_long' => '看涨',
        'sell_short' => '看跌',
        'long' => '做多',
        'short' => '做空',
        'network_status_normal' => '网络状态正常',
        'latency' => '延迟',
        'api_connected' => 'API: 已连接',
        'app_experience_now' => '立即体验',
        'trade_history' => '成交历史',
    ],
    'en' => [
        'home' => 'Home',
        'market' => 'Market',
        'second_contract' => 'Binary',
        'spot' => 'Spot',
        'contract' => 'Contract',
        'mining' => 'Mining',
        'swap' => 'Swap',
        'personal' => 'Account',
        'login' => 'Login',
        'register' => 'Register',
        'logout' => 'Logout',
        'language' => 'Language',
        'footer_about' => 'About',
        'footer_product' => 'Products',
        'footer_support' => 'Support',
        'about_us' => 'About Us',
        'news' => 'News',
        'terms' => 'Terms of Service',
        'help' => 'Help Center',
        'privacy' => 'Privacy Policy',
        'submit_request' => 'Submit Request',
        'api_doc' => 'API Docs',
        'fee_structure' => 'Fees',
        'app_download' => 'Download App',
        'system_status' => 'System Status',
        'normal' => 'Normal',
        'cookie_policy' => 'Cookie Policy',
        'platform_advantage' => 'Why Choose BYRO',
        'partners' => 'Partners',
        'deposit' => 'Deposit',
        'withdraw' => 'Withdraw',
        'assets' => 'Assets',
        'enter_verify_code' => 'Please enter verification code',
        'verify_code_error' => 'Invalid or expired verification code',
        'agree_terms_error' => 'Please agree to terms',
        'mobile_verify' => 'Mobile Code',
        'email_verify' => 'Email Code',
        3 => 'Approved',
        4 => 'Rejected',
        'login_admin_error' => 'Admin please login via backend',
        'fill_full_info' => 'Please fill in full info',
        'verification_code' => 'Verification Code',
        'agree_tos_privacy' => 'I have read and agree to the <a href="/tos.php" class="text-primary text-decoration-none">Terms of Service</a> and <a href="/legal.php" class="text-primary text-decoration-none">Privacy Policy</a>',
        'register_now' => 'Register Now',
        'resend' => 'Resend',
        'send_failed' => 'Send Failed',
        'invalid_email' => 'Invalid Email',
        'invalid_mobile' => 'Invalid Mobile Number',
        'congrats_won' => 'Congrats, you won',
        'sorry_lost' => 'Sorry, you lost',
        'trade_won' => 'Trade Profit',
        'trade_lost' => 'Trade Loss',
        'confirm' => 'Confirm',
        'buy' => 'Buy',
        'sell' => 'Sell',
        'confirm_swap' => 'Confirm Swap',
        'cancel' => 'Cancel',
        'approx' => 'Approx.',
        'cookie_policy_title' => 'Cookie Policy',
        'cookie_policy_content' => '<h3>1. What are Cookies?</h3><p>Cookies are small text files stored on your device when you visit a website. They are used to make websites work efficiently.</p>',
        'recharge_msg_fiat' => "UID: %uid% Request Recharge: %amount% %currency%=%res%USDT",
        'recharge_msg_crypto' => "UID: %uid% Request Recharge: %amount% USDT (%network%)",
        'withdraw_msg_fiat' => "UID: %uid% Request Withdraw: %amount% USDT=%res% %currency%",
        'withdraw_msg_crypto' => "UID: %uid% Request Withdraw: %amount% USDT (%network%)",
        'select_network' => 'Select Network',
        'address_copied' => 'Address Copied',
        'withdrawal_password_error' => 'Withdrawal Password Error',
        'withdraw_pwd_placeholder' => 'Enter withdrawal password',
        'recharge_amount_label' => 'Recharge Amount',
        'withdraw_amount_label' => 'Withdraw Amount',
        'i_have_paid' => 'I Have Paid',
        'enter_amount' => 'Enter Amount',
        'crypto_recharge_warning' => 'Please only send USDT to this address. Sending other assets may result in permanent loss.',
        'recharge_steps' => 'Recharge Steps',
        'security_tips' => 'Security Tips',
        'est_receive_fiat' => 'Est. Receive Fiat',
        'withdraw_steps' => 'Withdraw Steps',
        'withdraw_password' => 'Withdraw Password',
        'coin' => 'Coin',
        'address' => 'Address',
        'network' => 'Network',
        'fiat_amount' => 'Fiat Amount',
        'recharge_amount' => 'Recharge Amount',
        'withdraw_amount' => 'Withdraw Amount',
        'withdraw_address' => 'Withdraw Address',
        'min_withdraw_hint' => 'Min. Withdraw 10 USDT',
        'secure' => 'Secure',
        'fast' => 'Fast',
        'support_247' => '24/7 Support',
        'market_name' => 'Market',
        'trading' => 'Trading',
        'status_normal' => 'System Status: Normal',
        'copyright' => '© 2023-2026 BYRO. All rights reserved.',
        'back' => 'Back',
        'crypto_withdraw' => 'Crypto Withdraw',
        'fiat_withdraw' => 'Fiat Withdraw',
        'to_receive' => 'To Receive',
        'confirm_order' => 'Confirm Order',
        'select_currency' => 'Select Currency',
        'fiat_recharge' => 'Fiat Recharge',
        'crypto_recharge' => 'Crypto Recharge',
        'est_usdt' => 'Est. USDT',
        'enter_address' => 'Enter Address',
        'enter_password' => 'Enter Password',
        'request_sent' => 'Request sent, please check chat.',
        'cs_connect_fail' => 'Connect fail, please refresh.',
        'copy_success' => 'Copy Success',
        'market_view' => 'Market View',
        'prof_terminal' => 'Prof. Terminal',
        'prof_terminal_desc' => 'High performance trading engine.',
        'inst_security' => 'Inst. Security',
        'inst_security_desc' => 'Multi-layer encryption.',
        'advantage_1_title' => 'Compliance',
        'advantage_1_desc' => 'Global compliant operations.',
        'advantage_2_title' => 'Liquidity',
        'advantage_2_desc' => 'Deep liquidity.',
        'advantage_3_title' => '24/7 Support',
        'advantage_3_desc' => 'Multi-language support.',
        'advantage_4_title' => 'Diverse Products',
        'advantage_4_desc' => 'Covering Spot, Contract, etc.',
        'popular_markets' => 'Popular Markets',
        'view_more' => 'View More',
        'why_choose_us' => 'Why Choose Us',
        'footer_desc' => 'BYRO is a leading digital asset platform.',
        'hero_title' => 'Leading Digital Asset Platform',
        'hero_subtitle' => 'Start your crypto journey with BYRO.',
        'get_started' => 'Get Started',
        'account_exists' => 'Account exists or error',
        'pwd_mismatch' => 'Passwords mismatch',
        'join_secure' => 'Join the leading platform',
        'have_account' => 'Have an account?',
        'usd_name' => 'USD',
        'eur_name' => 'EUR',
        'gbp_name' => 'GBP',
        'cny_name' => 'CNY',
        'jpy_name' => 'JPY',
        'krw_name' => 'KRW',
        'hkd_name' => 'HKD',
        'twd_name' => 'TWD',
        'sgd_name' => 'SGD',
        'myr_name' => 'MYR',
        'thb_name' => 'THB',
        'vnd_name' => 'VND',
        'recharge_step1' => 'Select coin and network.',
        'recharge_step2' => 'Copy address or scan QR.',
        'recharge_step3' => 'Wait for network confirmation.',
        'recharge_step4' => 'Contact support for help.',
        'recharge_tip1' => 'Check network carefully.',
        'recharge_tip2' => 'Keep your vouchers safe.',
        'recharge_tip3' => 'Never share your info.',
        'recharge_tip4' => 'Auto-arrival, peak delay possible.',
        'withdraw_step1' => 'Select coin and enter address.',
        'withdraw_step2' => 'Enter amount.',
        'withdraw_step3' => 'Confirm fee and submit.',
        'withdraw_step4' => 'Finance will process soon.',
        'withdraw_tip1' => 'Check address carefully.',
        'withdraw_tip2' => 'Wrong address is non-recoverable.',
        'withdraw_tip3' => 'Cannot withdraw after submit.',
        'withdraw_tip4' => 'Contact 24/7 support for delay.',
        'withdraw_fee' => 'Fee',
        'unit_seconds' => 's',
        'trading_pair' => 'Trading Pair',
        'leverage' => 'Leverage',
        'buy_long' => 'Buy/Long',
        'buy_price' => 'Buy Price',
        'sell_short' => 'Sell/Short',
        'sell_price' => 'Sell Price',
        'long' => 'Long',
        'short' => 'Short',
        'close' => 'Close',
        'settling' => 'Settling...',
        'amount_limit_error' => 'Amount limit (%min% - %max%)',
        'settlement_price' => 'Settle Price',
        'warning' => 'Warning',
        'high' => 'High',
        'low' => 'Low',
        'chinese' => 'Chinese',
        'english' => 'English',
        'qr_code' => 'QR Code',
        'password' => 'Password',
        'mobile_number' => 'Mobile Number',
        'confirm_password' => 'Confirm Password',
        'send_code' => 'Send Code',
        'email' => 'Email',
        'email_placeholder' => 'Enter email address',
        'registration_verify' => 'Registration Verify',
        'bitcoin' => 'BTC',
        'ethereum' => 'ETH',
        'tether' => 'USDT',
        'binance_coin' => 'BNB',
        'solana' => 'SOL',
        'ripple' => 'XRP',
        'cardano' => 'ADA',
        'dogecoin' => 'DOGE',
        'polkadot' => 'DOT',
        'polygon' => 'MATIC',
        'avalanche' => 'AVAX',
        'chainlink' => 'LINK',
        'shiba_inu' => 'SHIB',
        'tron' => 'TRX',
        'bitcoin_cash' => 'BCH',
        'litecoin' => 'LTC',
        'uniswap' => 'UNI',
        'site_title' => 'Leading Digital Asset Platform',
        'unverified' => 'Unverified',
        '0' => 'Pending',
        'verified' => 'Verified',
        'real_name' => 'Real Name',
        'credit_score' => 'Credit Score',
        'last_price' => 'Last Price',
        'change_24h' => '24h Change',
        'vol_24h' => '24h Volume',
        'welcome_back' => 'Welcome Back',
        'forgot_password' => 'Forgot Password?',
        'reset_password' => 'Reset Password',
        'account_not_found' => 'Account not found',
        'pwd_reset_success' => 'Password reset successfully, please login',
        'no_account' => 'No account?',
        'invalid_account_pwd' => 'Invalid account or password',
        'account' => 'Account / Email',
        'mobile_reg' => 'Mobile Reg',
        'email_reg' => 'Email Reg',
        'mobile_recovery' => 'Phone Recovery',
        'email_recovery' => 'Email Recovery',
        'uploading' => 'Uploading...',
        'uid' => 'UID',
        'recharge' => 'Recharge',
        'withdrawal' => 'Withdrawal',
        'binary_win' => 'Binary Win',
        'binary_loss' => 'Binary Loss',
        'flash_exchange' => 'Flash Swap',
        'contract_settle' => 'Contract Settle',
        'contract_margin' => 'Contract Margin',
        'fill_all_fields' => 'Please fill all fields',
        'kyc_submitted' => 'KYC submitted, waiting for review',
        'kyc_pending_desc' => 'Your KYC is under review.',
        'full_name' => 'Full Name',
        'enter_full_name' => 'Enter full name',
        'id_number' => 'ID Number',
        'enter_id_number' => 'Enter ID number',
        'id_front' => 'ID Front',
        'id_back' => 'ID Back',
        'id_handheld' => 'Handheld ID',
        'upload' => 'Upload',
        'kyc_steps' => 'KYC Steps',
        'kyc_step1' => 'Fill name and ID.',
        'kyc_step2' => 'Upload ID photos.',
        'kyc_step3' => 'Upload handheld photo.',
        'submit' => 'Submit',
        'kyc_instructions' => 'Ensure photos are clear.',
        'online_support' => 'Online Support',
        'type_message' => 'Type message...',
        'welcome_support' => 'Welcome to support center.',
        'mining_desc' => 'Cloud mining platform.',
        'mining_profit' => 'Mining Profit',
        'mining_return' => 'Principal Return',
        'mining_invest' => 'Mining Invest',
        'mining_rebate' => 'Mining Rebate',
        'spot_buy' => 'Spot Buy',
        'spot_sell' => 'Spot Sell',
        'transfer_in' => 'Transfer In',
        'transfer_out' => 'Transfer Out',
        'mining_pool' => 'Mining Pool',
        'day' => 'Day',
        'flexible' => 'Flexible',
        'est_apy' => 'Est. APY',
        'min_deposit' => 'Min. Deposit',
        'lock_period' => 'Lock Period',
        'principal_protected' => 'Principal Protected',
        'daily_payouts' => 'Daily Payouts',
        'why_mining' => 'Why BYRO Mining?',
        'adv_hardware' => 'Adv. Hardware',
        'adv_hardware_desc' => 'Latest mining tech.',
        'auto_compound' => 'Auto Compound',
        'auto_compound_desc' => 'Auto reinvest.',
        'real_time_monitor' => 'RT Monitor',
        'real_time_monitor_desc' => 'Monitor in real-time.',
        'calc_profit' => 'Calc Profit',
        'calc_desc' => 'Estimate earnings.',
        'amount_to_invest' => 'Investment Amount',
        'daily_profit' => 'Daily Profit',
        'monthly_profit' => 'Monthly Profit',
        'try_calc' => 'Try Calc',
        'app_desc' => 'Trade on mobile.',
        'download_on' => 'Download on',
        'get_it_on' => 'Get it on',
        'scan_download' => 'Scan Download',
        'real_time_alerts' => 'RT Alerts',
        'full_trading_features' => 'Full Features',
        'two_fa_security' => '2FA Security',
        'live_chat_247' => '24/7 Chat',
        'our_mission' => 'Our Mission',
        'mission_content' => 'Accessible crypto for all.',
        'global_presence' => 'Global Presence',
        'presence_content' => 'Global offices.',
        'users' => 'Users',
        'countries' => 'Countries',
        'daily_volume' => 'Daily Vol',
        'about_content' => 'Founded in 2023.',
        'news_content' => 'Latest updates.',
        'announcement' => 'Announcement',
        'read_more' => 'Read More',
        'newsletter' => 'Newsletter',
        'newsletter_desc' => 'Subscribe for insights.',
        'email_address' => 'Email Address',
        'join' => 'Join',
        'popular_topics' => 'Popular Topics',
        'effective_date' => 'Effective Date: February 16, 2023',
        'tos_1_title' => '1. Acceptance of Terms',
        'tos_1_content' => 'This Terms of Service agreement ("Agreement") is a legally binding agreement between you and the BYRO platform ("we", "us", or "our"). By accessing, using, or clicking "Register" for any of our services, you signify that you have read, understood, and accepted all the terms and conditions set forth in this Agreement.',
        'tos_2_title' => '2. Account Opening and Security',
        'tos_2_content' => 'You must be at least 18 years old to register for an account. You are responsible for maintaining the confidentiality of your account credentials and for all activities that occur under your account. We reserve the right to refuse service, terminate accounts, or change eligibility criteria at any time.',
        'tos_3_title' => '3. Risk Disclosure',
        'tos_3_content' => 'Trading in digital assets involves significant risk. Prices are highly volatile and unpredictable. Leveraged trading can result in losses exceeding your initial investment. Before trading, please ensure you fully understand the risks involved. BYRO does not provide any investment, legal, or financial advice.',
        'tos_4_title' => '4. Compliance and Legal',
        'tos_4_content' => 'You agree to comply with all applicable laws and regulations in your jurisdiction. BYRO is committed to Anti-Money Laundering (AML) and Counter-Terrorist Financing (CTF) compliance and may require you to provide detailed identification information (KYC).',
        'tos_5_title' => '5. Service Changes and Termination',
        'tos_5_content' => 'We may modify, suspend, or discontinue any part of the service at any time without prior notice. We reserve the right to restrict, suspend, or terminate your access to all or any part of the service if we believe you have violated this Agreement.',
        'tos_6_title' => '6. Intellectual Property',
        'tos_6_content' => 'All content on the BYRO platform, including text, graphics, logos, icons, images, and software, is the property of BYRO or its content suppliers and protected by international copyright laws.',
        'tos_7_title' => '7. Disclaimer of Warranties',
        'tos_7_content' => 'The service is provided on an "as is" and "as available" basis. We do not warrant that the service will be uninterrupted, timely, secure, or error-free. Your use of the service is at your sole risk.',
        'tos_8_title' => '8. Indemnification',
        'tos_8_content' => 'You agree to indemnify and hold BYRO and its affiliates, officers, directors, employees, and agents harmless from any claim, loss, liability, damage, or expense (including reasonable attorney fees) arising from your violation of this Agreement or your use of the service.',
        'last_updated' => 'Last Updated: February 21, 2026',
        'privacy_1_title' => '1. Scope of Collection',
        'privacy_1_content' => 'The information we collect includes, but is not limited to: identity information (name, ID photos), contact information (email, phone number), financial information, device information, and transaction records during your use of our services. This information is used to ensure platform security and provide better services.',
        'privacy_2_title' => '2. Purpose of Information Use',
        'privacy_2_content' => 'We use your information to: process your transactions, verify your identity, send you system notifications, improve our products, and comply with applicable legal and regulatory requirements.',
        'privacy_3_title' => '3. Data Storage and Protection',
        'privacy_3_content' => 'We use industry-leading technical measures to protect your personal data, including multi-layer encrypted storage and cold backups. We will not sell or rent your personal information to any third party unless required by law or with your explicit consent.',
        'privacy_4_title' => '4. Your Rights and Choices',
        'privacy_4_content' => 'You have the right to access, correct, or request the deletion of your personal data held by us. You can manage your privacy preferences in your account settings at any time or contact our support team for assistance.',
        'privacy_5_title' => '5. Notification of Policy Changes',
        'privacy_5_content' => 'We may update this Privacy Policy from time to time. Any significant changes will be notified to you through platform announcements or by sending an email. We recommend that you check this page regularly for the latest information.',
        'privacy_6_title' => '6. Use of Cookies',
        'privacy_6_content' => 'We use cookies and similar technologies to collect additional data about your use of our website. You can instruct your browser to stop accepting cookies, but if you do so, you may not be able to use certain parts of our service.',
        'issue_type' => 'Issue Type',
        'account_access' => 'Account',
        'dep_with_issue' => 'Financial',
        'trading_issue' => 'Trading',
        'bug_report' => 'Bug',
        'other' => 'Other',
        'subject' => 'Subject',
        'description' => 'Description',
        'submit_ticket' => 'Submit Ticket',
        'support_response_time' => '2h response time.',
        'api_intro' => 'API Intro',
        'api_auth' => 'API Auth',
        'api_market_data' => 'Market Data',
        'api_trade_endpoints' => 'Trade Endpoints',
        'api_errors' => 'Errors',
        'api_intro_desc' => 'RESTful API.',
        'api_auth_desc' => 'Key auth required.',
        'api_get_ticker' => 'Get Ticker',
        'api_get_ticker_desc' => 'Symbol price.',
        'api_place_order' => 'Place Order',
        'api_payload_example' => 'Payload example',
        'tier' => 'Tier',
        'trading_vol_30d' => '30d Vol',
        'maker_fee' => 'Maker Fee',
        'taker_fee' => 'Taker Fee',
        'regular' => 'Regular',
        'spot_fees' => 'Spot Fees',
        'contract_fees' => 'Contract Fees',
        'trade_spot' => 'Spot',
        'trade_contract' => 'Contract',
        'trade_binary' => 'Binary',
        'search' => 'Search',
        'profit' => 'Profit',
        'buy_up' => 'Buy Up',
        'buy_down' => 'Buy Down',
        'expected_profit' => 'Expected Profit',
        'purchase_amount' => 'Amount',
        'cycle' => 'Cycle',
        'cycle_settlement' => 'Cycle',
        'available_balance' => 'Available',
        'balance' => 'Balance',
        'kyc' => 'KYC',
        'security' => 'Security Center',
        'reg_certificate' => 'Registration Certificate',
        'platform_certificate' => 'Platform Registration Certificate',
        'no_certificate_yet' => 'No certificate available yet',
        'trade' => 'Trade',
        'view_full_image' => 'View Full Image',
        'failed' => 'Failed',
        'success' => 'Success',
        'direction' => 'Direction',
        'order' => 'Order',
        'insufficient_balance' => 'Insufficient Balance',
        'limit' => 'Limit',
        'amount' => 'Amount',
        'operation' => 'Operation',
        'action' => 'Action',
        'frozen' => 'Frozen',
        'converted_to' => 'Converted',
        'asset_records' => 'Asset Records',
        'no_records_found' => 'No Records',
        'type' => 'Type',
        'status' => 'Status',
        'time' => 'Time',
        'hot' => 'Hot',
        'executing' => 'Executing',
        'running' => 'Running',
        'pool_name' => 'Pool Name',
        'my_mining_orders' => 'My Mining Orders',
        'won' => 'Won',
        'loss' => 'Loss',
        'total' => 'Total',
        'orders' => 'Orders',
        'all' => 'All',
        'completed' => 'Completed',
        'pnl' => 'PnL',
        'completed' => 'Completed',
        'lost' => 'Lost',
        '0' => 'Pending',
        '3' => 'Approved',
        '4' => 'Rejected',
        'cancelled' => 'Cancelled',
        'hosting' => 'Hosting',
        'today_profit' => 'Today\'s Profit',
        'total_profit' => 'Total Profit',
        'order_count' => 'Order Count',
        'btc_mining_pool' => 'BTC Mining Pool',
        'eth_mining_pool' => 'ETH Mining Pool',
        'usdt_mining_pool' => 'USDT Mining Pool',
        'bnb_mining_pool' => 'BNB Mining Pool',
        'sol_mining_pool' => 'SOL Mining Pool',
        'avax_mining_pool' => 'AVAX Mining Pool',
        'app_store' => 'App Store',
        'google_play' => 'Google Play',
        'android_apk' => 'Android APK',
        'ios_install' => 'iOS Install',
        'sec_contract' => 'Binary',
        'sec_contract_desc' => 'Binary options.',
        'app_guide_step1' => 'Scan the QR code with your camera or browser, or click the download button to get the package.',
        'app_guide_step2' => 'Enable "Allow unknown sources" in settings after download to ensure smooth installation.',
        'app_guide_step3' => 'Open the APP and login to start your digital asset trading journey.',
        'app_install_auth' => 'Authorize',
        'app_experience_now' => 'Experience Now',
        'support_anywhere' => 'Support Anywhere',
        'demo_title' => 'Professional Trading Terminal',
        'demo_subtitle' => 'Lower fees, faster transactions, and more powerful APIs. BYRO helps you reach the limits of every trade.',
        'spot_trading' => 'Spot Trading',
        'futures_trading' => 'Futures',
        'binary_trading' => 'Binary Options',
        'order_book' => 'Order Book',
        'buy_btn' => 'Buy',
        'sell_btn' => 'Sell',
        'buy_up' => 'Buy Up',
        'buy_down' => 'Buy Down',
        'leverage' => 'Leverage',
        'cycle' => 'Cycle',
        'quantity' => 'Quantity',
        'seconds' => 's',
        'profit' => 'Profit',
        'buy_long' => 'Buy Long',
        'sell_short' => 'Sell Short',
        'long' => 'Long',
        'short' => 'Short',
        'network_status_normal' => 'Network Normal',
        'latency' => 'Latency',
        'api_connected' => 'API Connected',
        'market_list' => 'Markets',
        'trade_history' => 'Trade History',
    ],
];

function __($key) {
    global $translations, $lang;
    return $translations[$lang][$key] ?? $key;
}

function getCoinIcon($symbol) {
    $symbol = strtoupper($symbol);
    $icon_ids = [
        'BTC' => '1/small/bitcoin.png',
        'ETH' => '279/small/ethereum.png',
        'USDT' => '325/small/tether.png',
        'BNB' => '825/small/binance-coin-logo.png',
        'SOL' => '4128/small/solana.png',
        'XRP' => '44/small/xrp-symbol-white-128.png',
        'ADA' => '975/small/cardano.png',
        'DOGE' => '5/small/dogecoin.png',
        'DOT' => '12171/small/polkadot.png',
        'MATIC' => '4713/small/matic-network.png',
        'AVAX' => '12559/small/avalanche.png',
        'LINK' => '877/small/chainlink.png',
        'SHIB' => '11939/small/shiba-inu.png',
        'TRX' => '1094/small/tron.png',
        'BCH' => '153/small/bitcoin-cash.png',
        'LTC' => '2/small/litecoin.png',
        'UNI' => '12504/small/uniswap.png',
        'ARB' => '29359/small/arbitrum.png',
        'OP' => '25244/small/optimism.png',
        'APT' => '27355/small/aptos.png',
        'USDC' => '6319/small/usdc.png',
        'PEPE' => '31386/small/pepe.png',
        'FIL' => '12817/small/filecoin.png',
        'NEAR' => '10365/small/near.png',
        'ATOM' => '1481/small/cosmos.png',
        'IMX' => '17233/small/immutable-x.png',
        'KAS' => '26851/small/kaspa.png',
        'DAI' => '992/small/dai.png',
        'STX' => '2069/small/stacks.png',
        'RNDR' => '11634/small/render-token.png',
        'INJ' => '12882/small/injective_protocol.png',
        'TIA' => '31967/small/tia.png',
        'SUI' => '26375/small/sui-ocean-64.png',
        'SEI' => '31322/small/sei.png',
    ];
    
    if (isset($icon_ids[$symbol])) {
        return "https://coin-images.coingecko.com/coins/images/" . $icon_ids[$symbol];
    }
    
    // Fallback order: Binance -> OKX
    // Binance is very reliable for symbols
    return "https://bin.bnbstatic.com/static/images/home/market/coin-icon/" . $symbol . ".png";
}
