<!-- ===================== ACCOUNT TAB ===================== -->
<div class="tab-pane <?= (!isset($_GET['tab']) || $_GET['tab'] == 'account') ? 'active' : '' ?>" id="tab-account">
  <div class="card" style="max-width:600px">
    <div class="card-header"><span class="card-title">Account Settings</span></div>
    <div class="card-body">
      <form id="accountForm">
        <div class="form-grid">
          <div class="form-group">
            <label class="form-label">Client Name</label>
            <input type="text" name="client_name" class="form-control" value="<?= htmlspecialchars($account['client_name']) ?>">
          </div>
          <div class="form-group">
            <label class="form-label">Business Name</label>
            <input type="text" name="business_name" class="form-control" value="<?= htmlspecialchars($account['business_name']) ?>">
          </div>
          <div class="form-group">
            <label class="form-label">Phone</label>
            <input type="text" name="phone" class="form-control" value="<?= htmlspecialchars($account['phone']) ?>">
          </div>
          <div class="form-group">
            <label class="form-label">Email</label>
            <input type="email" name="email" class="form-control" value="<?= htmlspecialchars($account['email']) ?>">
          </div>
          <div class="form-group">
            <label class="form-label">Currency</label>
            <select name="currency" class="form-control">
              <?php foreach (['USD','EUR','GBP','AED','SAR','LBP'] as $c): ?>
              <option value="<?= $c ?>" <?= $account['currency']===$c?'selected':'' ?>><?= $c ?></option>
              <?php endforeach; ?>
            </select>
          </div>
          <div class="form-group">
            <label class="form-label">Status</label>
            <select name="status" class="form-control">
              <option value="active" <?= $account['status']==='active'?'selected':'' ?>>Active</option>
              <option value="inactive" <?= $account['status']==='inactive'?'selected':'' ?>>Inactive</option>
            </select>
          </div>
        </div>
        <button type="button" class="btn btn-primary" onclick="saveAccount()">Save Changes</button>
      </form>
    </div>
  </div>
</div>
